Skip to content

Instantly share code, notes, and snippets.

@lorenzhs
Created August 12, 2016 09:28
Show Gist options
  • Save lorenzhs/da710afe4023051c519527737930ca99 to your computer and use it in GitHub Desktop.
Save lorenzhs/da710afe4023051c519527737930ca99 to your computer and use it in GitHub Desktop.
ICC double free or corruption
Reading symbols from /opt/intel/compilers_and_libraries_2016.3.210/linux/bin/intel64/icc...(no debugging symbols found)...done.
[New LWP 31279]
[New LWP 31303]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `icc -std=c++14 -Wall -Wextra -Werror -g -IDistributedSampling/lib -IDistributed`.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f5f5a2f31c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f5f5b7aa740 (LWP 31279))]
(gdb) thread apply all bt full
Thread 2 (Thread 0x7f5f57c20700 (LWP 31303)):
#0 0x00007f5f5a3389a8 in __GI___libc_free (mem=0x15cad40) at malloc.c:2947
ar_ptr = <optimized out>
p = <optimized out>
hook = <optimized out>
#1 0x00000000004e1ce9 in ()
#2 0x00007f5f5a2f5b78 in __run_exit_handlers (status=15, listp=0x7f5f5a65b5f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
atfct = <optimized out>
onfct = <optimized out>
cxafct = <optimized out>
#3 0x00007f5f5a2f5bc5 in __GI_exit (status=<optimized out>) at exit.c:104
#4 0x000000000041667e in ()
#5 0x00000000005208e3 in ()
#6 0x00007f5f5a2f3250 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#7 0x00007f5f5af0a448 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#8 0x00000000004c5241 in ()
#9 0x00007f5f5af04464 in start_thread (arg=0x7f5f57c20700) at pthread_create.c:333
__res = <optimized out>
pd = 0x7f5f57c20700
now = <optimized out>
unwind_buf =
{cancel_jmp_buf = {{jmp_buf = {140047470954240, 9048936674307696849, 0, 140734578714591, 3, 1234, -8995121713333311279, -8995111126005487407}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#10 0x00007f5f5a3a730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 1 (Thread 0x7f5f5b7aa740 (LWP 31279)):
#0 0x00007f5f5a2f31c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
resultvar = 0
pid = 31279
selftid = 31279
#1 0x00007f5f5a2f464a in __GI_abort () at abort.c:89
save_stage = 2
act =
{__sigaction_handler = {sa_handler = 0x62696c2f20202020, sa_sigaction = 0x62696c2f20202020}, sa_mask = {__val = {3257288213055174703, 7955377262162766188, 8315178054010548085, 3689061837815835759, 7364905152218624814, 3472328322904045621, 4123104171956516653, 8606977229197424486, 3760840147355070509, 3547209435857301552, 3688502203673354289, 2314885530818453561, 2314885530818453536, 7596498486491619360, 3762299225194901346, 7434731005617466413}}, sa_flags = 1815049582, sa_restorer = 0x4e}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007f5f5a32ef4a in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f5f5a427b30 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
Python Exception <class 'gdb.error'> Attempt to dereference a generic pointer.:
#3 0x00007f5f5a3346b6 in malloc_printerr (action=3, str=0x7f5f5a427ba8 "double free or corruption (!prev)", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5004
buf = "00000000017f2cf0"
cp = <optimized out>
ar_ptr = <optimized out>
ptr = <optimized out>
str = 0x7f5f5a427ba8 "double free or corruption (!prev)"
action = 3
#4 0x00007f5f5a334e9e in _int_free (av=0x7f5f5a65bb20 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3865
size = <optimized out>
fb = <optimized out>
nextchunk = <optimized out>
nextsize = <optimized out>
nextinuse = <optimized out>
prevsize = <optimized out>
bck = <optimized out>
fwd = <optimized out>
errstr = <optimized out>
locked = <optimized out>
__func__ = "_int_free"
#5 0x00000000004ea4fb in ()
#6 0x00007f5f5a2f5b78 in __run_exit_handlers (status=15, listp=0x7f5f5a65b5f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
atfct = <optimized out>
onfct = <optimized out>
cxafct = <optimized out>
#7 0x00007f5f5a2f5bc5 in __GI_exit (status=<optimized out>) at exit.c:104
#8 0x000000000041667e in ()
#9 0x00000000005208e3 in ()
#10 0x00007f5f5a2f3250 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007f5f5af0db29 in __waitpid (pid=31337, stat_loc=0x7fff5291e4a0, options=0)
at ../sysdeps/unix/sysv/linux/waitpid.c:29
__arg2 = 140734578680992
_a3 = 0
_a1 = 31337
resultvar = <optimized out>
__arg3 = 0
__arg1 = 31337
_a4 = 0
_a2 = 140734578680992
resultvar = <optimized out>
sc_cancel_oldtype = 2
#12 0x000000000044d398 in ()
#13 0x00000000005208fd in ()
#14 0x00007f5f5a2f3250 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#15 0x00007f5f5af0db29 in __waitpid (pid=31337, stat_loc=0x7fff5291ea80, options=0)
---Type <return> to continue, or q <return> to quit---
at ../sysdeps/unix/sysv/linux/waitpid.c:29
__arg2 = 140734578682496
_a3 = 0
_a1 = 31337
resultvar = <optimized out>
__arg3 = 0
__arg1 = 31337
_a4 = 0
_a2 = 140734578682496
resultvar = <optimized out>
sc_cancel_oldtype = 0
#16 0x000000000041626a in ()
#17 0x000000000042bac6 in ()
#18 0x000000000041d252 in ()
#19 0x0000000000448737 in ()
#20 0x0000000000446b2b in ()
#21 0x0000000000410194 in ()
#22 0x0000000000405e80 in ()
#23 0x00007f5f5a2e0730 in __libc_start_main (main=
0x4053e0, argc=22, argv=0x7fff5292c068, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5292c058) at ../csu/libc-start.c:291
result = <optimized out>
unwind_buf =
{cancel_jmp_buf = {{jmp_buf = {0, 9048935992427112657, 4215552, 140734578737248, 0, 0, -9049171104370956079, -8995109392927069999}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x509e50, 0x7f5f5b5c57f0 <_dl_fini>}, data = {prev = 0x0, cleanup = 0x0, canceltype = 5283408}}}
not_first_call = <optimized out>
#24 0x0000000000405329 in ()
#25 0x00007fff5292c058 in ()
#26 0x000000000000001c in ()
#27 0x0000000000000016 in ()
#28 0x00007fff5292d6f3 in ()
#29 0x00007fff5292d6f7 in ()
#30 0x00007fff5292d702 in ()
#31 0x00007fff5292d708 in ()
#32 0x00007fff5292d710 in ()
#33 0x00007fff5292d718 in ()
#34 0x00007fff5292d71b in ()
#35 0x00007fff5292d735 in ()
#36 0x00007fff5292d755 in ()
#37 0x00007fff5292d778 in ()
#38 0x00007fff5292d79b in ()
#39 0x00007fff5292d7a6 in ()
#40 0x00007fff5292d7b3 in ()
#41 0x00007fff5292d7cd in ()
#42 0x00007fff5292d7d4 in ()
#43 0x00007fff5292d7dd in ()
#44 0x00007fff5292d7eb in ()
#45 0x00007fff5292d7f0 in ()
#46 0x00007fff5292d7f3 in ()
#47 0x00007fff5292d7fb in ()
#48 0x00007fff5292d804 in ()
#49 0x00007fff5292d80e in ()
#50 0x0000000000000000 in ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment