how can I debug varnishd ?
jilong yang
yang at knownsec.com
Sat Apr 25 09:38:36 CEST 2009
thanks very much !!
I wan't to check the query string , and I can use vcl to work for it where
GET method.
I hope to check the POST string too ,how can I do ?
I find the post data follow the http header in sp->http0->ws , and the post
data in htc->rxbuf->b too .
can I do the check POST DATA work on HTC_Rx ?
2009/4/25 Adrian Otto <aotto at mosso.com>
> Jilong Yang,
> Set ping_interval to 0 to disable it, or set it to a really high number.
> When you stop the child process, the parent process no longer gets ping
> responses from it (checks by default every 3 seconds), so it tries to help
> by killing off the child and making a new one. It does not know you have it
> in a debugger.
>
> Regards,
>
> Adrian
>
> On Apr 24, 2009, at 10:00 PM, jilong yang wrote:
>
>
>
>
>
> 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)
>
>
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090425/8ebcd4a2/attachment-0001.html>
More information about the varnish-dev
mailing list