You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/jcea'closed_at=<Date2019-09-28.04:39:57.003>created_at=<Date2019-09-27.21:35:16.099>labels= ['3.8', 'build', '3.7', '3.9']
title='If "_REENTRANT" is defined in the header file, we should use "-D_REENTRANT" when compiling'updated_at=<Date2019-09-28.06:31:34.512>user='https://github.com/jcea'
When compiling on Solaris family, we define "_REENTRANT" in "Pyconfig.h". That file is included when compiling C extensions, but if the extension is made of several C files, it could be included only in the file that interfaces with python runtime.
Unfortunately, "_REENTRANT" modifies the way C code is compiled, so compiling a C extension with some source files with "_REENTRANT" and some other without that "define" can produce bizarre errors and crashes.