Re: [squid-users] Squid 2.5stable9-20050402 always restart (stmem.c error)

From: Henrik Nordstrom <[email protected]>
Date: Sun, 3 Apr 2005 23:25:42 +0200 (CEST)

> Does this help?

Yes, somewhat.

Please file a bug report with this info.

> Program received signal SIGABRT, Aborted.
> 0x2818225b in kill () from /lib/libc.so.5
> (gdb) backtrace
> #0 0x2818225b in kill () from /lib/libc.so.5
> #1 0x28177302 in raise () from /lib/libc.so.5
> #2 0x281e9aa7 in abort () from /lib/libc.so.5
> #3 0x08066409 in xassert (msg=0x80cb278 "current_offset == target_offset",
> file=0x80cb241 "stmem.c", line=93) at debug.c:270
> #4 0x08094454 in stmemFreeDataUpto (mem=0x856a588, target_offset=0)
> at stmem.c:93
> #5 0x0809aad8 in storeSwapOutMaintainMemObject (e=0x857ca40)
> at store_swapout.c:155
> #6 0x0809ad33 in storeSwapOut (e=0x857ca40) at store_swapout.c:211
> #7 0x080980c0 in storeUnregister (sc=0x856a690, e=0x857ca40, data=0x8572010)
> at store_client.c:516
> #8 0x0805d45a in httpRequestFree (data=0x8572010) at client_side.c:890
> #9 0x0805d619 in connStateFree (fd=14, data=0x8570010) at client_side.c:931
> #10 0x0806410f in commCallCloseHandlers (fd=14) at comm.c:573
> #11 0x080642b7 in comm_close (fd=14) at comm.c:655
> #12 0x0805ff04 in clientWriteComplete (fd=14, bufnotused=0x0, size=0,
> errflag=0, data=0x8572010) at client_side.c:2232
> #13 0x0805f6da in clientSendMoreData (data=0x8572010, buf=0x8573000 "", size=0)
> at client_side.c:1978
> #14 0x08097438 in storeClientCallback (sc=0x856a690, sz=0)
> at store_client.c:160
> #15 0x0809773b in storeClientCopy3 (e=0x857ca40, sc=0x856a690)
> at store_client.c:268
> #16 0x080976fb in storeClientCopy2 (e=0x857ca40, sc=0x856a690)
> at store_client.c:255
> #17 0x080982de in InvokeHandlers (e=0x857ca40) at store_client.c:591
> #18 0x080959f9 in storeComplete (e=0x857ca40) at store.c:732
> #19 0x0806d333 in fwdComplete (fwdState=0x8582650) at forward.c:786
> #20 0x08078d56 in httpReadReply (fd=18, data=0x856a810) at http.c:663
> #21 0x08065779 in comm_poll (msec=64) at comm_select.c:445
> #22 0x08085d3d in main (argc=2, argv=0xbfbfec3c) at main.c:739
> (gdb) quit
> The program is running. Exit anyway? (y or n) y
>
> Script done on Sun Apr 3 13:59:14 2005
>
>> It's also interesting to know the values of current_offset and
>> target_offset.
>
> I'd be happy to provide them, but my gdb skills are somewhat limited :(

Go to the frame which says stmemFreeDataUpto (the frame just below
xassert)

   gdb> frame 5

then print the requested variables

   gdb> print current_offset
   gdb> print target_offset

Regards
Henrik
Received on Sun Apr 03 2005 - 15:25:45 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:03 MDT