[squid-users] ftp related crash in squid-6.0.0-20220905-r9358e99f9
Alex Rousskov
rousskov at measurement-factory.com
Mon Jun 19 18:21:40 UTC 2023
On 6/19/23 11:43, Ralf Hildebrandt wrote:
> It seems I'm encountering an FTP related crash here; core.1678595 is
> available for further debugging.
Please post the (sanitized, if needed) output of the following gdb
commands interrogating that Squid core file:
set print pretty
set print static-members off
frame 3
print this
print *this
print *entry
print *entry->mem_obj
frame 10
print this
print *this
Thank you,
Alex.
> I'm running squid-6.0.0-20220905-r9358e99f9 (since that's so far the
> most stable version for me).
>
> cache.log says:
> ===============
>
> 2023/06/19 17:31:10| conn3580032407 local=141.42.5.215:8080 remote=141.42.64.96:52710 FD 39958 flags=1: read/write failure: (110) Connection timed out
> current master transaction: master1645377270
> 2023/06/19 17:31:12| conn3572687242 local=141.42.5.215:8080 remote=172.29.144.96:51701 FD 41826 flags=1: read/write failure: (110) Connection timed out
> current master transaction: master1642214323
> 2023/06/19 17:31:17| FATAL: assertion failed: FwdState.cc:299: "!storedWholeReply_"
> current master transaction: master1650383954
>
> This is the backtrace:
> ======================
>
> Reading symbols from /usr/sbin/squid...
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>
> Program received signal SIGABRT, Aborted.
> __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
> #0 __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
> set = {
> __val = {0, 115, 60684401525984, 11384875684165056000, 1,
> 140737488347504, 93825000028288, 11384875684165056000,
> 93824999874096, 140737488347504, 93825000028376, 140737488347536,
> 93824997547807, 93825140894448, 93826629547024, 140737344746339}
> }
> pid = <optimized out>
> tid = <optimized out>
> ret = <optimized out>
> #1 0x00007ffff7615859 in __GI_abort () at abort.c:79
> save_stage = 1
> act = {
> __sigaction_handler = {
> sa_handler = 0x555555a65f1f,
> sa_sigaction = 0x555555a65f1f
> },
> sa_mask = {
> __val = {93825140894448, 93826629547024, 93824996975023, 155185,
> 1687188677, 0, 93826629547008, 93825491415392,
> 11384875684165056000, 111, 93825000028288, 93825000094136,
> 93824996978668, 93825000094136, 93824996974080, 93825000094136}
> },
> sa_flags = 1990456832,
> sa_restorer = 0x555555a6617d
> }
> sigs = {
> __val = {32, 0 <repeats 15 times>}
> }
> #2 0x00005555559d9e8b in xassert (
> msg=msg at entry=0x555555a6617d "!storedWholeReply_",
> file=file at entry=0x555555a65f1f "FwdState.cc", line=line at entry=299)
> at debug.cc:1266
> __FUNCTION__ = <optimized out>
> #3 0x000055555570e9c2 in FwdState::completed (this=this at entry=0x55556c0a4748)
> at FwdState.cc:299
> __FUNCTION__ = "completed"
> #4 0x00005555557128af in FwdState::complete (this=0x55556c0a4748)
> at FwdState.cc:589
> replyStatus = Http::scNone
> __FUNCTION__ = "complete"
> #5 0x000055555587c796 in Client::completeForwarding (this=0x5555662702c8)
> at ../../src/base/RefCount.h:73
> __FUNCTION__ = "completeForwarding"
> #6 0x0000555555882619 in Ftp::Gateway::completeForwarding (
> this=0x5555662702c8) at FtpGateway.cc:2651
> __FUNCTION__ = "completeForwarding"
> #7 0x000055555587974b in Client::serverComplete2 (
> this=this at entry=0x5555662702c8) at Client.cc:214
> __FUNCTION__ = "serverComplete2"
> #8 0x000055555587c3d4 in Client::serverComplete (this=0x5555662702c8)
> at Client.cc:198
> __FUNCTION__ = "serverComplete"
> #9 0x000055555588154a in ftpReadQuit (ftpState=<optimized out>)
> at FtpGateway.cc:2288
> No locals.
> #10 0x00005555558816f6 in Ftp::Gateway::handleControlReply (
> this=0x5555662702c8) at FtpGateway.cc:1176
> No locals.
> #11 0x00005555558a15a5 in Ftp::Client::readControlReply (this=0x5555662702c8,
> io=...) at FtpClient.cc:415
> __FUNCTION__ = "readControlReply"
> len = <optimized out>
> #12 0x00005555558a7172 in CommCbMemFunT<Ftp::Client, CommIoCbParams>::doDial (
> this=0x5555ff888638) at ../../src/CommCalls.h:205
> No locals.
> #13 0x00005555558a6ee3 in JobDialer<Ftp::Client>::dial (this=0x5555ff888638,
> call=...) at ../../src/base/AsyncJobCalls.h:170
> __FUNCTION__ = "dial"
> #14 0x00005555558a7092 in AsyncCallT<CommCbMemFunT<Ftp::Client, CommIoCbParams> >::fire (this=<optimized out>) at ../../src/base/AsyncCall.h:143
> No locals.
> #15 0x00005555558d5952 in AsyncCall::make (this=0x5555ff888600)
> at AsyncCall.cc:44
> __FUNCTION__ = "make"
> #16 0x00005555558d73d0 in AsyncCallQueue::fire (this=0x555555daff70)
> at ../../src/base/RefCount.h:73
> call = {
> p_ = 0x5555ff888600
> }
> made = true
> __FUNCTION__ = "fire"
> #17 0x00005555557098cf in EventLoop::dispatchCalls (
> this=this at entry=0x7fffffffe940) at EventLoop.cc:144
> dispatchedSome = <optimized out>
> #18 0x00005555557099c2 in EventLoop::runOnce (this=this at entry=0x7fffffffe940)
> at EventLoop.cc:121
> sawActivity = <optimized out>
> waitingEngine = 0x7fffffffe860
> __FUNCTION__ = <optimized out>
> #19 0x0000555555709a2d in EventLoop::run (this=0x7fffffffe940)
> at EventLoop.cc:83
> No locals.
> #20 0x00005555557f9ad7 in SquidMain (argc=<optimized out>,
> argv=<optimized out>) at main.cc:1691
> cmdLine = {
> argv_ = std::vector of length 3, capacity 3 = {
> 0x555555cc3760 "/usr/sbin/squid", 0x555555cc3780 "-NsYC", 0x0},
> shortOptions_ = 0x555555cc3710 "CDFNRSYXa:d:f:hk:m::n:sl:u:vz?",
> longOptions_ = std::vector of length 5, capacity 8 = {{
> <option> = {
> name = 0x555555cc3860 "foreground",
> has_arg = 0,
> flag = 0x0,
> val = 2
> }, <No data fields>}, {
> <option> = {
> name = 0x555555cc3a60 "kid",
> has_arg = 1,
> flag = 0x0,
> val = 3
> }, <No data fields>}, {
> <option> = {
> name = 0x555555cc3a80 "help",
> has_arg = 0,
> flag = 0x0,
> val = 104
> }, <No data fields>}, {
> <option> = {
> name = 0x555555cc3aa0 "version",
> has_arg = 0,
> flag = 0x0,
> val = 118
> }, <No data fields>}, {
> <option> = {
> name = 0x0,
> has_arg = 0,
> flag = 0x0,
> val = 0
> }, <No data fields>}}
> }
> WIN32_init_err = 0
> __FUNCTION__ = "SquidMain"
> mainLoop = {
> errcount = 0,
> static Running = 0x7fffffffe940,
> last_loop = false,
> engines = std::vector of length 4, capacity 4 = {0x7fffffffe820,
> 0x555555c0dc80 <EventScheduler::_instance>, 0x7fffffffe840,
> 0x7fffffffe860},
> timeService = 0x7fffffffe880,
> primaryEngine = 0x7fffffffe860,
> loop_delay = 0,
> error = false,
> runOnceResult = false
> }
> signalEngine = {
> <AsyncEngine> = {
> _vptr.AsyncEngine = 0x555555b6ea38 <vtable for SignalEngine+16>
> }, <No data fields>}
> store_engine = {
> <AsyncEngine> = {
> _vptr.AsyncEngine = 0x555555b6ea10 <vtable for StoreRootEngine+16>
> }, <No data fields>}
> comm_engine = {
> <AsyncEngine> = {
> _vptr.AsyncEngine = 0x555555b7e138 <vtable for CommSelectEngine+16>
> }, <No data fields>}
> time_engine = {
> _vptr.Engine = 0x555555b8dad0 <vtable for Time::Engine+16>
> }
> #21 0x00005555557fa0fa in SquidMainSafe (argv=0x7fffffffed48, argc=2)
> at main.cc:1381
> __FUNCTION__ = <optimized out>
> _dbg_level = <optimized out>
> _dbo = <optimized out>
> #22 main (argc=2, argv=0x7fffffffed48) at main.cc:1369
> No locals.
> Saved corefile core.1678595
>
More information about the squid-users
mailing list