[pypy-issue] Issue #1932: Invalid assembler if libpypy-c.so was dlopen()ed (pypy/pypy)

Armin Rigo issues-reply at bitbucket.org
Fri Nov 21 21:04:48 CET 2014


New issue 1932: Invalid assembler if libpypy-c.so was dlopen()ed
https://bitbucket.org/pypy/pypy/issue/1932/invalid-assembler-if-libpypy-cso-was

Armin Rigo:

If libpypy-c.so was loaded with ``dlopen()`` instead of by the dynamic linker when the program starts, then x86/assembler.py will produce wrong code (or crash in an assertion error) in ``threadlocalref_get()``.  This is because the handling of thread-local variables is rather messy on Linux.

One easy workaround is to load your main program with ``LD_PRELOAD=...libpypy-c.so``.  Obviously, it would be a better idea to find a proper fix.




More information about the pypy-issue mailing list