From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 25 17:30:32 2007 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DEED16A417 for ; Sun, 25 Nov 2007 17:30:32 +0000 (UTC) (envelope-from zempftman@yahoo.com) Received: from web51408.mail.re2.yahoo.com (web51408.mail.re2.yahoo.com [206.190.38.187]) by mx1.freebsd.org (Postfix) with SMTP id 09D5713C46A for ; Sun, 25 Nov 2007 17:30:31 +0000 (UTC) (envelope-from zempftman@yahoo.com) Received: (qmail 28177 invoked by uid 60001); 25 Nov 2007 17:03:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=c1w1of/dbrGCEpRpIg+i5CmO4XFXDNlnmllvOUPvXBo79IEArf3otbYNCvlZbkOdPqF4ugpuske/lPrUc9u7PiQ04O9bZs2k5cenHPNdsrazEZiGXKfjdzMgjGC2mK/amZ+NPTiJ8fZkcVTcDDf77d/R+6dEt6g2IO3sKmaJ8vU=; X-YMail-OSG: 2rWsmpUVM1nqA_Fs480eVvLzlNl6hVWWsimbWuPVZHIhWPKYs3qtAoBAfD0MjUEpkNEPybux3oc76SRwCLvWoymdO_HgFfHsRLlaBNpuFJKAVEIHBLE2TqTzXDKWLW5YZruSE6N34GHt9eNeDZ7_YwsSiQ-- Received: from [72.78.220.111] by web51408.mail.re2.yahoo.com via HTTP; Sun, 25 Nov 2007 09:03:49 PST Date: Sun, 25 Nov 2007 09:03:49 -0800 (PST) From: Max Englander To: freebsd-bugs@freebsd.org MIME-Version: 1.0 Message-ID: <70534.27201.qm@web51408.mail.re2.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: dlopen/close segfault with pthreaded children X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 17:30:32 -0000 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.