cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | insert pithy quote here
fotis has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
Atque has quit [Quit: ...]
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
wisefriday has quit [Quit: wisefriday]
fotis has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
rindolf has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
slav0nic has joined #pypy
fotis has joined #pypy
slav0nic has quit [Remote host closed the connection]
fotis has quit [Ping timeout: 252 seconds]
otisolsen70 has joined #pypy
fotis has joined #pypy
Atque has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
LordKalma has quit [Read error: Connection reset by peer]
LordKalma has joined #pypy
LordKalma has quit [Client Quit]
LordKalma has joined #pypy
Atque has quit [Ping timeout: 276 seconds]
LordKalma has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
LordKalma has joined #pypy
LordKalma has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
LordKalma has joined #pypy
<ctismer> antocuni: my lldebug build worked great. Unfortunately, the resulting product gives always the following crash:
<ctismer> RUN 1: PyPy assertion failed at pypy_module_cpyext_1.c:60186:
<ctismer> RUN 1: in pypy_g_PyDict_Next: Bug in cpyext: The W_Root object was garbage-collected while being converted to PyObject.
LordKalma has quit [Read error: Connection reset by peer]
fotis has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
<cfbolz> ctismer: uh, interesting
<ctismer> cfbolz: It is an expression where I use PyModule_GetDict without an extra incref. Trying that now.
<cfbolz> heh, yeah, it happens that pypy finds you bugs in the extension module
<ctismer> cfbolz: true, but this is really a cpyext error. Increasin refcounts does not help.
<cfbolz> ok :-(
<cfbolz> ctismer: it's specifically the dict of a module?
<cfbolz> PyDict_Next is a messy function for pypy :-(
<ctismer> cfbolz: yes, it is here:
<ctismer> PyObject *key, *func, *obdict = PyModule_GetDict(module);
<ctismer> Py_ssize_t pos = 0;
<ctismer> while (PyDict_Next(obdict, &pos, &key, &func))
<ctismer> if (PyCFunction_Check(func))
<ctismer> if (PyDict_SetItem(pyside_globals->map_dict, func, module) < 0)
<ctismer> return -1;
<ctismer> - breaks in the PyDict_Next
<cfbolz> right
<ctismer> cfbolz: funny that it always works with the normal pypy
<cfbolz> ctismer: yes, lldebug turns on all kinds of extra debug checks
<ctismer> cfbolz: but if that is in fact an error, it is probably crucial?
<cfbolz> ctismer: yes, it's likely that you found an actual bug in PyDict_Next
<cfbolz> or at least possible
<cfbolz> ctismer: module global dictionaries use a special implementation for dicts
<ctismer> cfbolz: but I still don't know if it's related to the bug in question.
<cfbolz> ctismer: indeed :-(
<cfbolz> it might be something totally unrelated that you just happen to trigger now that you use lldebug
<ctismer> cfbolz: yeah. It's like a dejavu: When I touch something, I tend to find a bug.
<cfbolz> :-)
<ctismer> cfbolz: I can maybe circumvent it by a local copy or something
<cfbolz> ctismer: pypy tends to find lots of bugs in various projects, we should update this list at some point: https://www.pypy.org/posts/2008/01/crashing-other-peoples-compilers-4574453763254909150.html
<cfbolz> ctismer: I tried to write a minimal test, using PyDict_Next on a module dictionary, and that just worked
<cfbolz> so it's a bit more complicated
<ctismer> cfbolz: ๐Ÿ˜ตโ€๐Ÿ’ซ
<ctismer> cfbolz: I will try to skip the whole function. Wanna see how far I get.
<ctismer> cfbolz: great, works! Maybe I have really a bug in the signature code.
<cfbolz> ctismer: sorry for not being more help
<ctismer> cfbolz: you helped me very much. I have confirmed now that the problem is similar in a debug build, and I can try to find the reason ๐Ÿ˜œ
fotis has quit [Ping timeout: 265 seconds]
<cfbolz> :-)
fotis has joined #pypy
Dejan has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
<ctismer> cfbolz: another question: I use lldb, but get no program listing. I tried
<ctismer> settings set target.source-map . <long-temp-prefix>/testing_1
<ctismer> but that does not help. Can you give me a hint?
fotis has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
otisolsen70_ has joined #pypy
otisolsen70 has quit [Ping timeout: 252 seconds]
fotis has quit [Ping timeout: 252 seconds]
<cfbolz> ctismer: hm, does it help if you start the binary from testing_1
* ctismer walking the dog - will try soon
<ctismer> cfbolz: no, unfortunately not.
<cfbolz> ctismer: that's really weird
<cfbolz> ctismer: I mean, there really is a binary in testing_1/, not the one in goal/
<ctismer> cfbolz: ah no, there are all .c and .o files in testing_1
* ctismer trying again, macOS tmp folders are weird
<ctismer> cfbolz: still nogo. Where exactly should I be in?
stkrdknmibalz has quit [Ping timeout: 252 seconds]
<cfbolz> ctismer: usually I get a Makefile and a pypy-c binary in testing_1
<cfbolz> But I no neither Mac OS nor lldb (I use gdb)
<cfbolz> Know
<ctismer> cfbolz: that's a good idea, will try around.
<ctismer> cfbolz: I got libpypy3-c.dylib in the Makefile and in cwd. No progress.
<cfbolz> ctismer: really weird
<ctismer> cfbolz: I checked the dylib with `strings` - can find every <file>,c in the binary. ๐Ÿคจ
<ctismer> s/,/./
fotis has joined #pypy
otisolsen70 has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
<ctismer> cfbolz: HAAAAA got it! I used the symlink to /usr/local/bin/pypy3d0, my symlink. When I use pypy-c directly, it works like a charm!
<cfbolz> ctismer: ๐ŸŽ‰
otisolsen70_ has quit [Quit: Leaving]
<ctismer> cfbolz: ok, I must use the binary in the temp folder and then set PYTHONPATH to the site-packages of my pyside6 installation. Get a wonderful display now. Hugs ๐Ÿ™ƒ Chris
<cfbolz> nice
<cfbolz> bit cumbersome, but good that you're making progress
<ctismer> cfbolz: I will torture the program until it all confesses ๐Ÿ˜ˆ
rindolf has quit [Ping timeout: 268 seconds]
<Dejan> Chuck Norris style
<Dejan> roundkick it
greedom has joined #pypy
Julian has joined #pypy
greedom has quit [Remote host closed the connection]
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
stkrdknmibalz has joined #pypy
Julian has joined #pypy
fotis has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
yizawa has quit [Quit: Connection closed for inactivity]
fotis has quit [Ping timeout: 265 seconds]
otisolsen70 has quit [Ping timeout: 268 seconds]
otisolsen70 has joined #pypy
Julian has quit [Quit: leaving]
yizawa has joined #pypy
<antocuni> cfbolz: congrats for the blog post, it's a very interesting read
<cfbolz> antocuni: thx
Julian has joined #pypy
fotis has joined #pypy
Julian has quit [Quit: leaving]
fotis has quit [Ping timeout: 268 seconds]
otisolsen70 has quit [Quit: Leaving]
fotis has joined #pypy
fotis has quit [Ping timeout: 260 seconds]
fotis has joined #pypy
Atque has joined #pypy
stkrdknmibalz has quit [Ping timeout: 260 seconds]
yizawa has quit [Quit: Connection closed for inactivity]
jacob22 has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
yizawa has joined #pypy
fotis has joined #pypy