-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS protocol detection fails with segmentation fault #1809
Comments
I don't know how much help I can provide without a trace triggering the issue, especially since you are using your own application.
It would be useful if you could provide a pcap triggering the crash |
Without a core dump, pcap file or at least debug symbols enabled, it is like searching for the needle in a haystack. |
@rajdippatel-emc , any updates? |
Thanks Ivan. I added inline answers.
We are hoping 2nd and 3rd will be checked soon.
|
Closing for inactivity. If you have other issues, please open a new ticket |
Description
In a rare case scenario TLS protocol detection fails with segmentation fault in following location.
0 0x00007f37cadef96e in ndpi_search_tls_tcp_memory () from /lib/libndpi.so.4
[Current thread is 1 (Thread 0x7f37ad7fa700 (LWP 27))]
(gdb) bt
#0 0x00007f37cadef96e in ndpi_search_tls_tcp_memory () from /lib/libndpi.so.4
#1 0x00007f37cadf2029 in ndpi_search_tls_tcp.part () from /lib/libndpi.so.4
#2 0x00007f37cae0d914 in ndpi_process_extra_packet () from /lib/libndpi.so.4
#3 0x00005570bf841f53 in PacketProcessor::process (this=0x5570c107cc00, packet=...) at /usr/local/include/pcapplusplus/Layer.h:101
#4 0x00005570bf842525 in PacketProcessor::run (this=0x5570c107cc00, args=) at /tmp/app/PacketProcessor.cpp:114
#5 0x00005570bfad6a5a in workerProc (this=0x5570c107cc00, args=0x0) at /tmp/app/Task.cpp:107
#6 0x00005570bfad6ae2 in threadProc (owner=0x5570c107cc00, args=) at /tmp/app/Task.cpp:82
#7 0x00007f37cab05de4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x00007f37cb1a9609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9 0x00007f37ca7f0133 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Expected behavior
nDPI TLS parser should not create segmentation fault
Obtained behavior
nDPI TLS parser is failing in special scenario and it is generating segmentation fault. After that app crashes immediately.
nDPI Environment (please complete the following information):
config.log
file generated after./configure
ran (if you are building from source).How to reproduce the reported bug
Reproducible using ndpiReader?
The text was updated successfully, but these errors were encountered: