Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 11:28:10 PDT
From:      "Caleb Land" <redhatdude@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Thread runtime errors with 4.1
Message-ID:  <20000718182810.6047.qmail@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hello,
	I am having trouble running some programs that use threads.  I am using a 
recently built and installed system:
----------------
# uname -a
FreeBSD helga.granfalloon.com 4.1-RC FreeBSD 4.1-RC #11: Mon Jul 17 19:03:18 
EDT 2000     root@helga.granfalloon.com:/usr/src/sys/compile/HELGA  i386
----------------

For example, the XMMS port used to work, but when I upgraded it, I get a 
core dump at runtime that when I open in gdb prints this:

----------------
# gdb xmms
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols 
found)...
(gdb) core-file xmms.core
Core was generated by `xmms'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libgtk12.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libgdk12.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libgmodule12.so.3...(no debugging 
symbols found)...done.
Reading symbols from /usr/local/lib/libgthread12.so.3...(no debugging 
symbols found)...done.
Reading symbols from /usr/local/lib/libglib12.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libintl.so.1...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libxpg4.so.3...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libm.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/local/lib/libpthread.so.13...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...(no debugging symbols 
found)...done.
Reading symbols from /usr/X11R6/lib/libxmms.so.1...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libc_r.so.4...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libxpg4.so.2...(no debugging symbols 
found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols 
found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols 
found)...done.
#0  0x283ef7b8 in pth_cancel_point () from /usr/local/lib/libpthread.so.13
----------------

I recently compiled PAN (the news reader).  I had to do a search on the 
Makefile and replace -lc_r with -lpthread to get it to compile correctly 
(this IS right, isn't it, from what I read in the manual pages this is 
correct, but I could be wrong), but when I run it I get similar results with 
the core file it dumps.

I am somewhat confused as to what everything does with regard to the 
threads, IE ports/devel/pth, ports/devel/pth-devel, 
ports/devel/linuxthreads, /usr/src/lib/libc_r.  If someone could explain 
this (even if not answering my problem) I would be very grateful.  I thought 
that the last one (libc_r) was a thread safe C library, if so, then why 
doesn't -lc_r work, but -lpthread does (compile time anyways)

Sincerely,
Caleb, confused about threads, Land
(bokonon@rochester.rr.com) - If you CC a reply to my address please use this 
one, I'm on my hotmail account now, but it isn't my real address.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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