View Issue Details

IDProjectCategoryView StatusLast Update
0000456AlmaLinux-8squidpublic2024-03-01 10:24
Reporterhuckley Assigned To 
PrioritynormalSeveritymajorReproducibilityrandom
Status newResolutionopen 
Summary0000456: squid 4.15.7.module_el8.9.0+3708+6acaac63.5 coredumps some time after mirgrate from centos stream 8
Descriptionhello,

i try to migrate or cent os stream 8 to alma linux 8.
I used https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh.
Now the squid randomly coredumps.

how to debug this?
Additional Information                Stack trace of thread 2609:
                #0 0x00007f0410892acf raise (libc.so.6)
                #1 0x00007f0410865ea5 abort (libc.so.6)
                0000002 0x000055e143157a27 xassert.cold.41 (squid)
                0000003 0x000055e1432beae0 _ZL21peerDigestHandleReplyPv13StoreIOBuffer (squid)
                0000004 0x000055e1432fb310 _ZN12store_client14finishCallbackEv (squid)
                0000005 0x000055e1433e7cc1 _ZN9AsyncCall4makeEv (squid)
                0000006 0x000055e1433e9268 _ZN14AsyncCallQueue8fireNextEv (squid)
                0000007 0x000055e1433e95bd _ZN14AsyncCallQueue4fireEv (squid)
                0000008 0x000055e143238bda _ZN9EventLoop7runOnceEv (squid)
                0000009 0x000055e143238cc8 _ZN9EventLoop3runEv (squid)
                0000010 0x000055e1432a2b40 _Z9SquidMainiPPc (squid)
                0000011 0x000055e143180645 main (squid)
                0000012 0x00007f041087ed85 __libc_start_main (libc.so.6)
                #13 0x000055e14318c52e _start (squid)
TagsNo tags attached.
abrt_hash
URL

Activities

huckley

2024-02-23 09:47

reporter   ~0001013

I try to debug this with gdb, but gdb is missing debug symbols for glibc:
# yum debuginfo-install glibc
Could not find debuginfo package for the following installed packages: glibc-2.28-236.el8_9.12.x86_64
Could not find debugsource package for the following installed packages: glibc-2.28-236.el8_9.12.x86_64

huckley

2024-02-23 09:49

reporter   ~0001014

the backtrace without debug symbols from glibc is:
#0 0x00007f0410892acf in raise () from /lib64/libc.so.6
#1 0x00007f0410865ea5 in abort () from /lib64/libc.so.6
0000002 0x000055e143157a27 in xassert (msg=msg@entry=0x55e1435edb50 "fetch->pd && receivedData.data",
    file=file@entry=0x55e1435ed257 "peer_digest.cc", line=line@entry=418) at debug.cc:618
0000003 0x000055e1432beae0 in peerDigestHandleReply (data=0x55e1497c6f18, receivedData=...) at peer_digest.cc:473
0000004 0x000055e1432fb310 in store_client::finishCallback (this=0x55e14a2d6518) at store_client.cc:138
0000005 0x000055e1433e7cc1 in AsyncCall::make (this=this@entry=0x55e1489629a0) at AsyncCall.cc:40
0000006 0x000055e1433e9268 in AsyncCallQueue::fireNext (this=<optimized out>) at AsyncCallQueue.cc:56
0000007 0x000055e1433e95bd in AsyncCallQueue::fire (this=0x55e147b7c6e0) at AsyncCallQueue.cc:42
0000008 0x000055e143238bda in EventLoop::dispatchCalls (this=0x7ffc4e998300) at EventLoop.cc:144
0000009 EventLoop::runOnce (this=this@entry=0x7ffc4e998300) at EventLoop.cc:121
0000010 0x000055e143238cc8 in EventLoop::run (this=this@entry=0x7ffc4e998300) at EventLoop.cc:83
0000011 0x000055e1432a2b40 in SquidMain (argc=<optimized out>, argv=<optimized out>) at main.cc:1709
0000012 0x000055e143180645 in SquidMainSafe (argv=0x7ffc4e998758, argc=6) at main.cc:1417
#13 main (argc=6, argv=0x7ffc4e998758) at main.cc:1405

huckley

2024-02-23 11:14

reporter   ~0001015

(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 7233379953697167872, 140735667119320, 7233379953697167872, 140735667119296, 140735667119272, 94697681392768, 140735667119296, 94697603046816, 140735667119272, 94697681392768,
            94697596123791, 140735667119376, 0, 94697681392536, 94697681392536}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1 0x00007f29eb069ea5 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x562083b8ae10, sa_sigaction = 0x562083b8ae10}, sa_mask = {__val = {140735667119680, 94697648860672, 94697599771223, 418, 0, 94697596434368,
              94697595705074, 94697648860800, 139818024317434, 94697625377360, 70, 70, 7233379953697167872, 94697615828072, 7233379953697167872, 94697599773520}}, sa_flags = -2085048816,
          sa_restorer = 0x562080cbab50}
        sigs = {__val = {32, 0 <repeats 15 times>}}
0000002 0x0000562080824a27 in xassert (msg=msg@entry=0x562080cbab50 "fetch->pd && receivedData.data", file=file@entry=0x562080cba257 "peer_digest.cc", line=line@entry=418) at debug.cc:618
        __FUNCTION__ = <optimized out>
