[Varnish] #1160: [PATCH] varnishadm crashes when run with -n and server without -T and -S

Varnish varnish-bugs at varnish-cache.org
Fri Jun 29 13:31:28 CEST 2012


#1160: [PATCH] varnishadm crashes when run with -n and server without -T and -S
----------------------+-----------------------------------------------------
 Reporter:  lkundrak  |        Type:  defect
   Status:  new       |    Priority:  normal
Milestone:            |   Component:  build 
  Version:  trunk     |    Severity:  normal
 Keywords:            |  
----------------------+-----------------------------------------------------
 {{{
 ♥ varnishd -F -a 0.0.0.0:668 -b 127.0.0.1:80 -n kokot
 child (29843) Started
 Child (29843) said Child starts
 Child (29843) said SMF.s0 mmap'ed 104857600 bytes of 104857600
 ^Z
 [1]+  Stopped                 varnishd -F -a 0.0.0.0:6668 -b 127.0.0.1:80
 -n kokot
 ♥ bg
 [1]+ varnishd -F -a 0.0.0.0:6668 -b 127.0.0.1:80 -n kokot &
 ♥ gdb varnishadm
 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
 Copyright (C) 2010 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-redhat-linux-gnu".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /home/lkundrak/src/varnish-cache/bin/varnishadm/.libs
 /lt-varnishadm...done.
 (gdb) run -n kokot
 Starting program: /home/lkundrak/src/varnish-cache/bin/varnishadm/.libs
 /lt-varnishadm -n kokot
 [Thread debugging using libthread_db enabled]

 Program received signal SIGSEGV, Segmentation fault.
 __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
 32              movdqu  (%rdi), %xmm1
 (gdb) bt
 #0  __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
 #1  0x0000003a8127f836 in __strdup (s=0x0) at strdup.c:42
 #2  0x00000000004019ff in n_arg_sock (n_arg=<value optimized out>) at
 varnishadm.c:306
 #3  0x0000000000401eee in main (argc=0, argv=0x7fffffffdfb0) at
 varnishadm.c:364
 (gdb) up
 #1  0x0000003a8127f836 in __strdup (s=0x0) at strdup.c:42
 42        size_t len = strlen (s) + 1;
 (gdb)
 #2  0x00000000004019ff in n_arg_sock (n_arg=<value optimized out>) at
 varnishadm.c:306
 306                     T_start = T_arg = strdup(vt.b);
 (gdb) print vt
 $1 = {chunk = 0x0, b = 0x0, e = 0x0, priv = 0}
 (gdb)
 }}}

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




More information about the varnish-bugs mailing list