[Varnish] #1287: Varnish 3.0.3 - segfault in libvarnish.so.

Varnish varnish-bugs at varnish-cache.org
Mon Apr 22 15:56:32 CEST 2013


#1287: Varnish 3.0.3 - segfault in libvarnish.so.
------------------------------------+--------------------
 Reporter:  robroy                  |       Owner:
     Type:  defect                  |      Status:  new
 Priority:  normal                  |   Milestone:
Component:  varnishd                |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  segfault libvarnish.so  |
------------------------------------+--------------------

Comment (by bokkepoot):

 root at lb2:~# gdb /usr/sbin/varnishd /tmp/core-
 varnishd-11-65534-65534-6986-1366638243
 GNU gdb (GDB) 7.0.1-debian
 Copyright (C) 2009 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".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /usr/sbin/varnishd...Reading symbols from
 /usr/lib/debug/usr/sbin/varnishd...done.
 (no debugging symbols found)...done.
 [New Thread 7008]
 [New Thread 7010]
 [New Thread 6986]
 [New Thread 6990]
 [New Thread 6992]
 [New Thread 6993]
 [New Thread 6994]
 [New Thread 6995]
 [New Thread 6996]
 [New Thread 6997]
 [New Thread 6987]
 [New Thread 7000]
 [New Thread 7006]
 [New Thread 7012]
 [New Thread 7007]
 [New Thread 6988]
 [New Thread 7001]
 [New Thread 7004]
 [New Thread 7002]
 [New Thread 7003]
 [New Thread 6991]
 [New Thread 6999]
 [New Thread 6989]
 [New Thread 6998]

 warning: Can't read pathname for load map: Input/output error.
 Error while mapping shared library sections:
 ./vcl.7H1mXKN6.so: No such file or directory.
 Reading symbols from /usr/lib/varnish/libvarnish.so...Reading symbols from
 /usr/lib/debug/usr/lib/varnish/libvarnish.so...done.
 (no debugging symbols found)...done.
 Loaded symbols for /usr/lib/varnish/libvarnish.so
 Reading symbols from /usr/lib/varnish/libvarnishcompat.so...Reading
 symbols from /usr/lib/debug/usr/lib/varnish/libvarnishcompat.so...done.
 (no debugging symbols found)...done.
 Loaded symbols for /usr/lib/varnish/libvarnishcompat.so
 Reading symbols from /usr/lib/varnish/libvcl.so...Reading symbols from
 /usr/lib/debug/usr/lib/varnish/libvcl.so...done.
 (no debugging symbols found)...done.
 Loaded symbols for /usr/lib/varnish/libvcl.so
 Reading symbols from /usr/lib/varnish/libvgz.so...Reading symbols from
 /usr/lib/debug/usr/lib/varnish/libvgz.so...done.
 (no debugging symbols found)...done.
 Loaded symbols for /usr/lib/varnish/libvgz.so
 Reading symbols from /lib/libpcre.so.3...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libpcre.so.3
 Reading symbols from /lib/libdl.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libdl.so.2
 Reading symbols from /lib/libnsl.so.1...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
 Loaded symbols for /lib/libm.so.6
 Reading symbols from /lib/libpthread.so.0...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libpthread.so.0
 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
 Loaded symbols for /lib/libc.so.6
 Reading symbols from /lib/librt.so.1...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/librt.so.1
 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib64/ld-linux-x86-64.so.2
 Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_compat.so.2
 Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_nis.so.2
 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_files.so.2
 Symbol file not found for ./vcl.7H1mXKN6.so
 Reading symbols from /usr/lib/varnish/vmods/libvmod_std.so...Reading
 symbols from /usr/lib/debug/usr/lib/varnish/vmods/libvmod_std.so...done.
 (no debugging symbols found)...done.
 Loaded symbols for /usr/lib/varnish/vmods/libvmod_std.so
 Core was generated by `/usr/sbin/varnishd -P /var/run/varnishd.pid -a :80
 -T localhost:6082 -f /etc/va'.
 Program terminated with signal 11, Segmentation fault.
 #0  VSB_cat (s=0x7f1634656040, str=0x0) at vsb.c:331
 331     vsb.c: No such file or directory.
         in vsb.c
 (gdb) bt full
 #0  VSB_cat (s=0x7f1634656040, str=0x0) at vsb.c:331
         __func__ = "VSB_cat"
 #1  0x0000000000437c63 in VRT_synth_page (sp=0x7f16415e1008, flags=<value
 optimized out>, str=0x0) at cache_vrt.c:409
         ap = {{gp_offset = 1096683768, fp_offset = 32534,
 overflow_arg_area = 0x7f16415e1008, reg_save_area = 0x2}}
         p = <value optimized out>
         vsb = <value optimized out>
         __func__ = "VRT_synth_page"
 #2  0x00007f16391f613a in ?? ()
 No symbol table info available.
 #3  0x00007f163464d0d8 in ?? ()
 No symbol table info available.
 #4  0x00007f16415e1008 in ?? ()
 No symbol table info available.
 #5  0x00007f1631ffbac0 in ?? ()
 No symbol table info available.
 #6  0x0000000000436e06 in VCL_error_method (sp=0x7f16415e1008) at
 ../../include/vcl_returns.h:66
         __func__ = "VCL_error_method"
 #7  0x0000000000417d92 in cnt_error (sp=0x7f16415e1008) at
 cache_center.c:483
         h = 0x7f163464d0d8
         date = "Mon, 22 Apr 2013 13:44:03
 GMT\000\000\000\370\274\377\061\026\177\000"
         __func__ = "cnt_error"
 #8  0x0000000000419dbd in CNT_Session (sp=0x7f16415e1008) at steps.h:46
         done = 0
         w = 0x7f1631ffbac0
         __func__ = "CNT_Session"
 #9  0x0000000000431d89 in wrk_thread_real (qp=0x7f1641514150,
 shm_workspace=<value optimized out>, sess_workspace=<value optimized out>,
 nhttp=<value optimized out>, http_space=<value optimized out>,
     siov=<value optimized out>) at cache_pool.c:186
         ww = {magic = 1670491599, nobjhead = 0x7f1634613100, nobjcore =
 0x7f1634615180, nwaitinglist = 0x7f1634614080, nbusyobj = 0x7f163461c050,
 nhashpriv = 0x7f16346140a0, stats = {client_conn = 0,
             client_req = 1, cache_hit = 0, cache_hitpass = 0, cache_miss =
 0, fetch_head = 0, fetch_length = 0, fetch_chunked = 0, fetch_eof = 0,
 fetch_bad = 0, fetch_close = 0, fetch_oldhttp = 0,
             fetch_zero = 0, fetch_failed = 0, fetch_1xx = 0, fetch_204 =
 0, fetch_304 = 0, n_object = 1, n_vampireobject = 0, n_objectcore = 0,
 n_objecthead = 0, n_waitinglist = 0, n_objoverflow = 0,
             s_sess = 0, s_req = 0, s_pipe = 0, s_pass = 0, s_fetch = 0,
 s_hdrbytes = 0, s_bodybytes = 0, sess_closed = 0, sess_pipeline = 0,
 sess_readahead = 0, sess_linger = 0, sess_herd = 0},
           lastused = 1366638243.5577664, wrw = {wfd = 0x0, werr = 0, iov =
 0x7f1631fe84c0, siov = 128, niov = 0, liov = 0, cliov = 0, ciov = 128},
 cond = {__data = {__lock = 0, __futex = 4,
               __total_seq = 2, __wakeup_seq = 2, __woken_seq = 2, __mutex
 = 0x7f164152d3a8, __nwaiters = 0, __broadcast_seq = 0},
             __size =
 "\000\000\000\000\004\000\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\250\323RA\026\177\000\000\000\000\000\000\000\000\000",
 __align = 17179869184}, list = {vtqe_next = 0x7f16327fcac0, vtqe_prev =
 0x7f1641514160}, sp = 0x7f16415e1008, vcl = 0x0, wlb = 0x7f1631ff9a60, wlp
 = 0x7f1631ff9a70, wle = 0x7f1631ffba60, wlr = 1,
           sha256ctx = 0x7f1631ffbe40, htc = {{magic = 1041886673, fd = 13,
 maxbytes = 32768, maxhdr = 8192, ws = 0x7f1631ffbcf8, rxbuf = {
                 b = 0x7f1631fe9ab8 "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD
 HTML 2.0//EN\">\n<html><head>\n<title>501 Method Not
 Implemented</title>\n</head><body>\n<h1>Method Not
 Implemented</h1>\n<p>get to /index.html not supported.<br />\n</p>\n"...,
 e = 0x7f1631fe9bd0 ""}, pipeline = {b = 0x0, e = 0x0}}}, ws = {{magic =
 905626964, overflow = 0, id = 0x460097 "wrk", s = 0x7f1631fe9a50
 "X-Varnish: 1037044295",
               f = 0x7f1631fe9ab8 "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD
 HTML 2.0//EN\">\n<html><head>\n<title>501 Method Not
 Implemented</title>\n</head><body>\n<h1>Method Not
 Implemented</h1>\n<p>get to /index.html not supported.<br />\n</p>\n"...,
 r = 0x0, e = 0x7f1631ff9a50 ""}}, bereq = 0x7f1631fe95d0, beresp =
 0x7f1631fe9150, resp = 0x7f1631fe8cd0, exp = {ttl = -1, grace = -1, keep =
 -1, age = 0,
             entered = 0}, storage_hint = 0x0, body_status = BS_NONE, vfp =
 0x0, vgz_rx = 0x0, vef_priv = 0x0, fetch_failed = 0, do_stream = 0, do_esi
 = 0, do_gzip = 0, is_gzip = 0, do_gunzip = 0,
           is_gunzip = 0, do_close = 0, h_content_length = 0x0, sctx = 0x0,
 vep = 0x0, gzip_resp = 0, l_crc = 0, crc = 0, connect_timeout = 0,
 first_byte_timeout = 0, between_bytes_timeout = 0,
           res_mode = 72, acct_tmp = {first = 0, sess = 0, req = 1, pipe =
 0, pass = 1, fetch = 0, hdrbytes = 0, bodybytes = 0}}
         sha256 = {state = {0, 0, 0, 0, 0, 0, 0, 0}, count = 0, buf =
 '\000' <repeats 63 times>}
         stats_clean = 1
         __func__ = "wrk_thread_real"
 #10 0x00007f1641c478ca in start_thread () from /lib/libpthread.so.0
 No symbol table info available.
 #11 0x00007f16419aeb6d in clone () from /lib/libc.so.6
 No symbol table info available.
 #12 0x0000000000000000 in ?? ()
 No symbol table info available.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1287#comment:7>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list