how can I debug varnishd ?

jilong yang yang at knownsec.com
Sat Apr 25 07:00:41 CEST 2009


When I gdb to debug varnishd,after I set break or hbreak ,the varnishd
SIGQUIT and then exit.
It let I can't debug it . why ?


ubuntu at ubuntu:~$ gdb /opt/varnish/sbin/varnishd 7469
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Attaching to program: /opt/varnish/sbin/varnishd, process 7469
Error while mapping shared library sections:
./vcl.1P9zoqAU.so: No such file or directory.
Reading symbols from /opt/varnish/lib/libvarnish.so.1...done.
Loaded symbols for /opt/varnish/lib/libvarnish.so.1
Reading symbols from /lib/tls/i686/cmov/librt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /opt/varnish/lib/libvarnishcompat.so.1...done.
Loaded symbols for /opt/varnish/lib/libvarnishcompat.so.1
Reading symbols from /opt/varnish/lib/libvcl.so.1...done.
Loaded symbols for /opt/varnish/lib/libvcl.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d3c6b0 (LWP 7469)]
[New Thread 0x2f8fab90 (LWP 7476)]
[New Thread 0x300fbb90 (LWP 7475)]
[New Thread 0x308fcb90 (LWP 7474)]
[New Thread 0xb13ebb90 (LWP 7473)]
[New Thread 0xb1becb90 (LWP 7472)]
[New Thread 0xb23edb90 (LWP 7471)]
[New Thread 0xb2beeb90 (LWP 7470)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Symbol file not found for ./vcl.1P9zoqAU.so
0xb7f24410 in __kernel_vsyscall ()
(gdb) break printf
<----------here I set break
Breakpoint 1 at 0xb7d84334
(gdb) c
<--------- I continue
Continuing.

Program received signal SIGQUIT, Quit.                     <-----------then
the sig quit
[Switching to Thread 0xb2beeb90 (LWP 7470)]
0xb7f24410 in __kernel_vsyscall ()
(gdb) c
Continuing.

Program terminated with signal SIGQUIT, Quit.
The program no longer exists.
(gdb) c
The program is not being run.
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090425/045d5e4a/attachment-0002.html>


More information about the varnish-dev mailing list