[Bug stdio/10652] getaddrinfo causes segfault if multithreaded and linked statically

aj at suse dot de sourceware-bugzilla@sourceware.org
Thu Jan 3 12:14:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=10652

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aj at suse dot de

--- Comment #17 from Andreas Jaeger <aj at suse dot de> 2013-01-03 12:13:25 UTC ---
(In reply to comment #12)
> The same crash happens if the host program is not compiled with "-pthread" and
> dynamically loads a module which is linked to libpthread.so and calls
> getaddrinfo() from multiple threads.
> 
> I will attache two example C files that show case this problem.

A comment on this case is at:
http://sourceware.org/ml/libc-alpha/2012-10/msg00361.html

my advise for now is to link your application against libpthread until somebody
really digs into this and figures out what is supposed to work and how.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list