[Varnish] #923: Segmentation Fault in varnishlog bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398

Varnish varnish-bugs at varnish-cache.org
Wed May 25 14:55:01 CEST 2011


#923: Segmentation Fault in varnishlog bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398
------------------------------------------------------+---------------------
 Reporter:  kdajka                                    |        Type:  defect    
   Status:  new                                       |    Priority:  normal    
Milestone:                                            |   Component:  varnishlog
  Version:  trunk                                     |    Severity:  normal    
 Keywords:  bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398  |  
------------------------------------------------------+---------------------
 When using varnishlog from latest trunk -
 bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398 I'm getting segfaults.
 {{{
 webadm at varnishic06:~$ gdb -c core.4176 varnish/bin/varnishlog
 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 "x86_64-linux-gnu"...

 warning: Can't read pathname for load map: Input/output error.
 Reading symbols from
 /usr/local/inp/varnish_bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398/lib/varnish/libvarnish.so...done.
 Loaded symbols for /usr/local/inp/varnish/lib/varnish/libvarnish.so
 Reading symbols from
 /usr/local/inp/varnish_bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398/lib/varnish/libvarnishcompat.so...done.
 Loaded symbols for /usr/local/inp/varnish/lib/varnish/libvarnishcompat.so
 Reading symbols from
 /usr/local/inp/varnish_bbc2f9194c45c94b4c7348a3fd3b4f1bc9574398/lib/libvarnishapi.so.1...done.
 Loaded symbols for /usr/local/inp/varnish/lib/libvarnishapi.so.1
 Reading symbols from /lib/libpthread.so.0...done.
 Loaded symbols for /lib/libpthread.so.0
 Reading symbols from /lib/libc.so.6...done.
 Loaded symbols for /lib/libc.so.6
 Reading symbols from /lib/librt.so.1...done.
 Loaded symbols for /lib/librt.so.1
 Reading symbols from /lib/libnsl.so.1...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /lib/libm.so.6...done.
 Loaded symbols for /lib/libm.so.6
 Reading symbols from /usr/lib/libpcre.so.3...done.
 Loaded symbols for /usr/lib/libpcre.so.3
 Reading symbols from /lib/ld-linux-x86-64.so.2...done.
 Loaded symbols for /lib64/ld-linux-x86-64.so.2
 Core was generated by `varnishlog -o -n blox_varnishic06'.
 Program terminated with signal 11, Segmentation fault.
 [New process 4176]
 #0  0x0000000000401552 in h_order (priv=0x16dd010, tag=SLT_Length,
 fd=4294967295, len=6, spec=0, ptr=0x7f3e3a2d4264 <Address 0x7f3e3a2d4264
 out of bounds>, bm=0)
     at varnishlog.c:100
 100     varnishlog.c: No such file or directory.
         in varnishlog.c
 (gdb) bt
 #0  0x0000000000401552 in h_order (priv=0x16dd010, tag=SLT_Length,
 fd=4294967295, len=6, spec=0, ptr=0x7f3e3a2d4264 <Address 0x7f3e3a2d4264
 out of bounds>, bm=0)
     at varnishlog.c:100
 #1  0x00007f3e3f91bcaa in VSL_Dispatch (vd=0x16dd010, func=0x401524
 <h_order>, priv=0x16dd010) at vsl.c:308
 #2  0x000000000040199e in do_order (vd=0x16dd010) at varnishlog.c:189
 #3  0x0000000000401f09 in main (argc=4, argv=0x7ffffc8c6af8) at
 varnishlog.c:359
 }}}

 Using 6 weeks old varnishlog with current trunk doesn't render any
 problems:

 {{{
 varnish_3b4859455803b606107c07b25b784372d5665a1f_debug/bin/varnishlog
 }}}

 So it could be narrowed to 4 changes:
 http://www.varnish-
 cache.org/trac/log/bin/varnishlog/varnishlog.c?action=stop_on_copy&mode=stop_on_copy&rev=&stop_rev=6f038c18768b6dd524c392ebe2765b06f5650b27&limit=100

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/923>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list