DragonFly BSD
DragonFly bugs List (threaded) for 2003-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Pthread Iissue?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Aug 2003 00:38:52 -0700 (PDT)

:-On [20030808 02:12], Matthew Dillon (dillon@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@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]