arigato changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | mac OS and Fedora are not Windows
speeder39_ has quit [Quit: Connection closed for inactivity]
lritter has joined #pypy
speeder39_ has joined #pypy
jcea has quit [Quit: jcea]
_whitelogger has joined #pypy
lritter has quit [Ping timeout: 246 seconds]
lritter has joined #pypy
agronholm has quit [Ping timeout: 250 seconds]
agronholm has joined #pypy
dddddd has quit [Remote host closed the connection]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
<arigato> mattip: fwiw, if I go to a built pypy, I get a segfault trying to import ssl
<arigato> something like calling a null function pointer, would be my guess from gdb
<arigato> ah argh, it crashes only with the jit turned on
<arigato> uh no, sorry, the crash *sometimes* occurs without the jit too
<arigato> (...no, confusion and bad manipulation I guess. the crash is very reproducible and unrelated to the jit)
<kenaan> arigo cffi/cffi 74f57a76ed53 /c/: Give a RuntimeError when we try to call a null function pointer, similar to how we get a RuntimeError when trying...
<kenaan> arigo default 0dadf2ae75d9 /: update to cffi/74f57a76ed53
<kenaan> arigo py3.6 9122fab2808f /: hg merge default
trinityhex has quit [Ping timeout: 250 seconds]
<mattip> arigato: on aarch64 or on all platforms?
tsaka_ has quit [Ping timeout: 272 seconds]
<mattip> and fwiw raising on “is <const>” sounds like a good comprimise
<arigato> on aarch64
tsaka_ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<arigato> ok what
<arigato> #else
<arigato> int (*Cryptography_setup_ssl_threads)(void) = NULL;
<arigato> #endif
<arigato> and there's code elsewhere that tries to call that
<arigato> mattip: sorry to bother you, but I know really nothing about _cffi_ssl
<arigato> there is logic in ./cryptography/hazmat/bindings/openssl/binding.py that sometimes calls lib.Cryptography_setup_ssl_threads() (not always)
<arigato> and this function is sometimes NULL like above
<arigato> that's what crashes right now on aarch64 upon "import ssl"
<mattip> thanks for the analysis. I’ll take a look
<arigato> ah no, I think it's not in bindings.py
<arigato> it's _cffi_ssl/_stdssl/__init__.py maybe
<arigato> it calls unconditionally Cryptography_setup_ssl_threads()
<mattip> that was a bit different in the old version of cryptography
* mattip on mobile now, will look later
<mattip> if I recall correctly there was a wrapper function around that
<arigato> Binding.init_static_locks()?
<mattip> lib._setup_ssl_threads was in cryptography 1.7, but no longer exists in 2.7 so I just called the Cryptography_setup_ssl_threads
<mattip> maybe the old one checked NULL
<mattip> yup
<mattip> https://bitbucket.org/pypy/pypy/commits/3a286c79732e3ff617fc135acf5eb37e48e5eca7 and search for the old function - there was a c implementation
<arigato> copying the logic from bindings.py to _stdssl/__init__.py gives a result that works (as much as it doesn't immediately segfault)
<mattip> +1 thanks
<kenaan> arigo default aa592738d692 /lib_pypy/_cffi_ssl/_stdssl/__init__.py: Copy the logic from bindings.py that only calls Cryptography_setup_ssl_threads() in some cases. In other cases the...
<arigato> maybe?
<kenaan> arigo py3.6 5b574c103316 /lib_pypy/_cffi_ssl/_stdssl/__init__.py: hg merge default
<arigato> ok, running manually some tests seems to work now
<kenaan> arigo cffi/cffi e4bfcc3ae975 /doc/source/whatsnew.rst: whatsnew for 74f57a76ed53
<mattip> cool
tsaka_ has quit [Ping timeout: 248 seconds]
ekaologik has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
tsaka_ has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
antocuni has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
antocuni has quit [Ping timeout: 245 seconds]
ekaologik has quit [Ping timeout: 248 seconds]
ekaologik has joined #pypy
dddddd has joined #pypy
jdi has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
wleslie has quit [Quit: ~~~ Crash in JIT!]
tsaka_ has quit [Ping timeout: 246 seconds]
jdi has quit [Quit: leaving]
Rhy0lite has joined #pypy
ronan has joined #pypy
Rhy0lite has quit [Quit: Leaving]
tsaka_ has joined #pypy
jcea has joined #pypy
lritter has quit [Quit: Leaving]
ekaologik has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
antocuni has joined #pypy
tsaka_ has quit [Ping timeout: 246 seconds]
inhahe has quit [Read error: Connection reset by peer]
inhahe has joined #pypy
antocuni has quit [Ping timeout: 248 seconds]
tsaka_ has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
<mattip> cryptography build changed to not put MACROS in the string fed to ffi.cdef, which broke our pypy_win32_extra.py
<kenaan> mattip default 87a095fb0cdf /lib_pypy/_cffi_ssl/_cffi_src/openssl/pypy_win32_extra.py: MACROS is no longer part of the string fed to ffi.cdef, use TYPES instead
<kenaan> mattip py3.6 d2f8e364e52d /lib_pypy/_cffi_ssl/_cffi_src/openssl/pypy_win32_extra.py: merge default into py3.6
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
Arfrever has quit [Quit: 御出で]
tsaka_ has quit [Ping timeout: 248 seconds]
trfl has quit [Quit: ZNC - http://znc.in]
antocuni has joined #pypy
antocuni has quit [Remote host closed the connection]
trfl has joined #pypy