Segmentation Fault on TcpReassembly::closeAllConnections

10 views
Skip to first unread message

Ali Ghasemi

unread,
Nov 4, 2021, 4:00:54 AM11/4/21
to PcapPlusPlus support
Hello
I have been using this amazing library for almost 2 years, and everything were so great! (Thank you for that). But, recently I had an strange issue.
My program, which listen to an interface and filter some TCP streams and save them (very similar to tcpReassembly example), after working for several days, stops working due to an segmentation fault caused in TcpReassembly::closeAllConnections.
The problem persist for hours and then program will work for days again.
seg error is:

signal 11(Segmentation fault), address is 0 from 0x7f5a26735e10
[bt]: (1) /lib/x86_64-linux-gnu/libc.so.6(+0xbee10) [0x7f5a26735e10]
[bt]: (2) /lib/x86_64-linux-gnu/libc.so.6(+0xbee10) [0x7f5a26735e10]
[bt]: (3) /lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_+0x95) [0x7f5a26b16285]
[bt]: (4) /src/traffic/trafficNG(+0x224e3b) [0x55d81a7aee3b]
[bt]: (5) /src/traffic/trafficNG(_ZN6boshra9assembler3tcp13TcpReassembly19closeAllConnectionsEv+0x1c7) [0x55d81a7a9b67]

unfortunately, I dont have any more details. I do not have direct access to production server, and the problem never shows on dev server.
Also if t matters, build flags are:
g++ -std=c++17 -Wall -O2 -rdynamic

can anyone suggest for any solution or some methods to gather more information ?

Thanks!
Reply all
Reply to author
Forward
0 new messages