On 1 May 2012 14:08, Unga <unga...@yahoo.com> wrote: > Hi all > > I'm getting a Segmentation fault in FreeBSD 9.0 as follows for myprog.c: > > > Reading symbols from /libexec/ld-elf.so.1...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x28ebb062 in flockfile () from /lib/libc.so.7 > [New Thread 29c04900 (LWP 100575/SDLTimer)] > [New Thread 29c04300 (LWP 100416/myprog)] > (gdb) > (gdb) info threads > * 2 Thread 29c04300 (LWP 100416/myprog) 0x28ebb062 in flockfile () > from /lib/libc.so.7 > 1 Thread 29c04900 (LWP 100575/SDLTimer) 0x28e1527b in _umtx_op () > from /lib/libc.so.7 > (gdb) > > I use -lpthread.
I doubt this is related, but using -lpthread is wrong. use -pthread (without the l). -- Eitan Adler _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"