-
Notifications
You must be signed in to change notification settings - Fork 83
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
crash when exiting several subscribed session at the same time #201
Comments
this crash still happens, even with the fix for #199 Program received signal SIGSEGV, Segmentation fault. ... (gdb) frame 1 I'm still trying to understand the pattern for this to happen. |
Found the issue :)
if hostname or username are null you write UNKNOWN but you only have allocated for the size 1 byte for each one. this will cause the overwrite of the following entry. In my debug I notice that the crash only happens if I delete the first session and create it again and then try to delete the second session (in my target the hostname is not defined). |
Good job! Please verify that the just commited patch really fixes the issue. |
Hi,
I've a new crash when exiting several session at the same time (in this case 3).
in the backtrace I have:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4c7ff480 (LWP 2090)]
0x0f33a8a4 in nc_session_monitor_remove (litem=0x4aa330b1) at src/session.c:483
483 src/session.c: No such file or directory.
(gdb) backtrace
#0 0x0f33a8a4 in nc_session_monitor_remove (litem=0x4aa330b1) at src/session.c:483
#1 0x0f33cf7c in nc_session_free (session=0x4be91b40) at src/session.c:1365
#2 0x0fc75c64 in NetconfSession::~NetconfSession (this=0x1010ec08, __in_chrg=) at
...
(gdb) frame 1
print litem->offset_prev
$7 = 1331121664
still something is wrong with linked lists.
I'll try to debug a little bit more the issue if I find something I'll update the post.
(not sure maybe its an issue with the last session being deleted?)
The text was updated successfully, but these errors were encountered: