[squid-users] Re: Segfault in CommSelectEngine::checkEvents

From: Cassiano Martin <cassiano_at_polaco.pro.br>
Date: Tue, 22 Apr 2014 16:43:36 -0300

Squid on x86 also crashed with the same error, on the same place. I'm
really out of idea what to do.

*** stack smashing detected ***: /usr/sbin/squid terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x45)[0xb7b5adf5]
/lib/libc.so.6(+0x10edaa)[0xb7b5adaa]
/usr/sbin/squid[0x82d3cd4]
/usr/sbin/squid(_ZN4Comm8DoSelectEi+0x76a)[0x8299702]
/usr/sbin/squid(_ZN16CommSelectEngine11checkEventsEi+0x45)[0x8255a49]
/usr/sbin/squid(_ZN9EventLoop11checkEngineEP11AsyncEngineb+0x30)[0x815afc4]
/usr/sbin/squid(_ZN9EventLoop7runOnceEv+0xc8)[0x815b330]
/usr/sbin/squid(_ZN9EventLoop3runEv+0x28)[0x815b468]
/usr/sbin/squid(_Z9SquidMainiPPc+0x17e8)[0x81b2e41]
/usr/sbin/squid(main+0x2b)[0x80f0f34]
/lib/libc.so.6(__libc_start_main+0xef)[0xb7a658af]
/usr/sbin/squid[0x80f53ed]
======= Memory map: ========
08048000-08388000 r-xp 00000000 00:01 3484 /usr/sbin/squid
08388000-08390000 rw-p 00340000 00:01 3484 /usr/sbin/squid
08390000-09616000 rw-p 00000000 00:00 0 [heap]
b6c56000-b79db000 rw-p 00000000 00:00 0
b79db000-b79ed000 r-xp 00000000 00:01 2629 /usr/lib/libz.so.1.2.8
b79ed000-b79ee000 rw-p 00011000 00:01 2629 /usr/lib/libz.so.1.2.8
b79ee000-b79fa000 r-xp 00000000 00:01 1576 /lib/libnss_files-2.17.so
b79fa000-b79fb000 r--p 0000b000 00:01 1576 /lib/libnss_files-2.17.so
b79fb000-b79fc000 rw-p 0000c000 00:01 1576 /lib/libnss_files-2.17.so
b79fc000-b7a3f000 rw-p 00000000 00:00 0
b7a3f000-b7a43000 r-xp 00000000 00:01 2731 /usr/lib/libmnl.so.0.1.0
b7a43000-b7a44000 rw-p 00004000 00:01 2731 /usr/lib/libmnl.so.0.1.0
b7a44000-b7a45000 rw-p 00000000 00:00 0
b7a45000-b7a4b000 r-xp 00000000 00:01 2989 /usr/lib/libnfnetlink.so.0.2.0
b7a4b000-b7a4c000 rw-p 00005000 00:01 2989 /usr/lib/libnfnetlink.so.0.2.0
b7a4c000-b7c03000 r-xp 00000000 00:01 126 /lib/libc-2.17.so
b7c03000-b7c05000 r--p 001b7000 00:01 126 /lib/libc-2.17.so
b7c05000-b7c06000 rw-p 001b9000 00:01 126 /lib/libc-2.17.so
b7c06000-b7c09000 rw-p 00000000 00:00 0
b7c09000-b7c1e000 r-xp 00000000 00:01 1286 /lib/libgcc_s.so.1
b7c1e000-b7c1f000 rw-p 00014000 00:01 1286 /lib/libgcc_s.so.1
b7c1f000-b7c61000 r-xp 00000000 00:01 1287 /lib/libm-2.17.so
b7c61000-b7c62000 r--p 00041000 00:01 1287 /lib/libm-2.17.so
b7c62000-b7c63000 rw-p 00042000 00:01 1287 /lib/libm-2.17.so
b7c63000-b7c66000 r-xp 00000000 00:01 1707 /lib/libdl-2.17.so
b7c66000-b7c67000 r--p 00002000 00:01 1707 /lib/libdl-2.17.so
b7c67000-b7c68000 rw-p 00003000 00:01 1707 /lib/libdl-2.17.so
b7c68000-b7c69000 rw-p 00000000 00:00 0
b7c69000-b7c70000 r-xp 00000000 00:01 107 /lib/librt-2.17.so
b7c70000-b7c71000 r--p 00006000 00:01 107 /lib/librt-2.17.so
b7c71000-b7c72000 rw-p 00007000 00:01 107 /lib/librt-2.17.so
b7c72000-b7c8e000 r-xp 00000000 00:01 2941
/usr/lib/libnetfilter_conntrack.so.3.5.0
b7c8e000-b7c8f000 rw-p 0001c000 00:01 2941
/usr/lib/libnetfilter_conntrack.so.3.5.0
b7c8f000-b7c92000 r-xp 00000000 00:01 2883 /usr/lib/libcap.so.2.22
b7c92000-b7c93000 rw-p 00003000 00:01 2883 /usr/lib/libcap.so.2.22
b7c93000-b7ca7000 r-xp 00000000 00:01 1575 /lib/libresolv-2.17.so
b7ca7000-b7ca8000 r--p 00013000 00:01 1575 /lib/libresolv-2.17.so
b7ca8000-b7ca9000 rw-p 00014000 00:01 1575 /lib/libresolv-2.17.so
b7ca9000-b7cab000 rw-p 00000000 00:00 0
b7cab000-b7cc1000 r-xp 00000000 00:01 132 /lib/libnsl-2.17.so
b7cc1000-b7cc2000 r--p 00015000 00:01 132 /lib/libnsl-2.17.so
b7cc2000-b7cc3000 rw-p 00016000 00:01 132 /lib/libnsl-2.17.so
b7cc3000-b7cc5000 rw-p 00000000 00:00 0
b7cc5000-b7d78000 r-xp 00000000 00:01 2745 /usr/lib/libstdc++.so.6.0.18
b7d78000-b7d7c000 r--p 000b3000 00:01 2745 /usr/lib/libstdc++.so.6.0.18
b7d7c000-b7d7e000 rw-p 000b7000 00:01 2745 /usr/lib/libstdc++.so.6.0.18
b7d7e000-b7d85000 rw-p 00000000 00:00 0
b7d85000-b7f17000 r-xp 00000000 00:01 3278 /usr/lib/libcrypto.so.1.0.0
b7f17000-b7f2b000 rw-p 00192000 00:01 3278 /usr/lib/libcrypto.so.1.0.0
b7f2b000-b7f2e000 rw-p 00000000 00:00 0
b7f2e000-b7f81000 r-xp 00000000 00:01 3003 /usr/lib/libssl.so.1.0.0
b7f81000-b7f86000 rw-p 00053000 00:01 3003 /usr/lib/libssl.so.1.0.0
b7f86000-b7f90000 r-xp 00000000 00:01 111 /lib/libcrypt-2.17.so
b7f90000-b7f91000 r--p 00009000 00:01 111 /lib/libcrypt-2.17.so
b7f91000-b7f92000 rw-p 0000a000 00:01 111 /lib/libcrypt-2.17.so
b7f92000-b7fb9000 rw-p 00000000 00:00 0
b7fb9000-b7fd1000 r-xp 00000000 00:01 110 /lib/libpthread-2.17.so
b7fd1000-b7fd2000 r--p 00017000 00:01 110 /lib/libpthread-2.17.so
b7fd2000-b7fd3000 rw-p 00018000 00:01 110 /lib/libpthread-2.17.so
b7fd3000-b7fd5000 rw-p 00000000 00:00 0
b7fd8000-b7fdb000 rw-p 00000000 00:00 0
b7fdb000-b7fdc000 r-xp 00000000 00:00 0 [vdso]
b7fdc000-b7ffe000 r-xp 00000000 00:01 114 /lib/ld-2.17.so
b7ffe000-b7fff000 r--p 00021000 00:01 114 /lib/ld-2.17.so
b7fff000-b8000000 rw-p 00022000 00:01 114 /lib/ld-2.17.so
bffdf000-c0000000 rw-p 00000000 00:00 0 [stack]

Program received signal SIGABRT, Aborted.
0xb7fdb424 in __kernel_vsyscall ()
(gdb)

Sorry about symbols, the binary is stripped.

2014-03-20 12:02 GMT-03:00 Cassiano Martin <cassiano_at_polaco.pro.br>:
> Guys, I'm facing a very strange issue. I have compiled squid, from version
> 3.3.3 to 3.4.4 and ALL of them crashes on the same place. The architecture
> is mips64.
>
> I've attached a backtrace
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x104771ec in CommSelectEngine::checkEvents (this=0x7fff6910, timeout=24) at
> comm.cc:2058
> 2058 comm.cc: No such file or directory.
> (gdb)
> (gdb)
> (gdb)
> (gdb)
> (gdb) bt
> #0 0x104771ec in CommSelectEngine::checkEvents (this=0x7fff6910,
> timeout=24) at comm.cc:2058
> #1 0x10229a90 in EventLoop::checkEngine (this=0x7fff6920,
> engine=0x7fff6910, primary=true) at EventLoop.cc:55
> #2 0x1022a004 in EventLoop::runOnce (this=0x7fff6920) at EventLoop.cc:129
> #3 0x10229d9c in EventLoop::run (this=0x7fff6920) at EventLoop.cc:99
> #4 0x102fa25c in SquidMain (argc=2, argv=0x7fff6af4) at main.cc:1534
> #5 0x102f91c0 in SquidMainSafe (argc=2, argv=0x7fff6af4) at main.cc:1262
> #6 0x102f9170 in main (argc=2, argv=0x7fff6af4) at main.cc:1254
>
>
> It happens when I open some connections, and close the web browser. I have
> no Idea what I can do to solve this.
>
> Squid is in transparent mode.
>
>
> Thanks
Received on Tue Apr 22 2014 - 19:43:43 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 23 2014 - 12:00:05 MDT