[squid-users] Assertion failed (mempool.cc)

Gabor Berczi squid at gabucino.hu
Sat Jul 18 15:43:38 UTC 2020


Greets.

I've fucked up something and now newly compiled squid executables  
don't start. The previous one does. Where do I start looking?

Assertion failed: (aLabel != NULL && aSize), function  
MemImplementingAllocator, file MemPool.cc, line 394.

Program received signal SIGABRT, Aborted.
[Switching to Thread 8024041c0 (LWP 100089/initial thread)]
0x00000008020d022c in kill () from /lib/libc.so.7
(gdb) bt
#0  0x00000008020d022c in kill () from /lib/libc.so.7
#1  0x00000008020cf02b in abort () from /lib/libc.so.7
#2  0x00000008020b8355 in __assert () from /lib/libc.so.7
#3  0x00000000008188e8 in MemImplementingAllocator (this=0x80240e7c0,
     aLabel=0x845614 "Short Strings", aSize=0) at MemPool.cc:394
#4  0x000000000081a220 in MemPoolMalloc (this=0x80240e7c0,
     aLabel=<value optimized out>, aSize=<value optimized out>)
     at MemPoolMalloc.cc:96
#5  0x0000000000817d3f in MemPools::create (this=<value optimized out>,
     label=0x845614 "Short Strings", obj_size=0) at MemPool.cc:111
#6  0x00000000005d2089 in Mem::Init () at mem.cc:454
#7  0x00000000005cefce in SquidMain (argc=1, argv=0x7fffffffe7c8) at  
main.cc:1391
#8  0x00000000005cfcc3 in main (argc=<value optimized out>,
     argv=<value optimized out>) at main.cc:1265

Or with -v:

(gdb) r -v
Starting program: /tmp/squid-3.5.28/src/squid -v
[New LWP 100093]
[New Thread 8024041c0 (LWP 100093/initial thread)]
Squid Cache: Version 3.5.28

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8024041c0 (LWP 100093/initial thread)]
0x00000000005fe2ee in SBuf::rawContent (this=0xbf7220) at SBuf.cc:545
545         ++stats.rawAccess;
(gdb) bt
#0  0x00000000005fe2ee in SBuf::rawContent (this=0xbf7220) at SBuf.cc: 
545
#1  0x00000000005cdd9e in mainParseOptions (argc=2, argv=0x7fffffffe7b8)
     at main.cc:563
#2  0x00000000005cef9f in SquidMain (argc=2, argv=0x7fffffffe7b8) at  
main.cc:1356
#3  0x00000000005cfcc3 in main (argc=<value optimized out>,
     argv=<value optimized out>) at main.cc:1265




More information about the squid-users mailing list