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 | so many corner cases, so little time
nimaje has quit [Ping timeout: 240 seconds]
nimaje has joined #pypy
nimaje has quit [Ping timeout: 250 seconds]
epony has quit [Ping timeout: 240 seconds]
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
epony has joined #pypy
nimaje has joined #pypy
lritter has joined #pypy
Guest96_ has joined #pypy
lehmrob has joined #pypy
danchr has quit [Remote host closed the connection]
<ctismer> Hi cfbolz et al, I got a funny error using threads.
<ctismer> RUN 1: (For PyPy, see https://bitbucket.org/pypy/pypy/issues/2274)
<ctismer> Fatal RPython error: a thread is trying to wait for the GIL, but the GIL was not initialized
<ctismer> cfbolz: converting that link to the new website, I saw that this issue is 5 years old and should be solved.
<cfbolz> ctismer: ugh, no idea
<cfbolz> ctismer: any weird things you do with threads?
<ctismer> nothing, this is our standard thread implementation. (which can be weird enough, no idea :) )
<ctismer> cfbolz: I'll probably fire up the soldering iron and debug Windows :(
<cfbolz> ctismer: but it is not some kind of embedding scenario, right?
<cfbolz> are you using fork?
<ctismer> cfbolz: not at all. For instance, we get this message when running bug_462.py
<cfbolz> ctismer: do you make any threads from C, and then call python code from them?
<cfbolz> it's entirely possible that there is a bug in those parts of the C API emulation
<cfbolz> I suppose QThread starts threads from C code
<ctismer> cfbolz: I have to study the code then.
<ctismer> (we are about to blog about PyPy and tested things on Windows)
<cfbolz> right
<cfbolz> ctismer: I don't really see a test that makes a thread from C code and then call PyGILState_Ensure or something like that
<cfbolz> so I suppose that could be just broken, potentially
<cfbolz> but we are pretty far outside of my comfort zone here
<ctismer> cfbolz: you mean you love threads as much as I do? 😂
<cfbolz> exactly :-)
slav0nic has joined #pypy
<cfbolz> ctismer: yeah, my suspicion remains that this is just not working with cpyext yet
<cfbolz> cffi has explicit tests around the problem
<cfbolz> we would have to write a small C extension that starts a new thread from C, then calls python
<cfbolz> to see whether it crashes
<ctismer> cfbolz: but why on earth does it work on macOS? I would have understood Windows, but not Linux
<cfbolz> yes, that is pretty weird 😆
Guest96_ has quit [Quit: Textual IRC Client: www.textualapp.com]
otisolsen70 has joined #pypy
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #pypy
Dejan has quit [Read error: No route to host]
lehmrob has quit [Quit: WeeChat 3.4]
<ctismer> cfbolz: I tested myself on my virtual Windows machine on the Mac - the effect does _not_ show up. It happens on a real Windows and Ubuntu machine in Berlin - even weirder cause I cannot solve it from here.
<cfbolz> 😞
* ctismer is begging for VPN access since 5 years 😬
lritter has quit [Ping timeout: 272 seconds]
Atque has joined #pypy
sam_ has quit [Read error: Connection reset by peer]
sam_ has joined #pypy
Techcable has quit [Ping timeout: 240 seconds]
otisolsen70 has quit [Quit: Leaving]
slav0nic has quit [Ping timeout: 268 seconds]