Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2007 09:03:49 -0800 (PST)
From:      Max Englander <zempftman@yahoo.com>
To:        freebsd-bugs@freebsd.org
Subject:   dlopen/close segfault with pthreaded children
Message-ID:  <70534.27201.qm@web51408.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
First time poster, please forgive ignorance.

I encountered this problem when writing a pthreaded module for Irssi (non-pthreaded). 

Irssi loads modules with dlopen() and removes them with dlclose(). A segmentation fault occurs when Irssi tries to remove a pthreaded child from the address space. A description of this problem is available here and here. 

Fix: a workaround is to simply build the parent (in my case, Irssi) with pthreads.

I don't know if this is a feature, quirk, or bug, but it was suggested to me to bring it to the lists' attention.

Thanks,
Max Englander

       
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70534.27201.qm>