OK, now I got something for you... but could be that the problem is already
solved in the latest CVS version... just that the latest CVS is not working
for me (see my earlier post about readdb()).

> 3. Wait for a seg fault. Then issue the backtrace command.

That happened right now.

> 4. If may also be helpful if you do a backtrace on all the 
> running threads. Using the commands 'info thr', thread 
> <number>, backtrace.

GNU gdb 5.3.92
Copyright 2003 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 "i586-suse-linux"...
Attaching to program: /usr/local/sbin/clamd, process 6268
Reading symbols from /usr/local/lib/libclamav.so.1...done.
Loaded symbols for /usr/local/lib/libclamav.so.1
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libbz2.so.1...done.
Loaded symbols for /usr/lib/libbz2.so.1
Reading symbols from /usr/lib/libgmp.so.3...done.
Loaded symbols for /usr/lib/libgmp.so.3
Reading symbols from /lib/i686/libpthread.so.0...done.
[New Thread 16384 (LWP 6268)]
[New Thread 32769 (LWP 6269)]
[New Thread 229391 (LWP 6364)]
[New Thread 245776 (LWP 6365)]
[New Thread 262161 (LWP 6404)]
Loaded symbols for /lib/i686/libpthread.so.0
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x4009ad08 in accept () from /lib/i686/libpthread.so.0
(gdb) continue
Continuing.
[New Thread 278546 (LWP 6642)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32769 (LWP 6269)]
0x4009511b in pthread_start_thread_event () from /lib/i686/libpthread.so.0

(gdb) info threads
  6 Thread 278546 (LWP 6642)  0x40097b94 in __pthread_sigsuspend () from
/lib/i686/libpthread.so.0
  5 Thread 262161 (LWP 6404)  0x4009ab6b in read () from
/lib/i686/libpthread.so.0
  4 Thread 245776 (LWP 6365)  0x401b5851 in select () from
/lib/i686/libc.so.6
  3 Thread 229391 (LWP 6364)  0x401b5851 in select () from
/lib/i686/libc.so.6
* 2 Thread 32769 (LWP 6269)  0x4009511b in pthread_start_thread_event ()
from /lib/i686/libpthread.so.0
  1 Thread 16384 (LWP 6268)  0x40097b94 in __pthread_sigsuspend () from
/lib/i686/libpthread.so.0
(gdb)

(gdb) thread 1
[Switching to thread 1 (Thread 16384 (LWP 6268))]#0  0x40097b94 in
__pthread_sigsuspend () from /lib/i686/libpthread.so.0
(gdb) bt
#0  0x40097b94 in __pthread_sigsuspend () from /lib/i686/libpthread.so.0
#1  0x400979d8 in __pthread_wait_for_restart_signal () from
/lib/i686/libpthread.so.0
#2  0x40097151 in pthread_create@@GLIBC_2.1 () from
/lib/i686/libpthread.so.0
#3  0x0804bec7 in thrmgr_dispatch (threadpool=0x427d43e0,
user_data=0x407004d8) at thrmgr.c:242
#4  0x0804c6d0 in acceptloop_th (socketd=0, root=0x40b06a78, copt=0x8051220)
at server-th.c:403
#5  0x0804b356 in tcpserver (opt=0x8050610, copt=0x8051220, root=0x8057990)
at tcpserver.c:105
#6  0x0804ae70 in clamd (opt=0x8050610) at clamd.c:235
#7  0x0804a0ac in main (argc=2, argv=0xbffff714) at options.c:113
(gdb)

(gdb) thread 2
[Switching to thread 2 (Thread 32769 (LWP 6269))]#0  0x4009511b in
pthread_start_thread_event ()
   from /lib/i686/libpthread.so.0
(gdb) bt
#0  0x4009511b in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
#1  0x43000000 in ?? ()
#2  0x00000f21 in ?? ()
#3  0x08b90ca0 in ?? ()
#4  0x08053458 in ?? ()
#5  0x0805345c in ?? ()
#6  0x08053460 in ?? ()
#7  0x08053464 in ?? ()
#8  0x08053474 in ?? ()
#9  0x4000d290 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#10 0x42e01000 in ?? ()
#11 0x42e00000 in ?? ()
#12 0x00001000 in ?? ()
#13 0x001ff000 in ?? ()
#14 0x4009d68c in __JCR_LIST__ () from /lib/i686/libpthread.so.0
#15 0x08050660 in ?? ()
#16 0x00000006 in ?? ()
#17 0x08053604 in ?? ()
#18 0x40094ccf in __pthread_manager () from /lib/i686/libpthread.so.0
#19 0x04895c41 in ?? ()
#20 0x3830e824 in ?? ()
#21 0xf6850000 in ?? ()
#22 0xfe65850f in ?? ()
#23 0x27e9ffff in ?? ()
#24 0x8dfffffe in ?? ()
#25 0x31550076 in ?? ()
#26 0x57e589d2 in ?? ()
#27 0xec835356 in ?? ()
#28 0x087d8b3c in ?? ()
#29 0xffe0bee8 in ?? ()
#30 0x49c381ff in ?? ()
#31 0x8b00007f in ?? ()
#32 0x0001a483 in ?? ()
#33 0x50778b00 in ?? ()
#34 0x3fffe681 in ?? ()
#35 0xe6c10000 in ?? ()
#36 0x89c60104 in ?? ()
#37 0x364ce8f0 in ?? ()
#38 0x46c70000 in ?? ()
#39 0x00000008 in ?? ()
#40 0x0c46c700 in ?? ()
#41 0xffffffff in ?? ()
#42 0xe8243489 in ?? ()
#43 0x000037d6 in ?? ()
#44 0xa8e88c66 in ?? ()
#45 0x8b617504 in ?? ()
#46 0x0001b093 in ?? ()
#47 0x48028b00 in ?? ()
#48 0x878b0289 in ?? ()
#49 0x00000400 in ?? ()
#50 0x1a74c085 in ?? ()
#51 0x8d00768d in ?? ()
#52 0x000027bc in ?? ()
#53 0x308b0000 in ?? ()
#54 0xe8240489 in ?? ()
#55 0xffffd996 in ?? ()
#56 0xf089f685 in ?? ()
#57 0x878bf075 in ?? ()
#58 0x00000404 in ?? ()
#59 0x1674c085 in ?? ()
#60 0x0000b68d in ?? ()
#61 0x308b0000 in ?? ()
#62 0xe8240489 in ?? ()
#63 0xffffd976 in ?? ()
#64 0xf089f685 in ?? ()
#65 0x878bf075 in ?? ()
#66 0x000003cc in ?? ()
#67 0x6774c085 in ?? ()
#68 0x5b3cc483 in ?? ()
#69 0xc35d5f5e in ?? ()
#70 0xd445b60f in ?? ()
#71 0x00cc45c7 in ?? ()
#72 0x8b000000 in ?? ()
#73 0x0003d897 in ?? ()
#74 0xd045c700 in ?? ()
(gdb)

(gdb) thread 3
[Switching to thread 3 (Thread 229391 (LWP 6364))]#0  0x401b5851 in select
() from /lib/i686/libc.so.6
(gdb) bt
#0  0x401b5851 in select () from /lib/i686/libc.so.6
#1  0x0000a10a in ?? ()
#2  0x0000000e in ?? ()
#3  0x42bf78bc in ?? ()
#4  0x00000001 in ?? ()
#5  0x0804d231 in scanstream (odesc=13, scanned=0x0, root=0x40b06a78,
limits=0xbffff540, options=11, copt=0x8051220)
    at scanner.c:284
#6  0x0804b971 in command (desc=13, root=0x40b06a78, limits=0xbffff540,
options=11, copt=0x8051220) at session.c:125
#7  0x0804bf30 in scanner_thread (arg=0x407004c0) at server-th.c:65
#8  0x0804bd70 in thrmgr_worker (arg=0x427d43e0) at thrmgr.c:197
#9  0x40094f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#10 0x400950fe in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
#11 0x401bc327 in clone () from /lib/i686/libc.so.6
(gdb)

(gdb) thread 4
[Switching to thread 4 (Thread 245776 (LWP 6365))]#0  0x401b5851 in select
() from /lib/i686/libc.so.6
(gdb) bt
#0  0x401b5851 in select () from /lib/i686/libc.so.6
#1  0x00002b69 in ?? ()
#2  0x0000000c in ?? ()
#3  0x42df78bc in ?? ()
#4  0x00000001 in ?? ()
#5  0x0804d231 in scanstream (odesc=11, scanned=0x0, root=0x40b06a78,
limits=0xbffff540, options=11, copt=0x8051220)
    at scanner.c:284
#6  0x0804b971 in command (desc=11, root=0x40b06a78, limits=0xbffff540,
options=11, copt=0x8051220) at session.c:125
#7  0x0804bf30 in scanner_thread (arg=0x407004a8) at server-th.c:65
#8  0x0804bd70 in thrmgr_worker (arg=0x427d43e0) at thrmgr.c:197
#9  0x40094f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#10 0x400950fe in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
#11 0x401bc327 in clone () from /lib/i686/libc.so.6
(gdb)

(gdb) thread 5
[Switching to thread 5 (Thread 262161 (LWP 6404))]#0  0x4009ab6b in read ()
from /lib/i686/libpthread.so.0
(gdb) bt
#0  0x4009ab6b in read () from /lib/i686/libpthread.so.0
#1  0x447f78cc in ?? ()
#2  0x00000001 in ?? ()
#3  0x0804d292 in scanstream (odesc=5, scanned=0x0, root=0x40b06a78,
limits=0xbffff540, options=11, copt=0x8051220)
    at scanner.c:290
#4  0x0804b971 in command (desc=5, root=0x40b06a78, limits=0xbffff540,
options=11, copt=0x8051220) at session.c:125
#5  0x0804bf30 in scanner_thread (arg=0x40700490) at server-th.c:65
#6  0x0804bd70 in thrmgr_worker (arg=0x427d43e0) at thrmgr.c:197
#7  0x40094f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#8  0x400950fe in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
#9  0x401bc327 in clone () from /lib/i686/libc.so.6
(gdb)

(gdb) thread 6
[Switching to thread 6 (Thread 278546 (LWP 6642))]#0  0x40097b94 in
__pthread_sigsuspend () from /lib/i686/libpthread.so.0
(gdb) bt
#0  0x40097b94 in __pthread_sigsuspend () from /lib/i686/libpthread.so.0
#1  0x400979d8 in __pthread_wait_for_restart_signal () from
/lib/i686/libpthread.so.0
#2  0x40098eb3 in __pthread_lock () from /lib/i686/libpthread.so.0
#3  0x400950e8 in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
#4  0x401bc327 in clone () from /lib/i686/libc.so.6
(gdb)



I hope this makes any sense to you :) ...

Regards,
Phil.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to