These are chat archives for dropbox/pyston

24th
Sep 2015
Marius Wachtler
@undingen
Sep 24 2015 20:21
I just figured out why pyopenssl (which uses cryptography which uses cffi) does sometimes crash: cffi generates a C file with a lot of static variables those initially just contain internal "opcodes" and at runtime those will get replaced with the actual python object. This means the aren't automatically tracked by our GC because we only track the `bss section aka the section for variables which don't have a initializer. But this cffi arrays life inside the data section...
Marius Wachtler
@undingen
Sep 24 2015 20:45
and it looks like glibc does not export syms to retrieve the start address of the data section of a shared library. so if we want to auto register it we will probably have to retrieve it by looking at /proc/pid/maps :-(
Marius Wachtler
@undingen
Sep 24 2015 20:51
would be interesting to know how pypy does it
Kevin Modzelewski
@kmod
Sep 24 2015 22:47
oh eww :/