Please help break Varnish GZIP/ESI support before 3.0
jdzstz - gmail dot com
jdzstz at gmail.com
Fri Jan 28 18:17:39 CET 2011
About my coredumps problems at startup in Solaris 10 - 64 bits, I have
recompiled in debug mode and inspected core.
The problem root is in VSC_main, it isn't initialized and generates a
bus error in: vsl_wrap () at cache_shmlog.c:87 (
VSC_main->shm_cycles++;)
Solaris version is: 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T2000
Varnish is compiled with gcc version 3.4.6
GDB result:
GNU gdb 6.8
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 "sparc-sun-solaris2.10"...
Reading symbols from /lib/sparcv9/libumem.so.1...done.
Loaded symbols for /lib/64/libumem.so.1
Reading symbols from /export/home/web1/varnish3_64/lib/libvarnish.so.1...done.
Loaded symbols for /export/home/web1/varnish3_64/lib/libvarnish.so.1
Reading symbols from
/export/home/web1/varnish3_64/lib/libvarnishcompat.so.1...done.
Loaded symbols for /export/home/web1/varnish3_64/lib/libvarnishcompat.so.1
Reading symbols from /export/home/web1/varnish3_64/lib/libvcl.so.1...done.
Loaded symbols for /export/home/web1/varnish3_64/lib/libvcl.so.1
Reading symbols from /lib/sparcv9/librt.so.1...done.
Loaded symbols for /lib/64/librt.so.1
Reading symbols from /export/home/web1/local/lib/libpcre.so.0...done.
Loaded symbols for /export/home/web1/local/lib/libpcre.so.0
Reading symbols from /export/home/web1/varnish3_64/lib/libvgz.so.1...done.
Loaded symbols for /export/home/web1/varnish3_64/lib/libvgz.so.1
Reading symbols from /lib/sparcv9/libdl.so.1...
warning: Lowest section in /lib/sparcv9/libdl.so.1 is .hash at 0000000000000120
done.
Loaded symbols for /lib/64/libdl.so.1
Reading symbols from /lib/sparcv9/libnsl.so.1...done.
Loaded symbols for /lib/64/libnsl.so.1
Reading symbols from /lib/sparcv9/libsocket.so.1...done.
Loaded symbols for /lib/64/libsocket.so.1
Reading symbols from /lib/sparcv9/libm.so.2...done.
Loaded symbols for /lib/64/libm.so.2
Reading symbols from /lib/sparcv9/libpthread.so.1...
warning: Lowest section in /lib/sparcv9/libpthread.so.1 is .dynamic at
00000000000000b0
done.
Loaded symbols for /lib/64/libpthread.so.1
Reading symbols from /lib/sparcv9/libc.so.1...done.
Loaded symbols for /lib/64/libc.so.1
Reading symbols from /usr/local/lib/sparcv9/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/sparcv9/libgcc_s.so.1
Reading symbols from /lib/sparcv9/libaio.so.1...done.
Loaded symbols for /lib/64/libaio.so.1
Reading symbols from /lib/sparcv9/libmd.so.1...done.
Loaded symbols for /lib/64/libmd.so.1
Reading symbols from /platform/sun4v/lib/sparcv9/libc_psr.so.1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr.so.1
Reading symbols from /lib/sparcv9/ld.so.1...done.
Loaded symbols for /lib/sparcv9/ld.so.1
Core was generated by `/export/home/web1/varnish3_64/sbin/varnishd -d
-a :7002 :8082 -T :8802 -f /expo'.
Program terminated with signal 10, Bus error.
[New process 82622 ]
#0 0x0000000100061650 in vsl_wrap () at cache_shmlog.c:87
87 VSC_main->shm_cycles++;
(gdb) bt
#0 0x0000000100061650 in vsl_wrap () at cache_shmlog.c:87
#1 0x0000000100063124 in VSL_Init () at cache_shmlog.c:289
#2 0x0000000100052ee8 in child_main () at cache_main.c:105
#3 0x000000010007d678 in start_child (cli=0x1002b3ef0) at mgt_child.c:408
#4 0x000000010007f8f0 in mcf_server_startstop (cli=0x1002b3ef0,
av=0x100211b00, priv=0x0) at mgt_child.c:657
#5 0xffffffff7f30a2f8 in cls_dispatch (cli=0x1002b3ef0,
clp=0x1001c13b0, av=0x100211b00, ac=1) at cli_serve.c:231
#6 0xffffffff7f30a8bc in cls_vlu2 (priv=0x1002b3ec0, av=0x100211b00)
at cli_serve.c:287
#7 0xffffffff7f30af18 in cls_vlu (priv=0x1002b3ec0, p=0x100208010
"start") at cli_serve.c:342
#8 0xffffffff7f3121b4 in LineUpProcess (l=0x1001f3890) at vlu.c:157
#9 0xffffffff7f3124b8 in VLU_Fd (fd=0, l=0x1001f3890) at vlu.c:182
#10 0xffffffff7f30c410 in CLS_PollFd (cs=0x1002b1f40, fd=0, timeout=0)
at cli_serve.c:493
#11 0x0000000100084384 in mgt_cli_callback2 (e=0x1002b5f50, what=1) at
mgt_cli.c:389
#12 0xffffffff7f31132c in vev_schedule_one (evb=0x10021ff10) at vev.c:501
#13 0xffffffff7f3106b0 in vev_schedule (evb=0x10021ff10) at vev.c:366
#14 0x000000010007f744 in MGT_Run () at mgt_child.c:639
#15 0x00000001000a564c in main (argc=0, argv=0xffffffff7ffff938) at
varnishd.c:650
(gdb) print VSC_main
$1 = (struct vsc_main *) 0xffffffff7601007c
(gdb) print *VSC_main
Cannot access memory at address 0xffffffff7601007c
(gdb) print VSC_main->shm_cycles
Cannot access memory at address 0xffffffff7601028c
(gdb)
2011/1/28 jdzstz - gmail dot com:
> I have compiled new varnish 3.0 trunk in Solaris 10 (32 bits and 64
> bits) and Cygwin and also executed varnishtests.
>
> Solaris 10 64 bits compiles successfully, but it coredumps at boot time:
>
> SMA.s0: max size 100 MB.
> Message from C-compiler:
> gcc: unrecognized option `-Kpic'
> Platform: -smalloc,-smalloc,-hcritbit
> 200 214
> -----------------------------
> Varnish Cache CLI 1.0
> -----------------------------
> -smalloc,-smalloc,-hcritbit
>
> Type 'help' for command list.
> Type 'quit' to close CLI session.
> Type 'start' to launch worker process.
>
> start
> child (17086) Started
> Pushing vcls failed: CLI communication error (hdr)
> Stopping Child
> 200 0
>
> Child (17086) died signal=10 (core dumped)
> Child (-1) said
> Child (-1) said Child starts
> Child cleanup complete
>
> Varnish 2.1.2 works ok in same machin, so, I will inspect core file
> and search the error.
>
> About solaris 32 bits and cygwin, the following tests are FAILED:
>
> Solaris 10 - 32 bits:
>
> # top TEST ./tests/e00021.vtc FAILED (2.656)
> # top TEST ./tests/e00022.vtc FAILED (3.479)
> # top TEST ./tests/e00023.vtc FAILED (2.517)
> # top TEST ./tests/e00024.vtc FAILED (2.440)
> # top TEST ./tests/g00002.vtc FAILED (3.455)
> # top TEST ./tests/m00004.vtc FAILED (2.431)
> # top TEST ./tests/v00006.vtc FAILED (7.090)
> # top TEST ./tests/v00012.vtc FAILED (30.017)
> # top TEST ./tests/v00017.vtc FAILED (3.180)
>
> Cygwin.
>
> # top TEST tests/e00022.vtc FAILED (8.336)
> # top TEST tests/g00002.vtc FAILED (6.281)
> # top TEST tests/s00002.vtc FAILED (30.111)
>
> (s00002.vtc maybe a unresolved cygwin issue)
>
> Test logs are attached to email, I will made some real tests in both
> platforms and send again.
>
> It seems that ,at least, there is some problems with e00022.vtc and
> g00002.vtc because fails in both systems.
>
More information about the varnish-misc
mailing list