0000003 0x000056208098bae0 in peerDigestHandleReply (data=0x562081c0a468, receivedData=...) at peer_digest.cc:473
        fetch = 0x562081c0a468
        retsize = -1
        prevstate = <optimized out>
        newsize = <optimized out>
        tmpLock = <optimized out>
0000004 0x00005620809c8310 in store_client::finishCallback (this=0x562085a8b6b8) at store_client.cc:138
        __FUNCTION__ = "finishCallback"
        result = {flags = {error = <optimized out>}, length = 0, offset = <optimized out>, data = <optimized out>}
        temphandler = 0x56208098b7c0 <peerDigestHandleReply(void*, StoreIOBuffer)>
        cbdata = 0x562081c0a468
0000005 0x0000562080ab4cc1 in AsyncCall::make (this=this@entry=0x562083f1f7f0) at AsyncCall.cc:40
        __FUNCTION__ = "make"
0000006 0x0000562080ab6268 in AsyncCallQueue::fireNext (this=<optimized out>) at AsyncCallQueue.cc:56
        call = {p_ = 0x562083f1f7f0}
        __FUNCTION__ = "fireNext"
0000007 0x0000562080ab65bd in AsyncCallQueue::fire (this=0x562083b9b8d0) at AsyncCallQueue.cc:42
        made = true
0000008 0x0000562080905bda in EventLoop::dispatchCalls (this=0x7fff93722ba0) at EventLoop.cc:144
        dispatchedSome = <optimized out>
        dispatchedSome = <optimized out>
0000009 EventLoop::runOnce (this=this@entry=0x7fff93722ba0) at EventLoop.cc:121
        sawActivity = <optimized out>
        waitingEngine = 0x7fff937229c8
        __FUNCTION__ = <optimized out>
0000010 0x0000562080905cc8 in EventLoop::run (this=this@entry=0x7fff93722ba0) at EventLoop.cc:83
No locals.
0000011 0x000056208096fb40 in SquidMain (argc=<optimized out>, argv=<optimized out>) at main.cc:1709
        cmdLine = {argv_ = std::vector of length 7, capacity 7 = {0x5620812038b0 "(squid-1)", 0x5620812038d0 "--kid", 0x5620812038f0 "squid-1", 0x562081203910 "--foreground", 0x562081203930 "-f",
            0x562081203950 "/etc/squid/squid-zscaler.conf", 0x0}, shortOptions_ = 0x562081203840 "CDFNRSYXa:d:f:hk:m::n:sl:u:vz?", longOptions_ = std::vector of length 5, capacity 8 = {{<option> = {
                name = 0x562081203a40 "foreground", has_arg = 0, flag = 0x0, val = 2}, <No data fields>}, {<option> = {name = 0x562081203c40 "kid", has_arg = 1, flag = 0x0, val = 3}, <No data fields>},
            {<option> = {name = 0x562081203c60 "help", has_arg = 0, flag = 0x0, val = 104}, <No data fields>}, {<option> = {name = 0x562081203c80 "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 = 0x7fff93722ba0, last_loop = false, engines = std::vector of length 4, capacity 4 = {0x7fff937229b8, 0x562081003880 <EventScheduler::_instance>,
            0x7fff937229c0, 0x7fff937229c8}, timeService = 0x7fff937229d0, primaryEngine = 0x7fff937229c8, loop_delay = 0, error = false, runOnceResult = false}
        signalEngine = {<AsyncEngine> = {_vptr.AsyncEngine = 0x562080fd4fd0 <vtable for SignalEngine+16>}, <No data fields>}
        store_engine = {<AsyncEngine> = {_vptr.AsyncEngine = 0x562080fd4fa8 <vtable for StoreRootEngine+16>}, <No data fields>}
        comm_engine = {<AsyncEngine> = {_vptr.AsyncEngine = 0x562080fe4ec0 <vtable for CommSelectEngine+16>}, <No data fields>}
        time_engine = {_vptr.TimeEngine = 0x562080fd5d58 <vtable for TimeEngine+16>}
0000012 0x000056208084d645 in SquidMainSafe (argv=0x7fff93722ff8, argc=6) at main.cc:1417
        __FUNCTION__ = <optimized out>
        _dbg_level = <optimized out>
        _dbo = <optimized out>
#13 main (argc=6, argv=0x7fff93722ff8) at main.cc:1405
No locals.

eabdullin

2024-03-01 10:24

developer   ~0001019

Hello!
glibc debug packages are in baseos
https://repo.almalinux.org/vault/8.9/BaseOS/debug/x86_64/Packages/glibc-debuginfo-2.28-236.el8_9.12.x86_64.rpm
https://repo.almalinux.org/vault/8.9/BaseOS/debug/x86_64/Packages/glibc-debugsource-2.28-236.el8_9.12.x86_64.rpm
If yum still doesn't see these packages, please try to follow these steps:
dnf config-manager --enable baseos-debuginfo
dnf install glibc-debuginfo glibc-debugsource

I also tried to reproduce it, but unsuccessfully, squid works fine without any errors

Issue History

Date Modified Username Field Change
2024-02-22 15:47 huckley New Issue
2024-02-23 09:47 huckley Note Added: 0001013
2024-02-23 09:49 huckley Note Added: 0001014
2024-02-23 11:14 huckley Note Added: 0001015
2024-03-01 10:24 eabdullin Note Added: 0001019