libpthread/fork issue

Joerg Sonnenberger joerg at
Fri Mar 7 14:07:48 UTC 2008

On Thu, Mar 06, 2008 at 09:45:15PM -0600, Marko, Shaun wrote:
> In short, if a process creates a thread, joins
> the thread, then forks a child process which creates a thread, the
> child's attempt to create a thread will cause the program to dump core
> with the following error message.

fork and pthread should not be mixed. You can and normally should only
assume that the current thread is present in the child.


More information about the freebsd-hackers mailing list