From owner-freebsd-current@FreeBSD.ORG Thu Mar 4 04:23:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 900FA16A4CE for ; Thu, 4 Mar 2004 04:23:47 -0800 (PST) Received: from viviendaatualcance.com.mx (dsl-200-78-46-212.prod-infinitum.com.mx [200.78.46.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA28643D39 for ; Thu, 4 Mar 2004 04:23:44 -0800 (PST) (envelope-from eculp@viviendaatualcance.com.mx) Received: from localhost (localhost [127.0.0.1]) (uid 80) by viviendaatualcance.com.mx with local; Thu, 04 Mar 2004 06:23:44 -0600 Received: from dsl-200-78-18-185.prod-infinitum.com.mx (dsl-200-78-18-185.prod-infinitum.com.mx [200.78.18.185]) by mail.viviendaatualcance.com.mx (Horde) with HTTP for ; Thu, 4 Mar 2004 06:23:44 -0600 Message-ID: <20040304062344.xy1sgw00040k80ww@mail.viviendaatualcance.com.mx> Date: Thu, 4 Mar 2004 06:23:44 -0600 From: Edwin Culp To: freebsd-current@freebsd.org References: <20040303061144.GE56622@elvis.mu.org> <404592F5.1060206@freebsd.org> <20040303104657.GG56622@elvis.mu.org> <20040303105149.GH56622@elvis.mu.org> In-Reply-To: <20040303105149.GH56622@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Mailman-Approved-At: Thu, 04 Mar 2004 04:48:27 -0800 Subject: Re: fix for libpthread X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 12:23:47 -0000 Quoting Alfred Perlstein : > * Alfred Perlstein [040303 02:46] wrote: >> * David Xu [040303 00:09] wrote: >> > Alfred Perlstein wrote: >> > > >This assertion doesn't seem necessary. Apply to > >> >src/lib/libpthread/thread/thr_spinlock.c >> > > >> > As I saw some reports in the -CURRENT list, the panic is always > >> triggered by mix up >> > of libc_r and libpthread in same program. So to avoid other >> mysterious > crashes, >> > I'd like keep the code there, it is now used to check the problem. >> >> Can you clarify? Without this patch mplayer refuses to work for >> me and crashes at startup. With the patch it runs just fine. >> >> Is there a workaround? I've been forced to compile a couple of ports by using CFLAGS+=-pthread in my /etc/make.conf and it has solved the problem with them. net/openldap22-server is an example. Under normal conditions, I have it commented out. ed > > I sort of see what you are saying: > ~ % ldd `which mplayer` > /usr/local/bin/mplayer: > libpng.so.5 => /usr/local/lib/libpng.so.5 (0x2828e000) > libz.so.2 => /lib/libz.so.2 (0x282b0000) > libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x282bd000) > libncurses.so.5 => /lib/libncurses.so.5 (0x28320000) > libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x2835c000) > libXv.so.1 => /usr/X11R6/lib/libXv.so.1 (0x283c9000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x283ce000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x283dd000) > libpthread.so.1 => /usr/lib/libpthread.so.1 (0x284a5000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284c8000) > libintl.so.6 => /usr/local/lib/libintl.so.6 (0x285b7000) > libm.so.2 => /lib/libm.so.2 (0x285bf000) > libc.so.5 => /lib/libc.so.5 (0x285d7000) > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x286a2000) > > I see somehow it got linked against BOTH libpthread and libc_r, > there has to be a way to prevent that sort of bogus linkage > from happening. :( Or at least make it work right when it > does happen... > > -- > - Alfred Perlstein > - Research Engineering Development Inc. > - email: bright@mu.org cell: 408-480-4684 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"