Skip to content
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

Corsarotrace invalid pointer on shut down #26

Open
alistairking opened this issue Jun 21, 2019 · 0 comments
Open

Corsarotrace invalid pointer on shut down #26

alistairking opened this issue Jun 21, 2019 · 0 comments

Comments

@alistairking
Copy link
Member

After asking corsarotrace to shut down:

Jun 21 10:33:24 stardust-taggerts corsaro-trace[25764]: free(): invalid size
Jun 21 10:33:24 stardust-taggerts corsaro-trace[25764]: free(): invalid size
Jun 21 10:33:24 stardust-taggerts corsaro-trace[25764]: free(): invalid pointer
Jun 21 10:33:24 stardust-taggerts corsaro-trace[25764]: free(): invalid size
Jun 21 10:33:24 stardust-taggerts systemd[1]: Stopping STARDUST Corsaro Trace Analyzer...
Jun 21 10:33:24 stardust-taggerts systemd[1]: [email protected]: Main process exited, code=killed, status=6/ABRT
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fe69be2d801 in __GI_abort () at abort.c:79
#2  0x00007fe69be76897 in __libc_message (action=action@entry=do_abort,
    fmt=fmt@entry=0x7fe69bfa3b9a "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007fe69be7d90a in malloc_printerr (
    str=str@entry=0x7fe69bfa1d88 "free(): invalid pointer") at malloc.c:5350
#4  0x00007fe69be84e1c in _int_free (have_lock=0, p=0x7fe654ed8d30,
    av=0x7fe69c1d8c40 <main_arena>) at malloc.c:4157
#5  __GI___libc_free (mem=0x7fe654ed8d40) at malloc.c:3124
#6  0x00007fe69cb2f88e in corsaro_report_halt_processing (p=0x5635993e7180,
    local=0x7fe66c014130) at corsaro_report.c:1432
#7  0x00007fe69cb11380 in corsaro_stop_plugins (pset=0x7fe66c0140e0)
    at libcorsaro_plugin.c:304
#8  0x0000563599105e2a in start_worker (tdata=0x5635994780c0) at corsarotrace.c:488
#9  0x00007fe69c1e56db in start_thread (arg=0x7fe68b7fe700) at pthread_create.c:463
#10 0x00007fe69bf0e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
salcock added a commit that referenced this issue Jun 28, 2019
Similarly, make sure we set the update array to be NULL after we
free it. This may help with issue #26, but I can't be sure since
I can't seem to replicate it on my VM so far.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant