tot dumps core

Dag-Erling Smørgrav des at linpro.no
Fri Jul 14 09:27:50 CEST 2006


"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> Please give me a backtrace of all the threads then, I must have
> overlooked something.

des at dma ~varnish/varnish-cache% ./varnish.sh
file /home/des/projects/varnish/trunk/varnish-cache/storage size 8388608 bytes (16384 fs-blocks, 2048 pages)
start child pid 85466
Child said <Child starts>
Child said <Loaded "/tmp/vcl.6xh4auSp" as "boot">
Child said <managed to mmap 8388608 bytes of 8388608>
Child said <Ready>
sig_chld(20, 8, 0)
pid = 85466 status = 0x8b
Child died :-(
des at dma ~varnish/varnish-cache% ./gvarnish.sh
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...
Core was generated by `lt-varnishd'.
Program terminated with signal 11, Segmentation fault.
Error while mapping shared library sections:
/tmp/vcl.6xh4auSp: No such file or directory.
Reading symbols from /home/des/projects/varnish/trunk/varnish-cache/lib/libvarnish/.libs/libvarnish.so.0...done.
Loaded symbols for /home/des/projects/varnish/trunk/varnish-cache/lib/libvarnish/.libs/libvarnish.so.0
Reading symbols from /home/des/projects/varnish/trunk/varnish-cache/lib/libvcl/.libs/libvcl.so.0...done.
Loaded symbols for /home/des/projects/varnish/trunk/varnish-cache/lib/libvcl/.libs/libvcl.so.0
Reading symbols from /home/des/projects/varnish/trunk/varnish-cache/contrib/libevent/.libs/libevent-1.2.so.1...done.
Loaded symbols for /home/des/projects/varnish/trunk/varnish-cache/contrib/libevent/.libs/libevent-1.2.so.1
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libmd.so.3...done.
Loaded symbols for /lib/libmd.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Error while reading shared library symbols:
/tmp/vcl.6xh4auSp: No such file or directory.
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000800989e9c in kse_thr_interrupt () at kse_thr_interrupt.S:2
2       RSYSCALL(kse_thr_interrupt)
[New Thread 0x801051c00 (sleeping)]
[New Thread 0x801051800 (sleeping)]
[New Thread 0x801051400 (runnable)]
[New Thread 0x801051000 (runnable)]
[New Thread 0x801050c00 (runnable)]
[New Thread 0x801050800 (LWP 100179)]
[New Thread 0x801050400 (runnable)]
[New LWP 100155]
Current language:  auto; currently asm
(gdb) i thr
* 8 LWP 100155  0x0000000800989e9c in kse_thr_interrupt ()
    at kse_thr_interrupt.S:2
  7 Thread 0x801050400 (runnable)  0x0000000800c6b86c in kevent ()
    at kevent.S:2
  6 Thread 0x801050800 (LWP 100179)  0x0000000800989e5c in kse_release ()
    at kse_release.S:2
  5 Thread 0x801050c00 (runnable)  0x0000000800c6b86c in kevent ()
    at kevent.S:2
  4 Thread 0x801051000 (runnable)  hcl_lookup (key1=0x801132385 "/",
    key2=0x801132397 "www.des.no", nobj=0x800be6c70) at hash_classic.c:151
  3 Thread 0x801051400 (runnable)  0x0000000800c6b86c in kevent ()
    at kevent.S:2
  2 Thread 0x801051800 (sleeping)  _thr_sched_switch_unlocked (
    curthread=0x801051800) at pthread_md.h:226
  1 Thread 0x801051c00 (sleeping)  _thr_sched_switch_unlocked (
    curthread=0x801051c00) at pthread_md.h:226
(gdb) thr 1
[Switching to thread 1 (Thread 0x801051c00 (sleeping))]#0  _thr_sched_switch_unlocked (curthread=0x801051c00) at pthread_md.h:226
226             if (ret == 0) {
Current language:  auto; currently c
(gdb) where
#0  _thr_sched_switch_unlocked (curthread=0x801051c00) at pthread_md.h:226
#1  0x000000080097bdfc in _nanosleep (time_to_sleep=0x7fffff1f9f50,
    time_remaining=0x7fffff1f9f40)
    at /usr/src/lib/libpthread/thread/thr_nanosleep.c:77
#2  0x0000000800c364f0 in __sleep (seconds=1)
    at /usr/src/lib/libc/gen/sleep.c:63
#3  0x00000008009726d6 in _sleep (seconds=1)
    at /usr/src/lib/libpthread/thread/thr_sleep.c:54
#4  0x00000000004068fc in exp_hangman (arg=0x80054a080) at cache_expire.c:67
#5  0x000000080097a6d9 in thread_start (curthread=0x80054a080,
    start_routine=0x801020208, arg=0x80054a080)
    at /usr/src/lib/libpthread/thread/thr_create.c:344
#6  0x0000000800be6c94 in makectx_wrapper (ucp=0x80054a070, func=0x801051c60,
    args=0x1) at /usr/src/lib/libc/amd64/gen/makecontext.c:100
#7  0x0000000000000000 in ?? ()
#8  0x0000000801051c00 in ?? ()
#9  0x0000000000406870 in EXP_TTLchange () at cache_expire.c:35
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff1fa000
(gdb) thr 2
[Switching to thread 2 (Thread 0x801051800 (sleeping))]#0  _thr_sched_switch_unlocked (curthread=0x801051800) at pthread_md.h:226
226             if (ret == 0) {
(gdb) where
#0  _thr_sched_switch_unlocked (curthread=0x801051800) at pthread_md.h:226
#1  0x000000080097bdfc in _nanosleep (time_to_sleep=0x7fffff3fae70,
    time_remaining=0x7fffff3fae60)
    at /usr/src/lib/libpthread/thread/thr_nanosleep.c:77
#2  0x0000000800c364f0 in __sleep (seconds=1)
    at /usr/src/lib/libc/gen/sleep.c:63
#3  0x00000008009726d6 in _sleep (seconds=1)
    at /usr/src/lib/libpthread/thread/thr_sleep.c:54
#4  0x0000000000406a59 in exp_prefetch (arg=0x800549880) at cache_expire.c:99
#5  0x000000080097a6d9 in thread_start (curthread=0x800549880,
    start_routine=0x801020208, arg=0x800549880)
    at /usr/src/lib/libpthread/thread/thr_create.c:344
#6  0x0000000800be6c94 in makectx_wrapper (ucp=0x800549870, func=0x801051860,
    args=0x1) at /usr/src/lib/libc/amd64/gen/makecontext.c:100
#7  0x0000000000000000 in ?? ()
#8  0x0000000801051800 in ?? ()
#9  0x00000000004069f0 in exp_hangman () at cache_expire.c:71
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff3fb000
(gdb) thr 3
[Switching to thread 3 (Thread 0x801051400 (runnable))]#0  0x0000000800c6b86c in kevent () at kevent.S:2
2       RSYSCALL(kevent)
Current language:  auto; currently asm
(gdb) where
#0  0x0000000800c6b86c in kevent () at kevent.S:2
#1  0x0000000800862e74 in kq_dispatch (base=0x14, arg=0x801009700, tv=0x0)
    at kqueue.c:220
#2  0x000000080085dd4a in event_base_loop (base=0x801120340, flags=0)
    at event.c:413
#3  0x00000000004049eb in vca_main (arg=0x14) at cache_acceptor.c:285
#4  0x000000080097a6d9 in thread_start (curthread=0x14,
    start_routine=0x8010d5800, arg=0x14)
    at /usr/src/lib/libpthread/thread/thr_create.c:344
#5  0x0000000800be6c94 in makectx_wrapper (ucp=0x800549070,
    func=0xffffffff805753c0, args=0x1)
    at /usr/src/lib/libc/amd64/gen/makecontext.c:100
#6  0x0000000000000000 in ?? ()
#7  0x0000000801051400 in ?? ()
#8  0x00000000004048b0 in accept_f () at cache_acceptor.c:221
#9  0x0000000000000000 in ?? ()
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff5fc000
(gdb) thr 4
[Switching to thread 4 (Thread 0x801051000 (runnable))]#0  hcl_lookup (
    key1=0x801132385 "/", key2=0x801132397 "www.des.no", nobj=0x800be6c70)
    at hash_classic.c:151
151             nobj->hashpriv = he2;
Current language:  auto; currently c
(gdb) where
#0  hcl_lookup (key1=0x801132385 "/", key2=0x801132397 "www.des.no",
    nobj=0x800be6c70) at hash_classic.c:151
#1  0x0000000000407972 in HSH_Lookup (w=0x7fffff7fcf30, h=0x801132178)
    at cache_hash.c:71
#2  0x000000000040614d in cnt_lookup (w=0x80106429b, sp=0x801132000)
    at cache_center.c:294
#3  0x0000000000406607 in CNT_Session (w=0x7fffff7fcf30, sp=0x801132000)
    at steps.h:7
#4  0x000000000040980c in wrk_thread (priv=0x7fffffffe734) at cache_pool.c:66
#5  0x000000080097a6d9 in thread_start (curthread=0x80106429b,
    start_routine=0x8011323a2, arg=0x80106429b)
    at /usr/src/lib/libpthread/thread/thr_create.c:344
#6  0x0000000800be6c94 in makectx_wrapper (ucp=0x800548870, func=0xb031c7f9,
    args=0x801064290) at /usr/src/lib/libc/amd64/gen/makecontext.c:100
#7  0x0000000000000000 in ?? ()
#8  0x0000000801051000 in ?? ()
#9  0x00000000004096b0 in child_main ()
#10 0x00007fffffffe734 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff7fd000
(gdb) thr 5
[Switching to thread 5 (Thread 0x801050c00 (runnable))]#0  0x0000000800c6b86c in kevent () at kevent.S:2
2       RSYSCALL(kevent)
Current language:  auto; currently asm
(gdb) where
#0  0x0000000800c6b86c in kevent () at kevent.S:2
#1  0x0000000800862e74 in kq_dispatch (base=0xe, arg=0x801009680, tv=0x0)
    at kqueue.c:220
#2  0x000000080085dd4a in event_base_loop (base=0x801120220, flags=0)
    at event.c:413
#3  0x0000000000405630 in vbe_main (priv=0xe) at cache_backend.c:281
#4  0x000000080097a6d9 in thread_start (curthread=0xe,
    start_routine=0x8010d3800, arg=0xe)
    at /usr/src/lib/libpthread/thread/thr_create.c:344
#5  0x0000000800be6c94 in makectx_wrapper (ucp=0x800548070,
    func=0x8009642e0 <kqops>, args=0x0)
    at /usr/src/lib/libc/amd64/gen/makecontext.c:100
#6  0x0000000000000000 in ?? ()
#7  0x0000000801050c00 in ?? ()
#8  0x00000000004055b0 in vbe_rdf () at cache_backend.c:262
#9  0x0000000000000000 in ?? ()
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff9fe000
(gdb) thr 6
[Switching to thread 6 (Thread 0x801050800 (LWP 100179))]#0  0x0000000800989e5c in kse_release () at kse_release.S:2
2       RSYSCALL(kse_release)
(gdb) where
#0  0x0000000800989e5c in kse_release () at kse_release.S:2
#1  0x0000000800977326 in sig_daemon (arg=0x7fffffbfef70)
    at /usr/src/lib/libpthread/thread/thr_sig.c:214
#2  0x00000008009813ca in kse_sched_single (kmbx=0x7fffffbfef70)
    at /usr/src/lib/libpthread/thread/thr_kern.c:886
#3  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffffbff000
(gdb) thr 7
[Switching to thread 7 (Thread 0x801050400 (runnable))]#0  0x0000000800c6b86c in kevent () at kevent.S:2
2       RSYSCALL(kevent)
(gdb) where
#0  0x0000000800c6b86c in kevent () at kevent.S:2
#1  0x0000000800862e74 in kq_dispatch (base=0x9, arg=0x801009660, tv=0x0)
    at kqueue.c:220
#2  0x000000080085dd4a in event_base_loop (base=0x8011201c0, flags=0)
    at event.c:413
#3  0x000000000040962e in child_main () at cache_main.c:133
#4  0x000000000040cc23 in start_child () at mgt_child.c:226
#5  0x000000000040f8ef in testme () at varnishd.c:345
#6  0x0000000000410113 in main (argc=9, argv=0x7fffffffe880) at varnishd.c:590
(gdb) thr 8
[Switching to thread 8 (LWP 100155)]#0  0x0000000800989e5c in kse_release ()
    at kse_release.S:2
2       RSYSCALL(kse_release)
(gdb) where
#0  0x0000000800989e5c in kse_release () at kse_release.S:2
#1  0x0000000800977326 in sig_daemon (arg=0x7fffffbfef70)
    at /usr/src/lib/libpthread/thread/thr_sig.c:214
#2  0x00000008009813ca in kse_sched_single (kmbx=0x7fffffbfef70)
    at /usr/src/lib/libpthread/thread/thr_kern.c:886
#3  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffffbff000

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list