Pthread Iissue?

Matthew Dillon dillon at apollo.backplane.com
Fri Aug 8 00:39:43 PDT 2003


:-On [20030808 02:12], Matthew Dillon (dillon at xxxxxxxxxxxxxxxxxxxx) wrote:
:>    It fails on FreeBSD 4.7.  The -pthread option to cc should be
:>    setting -D_THREAD_SAFE, but apparently is not.  i.e. if you
:>    compile the program -pthread -D_THREAD_SAFE it will work.
:
:Just to add some observation: 4.8-STABLE also fails with a segfault.
:
:-- 
:Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai

    I committed a change to have -pthread set _THREAD_SAFE automatically.
    I don't know if that is the best solution but it is certainly better then
    having the C compiler silently produce bad code for a threaded program.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Bugs mailing list