I am new to gdb. I found a below crash while running a process (written in c++) under gdb. I do not know from where I have to start understanding this backtrack to get the root cause. can any one help me with this?
(gdb) bt
#0 0x0000555555611560 in std::atomic<double>::load(std::memory_order) const ()
#1 0x000055555561130d in prometheus::Gauge::Change(double) ()
#2 0x0000555555611240 in prometheus::Gauge::Increment(double) ()
#3 0x0000555555611212 in prometheus::Gauge::Increment() ()
#4 0x00005555555f8356 in prometheus::Counter::Increment() ()
#5 0x000055555559dee6 in asnInitiatingRequest (pdu=0x7fffd800e4d0, sctpMap=0x5555557261a0, message=..., rmrMessageBuffer=..., streamId=0) at /opt/e2/RIC-E2-TERMINATION/sctpThread.cpp:2198
#6 0x000055555559eda8 in receiveDataFromSctp (events=0x7fffd8000e40, sctpMap=0x5555557261a0, numOfMessages=@0x7fffedd79fbc: 6, rmrMessageBuffer=..., ts=...) at /opt/e2/RIC-E2-TERMINATION/sctpThread.cpp:1509
#7 0x000055555559f698 in listener (params=0x7fffffff7460) at /opt/e2/RIC-E2-TERMINATION/sctpThread.cpp:972
#8 0x00007ffff7850de4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#9 0x00007ffff7964609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007ffff7558133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
(gdb) f 5
#5 0x000055555559dee6 in asnInitiatingRequest (pdu=0x7fffe015ccf0, sctpMap=0x5555557261a0, message=..., rmrMessageBuffer=..., streamId=0) at /opt/e2/RIC-E2-TERMINATION/sctpThread.cpp:2198
2198 /opt/e2/RIC-E2-TERMINATION/sctpThread.cpp: No such file or directory.
(gdb) p pdu
$1 = (E2AP_PDU_t *) 0x7fffe015ccf0
(gdb) p sctpMap
$2 = (Sctp_Map_t *) 0x5555557261a0
(gdb) p message
$3 = (ReportingMessages_t &) <error reading variable>
(gdb) p rmrMessageBuffer
$4 = (RmrMessagesBuffer_t &) @0x7fffee57b1b0: {ka_message = "{\"address\": \"127.0.0.1:38000\",\"fqdn\": \"e2t.com\",\"pod_name\": \"e2term\"}", '\000' <repeats 1978 times>, ka_message_len = 69, rmrCtx = 0x5555556fdd80,
sendMessage = 0x7fffe00014b0, rcvMessage = 0x7fffdc102a70}
(gdb) p streamId
$5 = 0
(gdb)
Aucun commentaire:
Enregistrer un commentaire