pthread_cond_wait failed

From: ngl <ngl_at_ur.ru>
Date: Thu, 5 Aug 2004 18:40:13 +0600
Hello all

I'm using pcap and c_r libraries under FreeBSD 5.2.1-p9.
I have faced a problem, when one thread call pthread_cond_wait function,
i get 'Segmentation fault (core dumped)' message.

Here is the dump:
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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"...
(gdb) core test.core
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/lib/libc_r.so.5...done.
Loaded symbols for /usr/lib/libc_r.so.5
Reading symbols from /usr/lib/libpcap.so.2...done.
Loaded symbols for /usr/lib/libpcap.so.2
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0  0x28159ef9 in _atomic_lock () from /usr/lib/libc_r.so.5
(gdb) bt
#0  0x28159ef9 in _atomic_lock () from /usr/lib/libc_r.so.5
#1  0x28159da9 in _spinlock () from /usr/lib/libc_r.so.5
#2  0x2815fbd2 in _mutex_cv_lock () from /usr/lib/libc_r.so.5
#3  0x2815fa79 in _mutex_cv_unlock () from /usr/lib/libc_r.so.5
#4  0x2816488f in _pthread_cond_wait () from /usr/lib/libc_r.so.5
#5  0x281649ee in pthread_cond_wait () from /usr/lib/libc_r.so.5
#6  0x280bcf35 in pthread_cond_wait () from /lib/libc.so.5
#7  0x08049486 in printThread (pv=0x0) at test.c:67
#8  0x2815842e in _thread_start () from /usr/lib/libc_r.so.5

regards,
Nik
Received on Thu Aug 05 2004 - 10:40:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC