Summary: | sys-apps/openrc-{0.22.4.0.34.11,0.38.2}: double free or corruption (fasttop) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | Current packages | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marcin Mirosław
2017-02-03 14:43:27 UTC
It can be reproduced in this way: - stop some service(s) - enter `rc` - quickly hit ctrl+c with sys-apps/openrc-0.34.11: # echo "bt" | gdb -q /sbin/rc 'core-1539070510-0-6-!sbin!rc-17858' Reading symbols from /sbin/rc...(no debugging symbols found)...done. [New LWP 17858] Core was generated by `rc'. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 51 } (gdb) #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007fe6cb709a77 in __GI_abort () at abort.c:90 #2 0x00007fe6cb74e988 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fe6cb85f741 "%s\n") at ../sysdeps/posix/libc_fatal.c:181 #3 0x00007fe6cb7563c8 in malloc_printerr (str=str@entry=0x7fe6cb861278 "double free or corruption (fasttop)") at malloc.c:5368 #4 0x00007fe6cb758275 in _int_free (av=0x7fe6cba91aa0 <main_arena>, p=0x2356270, have_lock=<optimized out>) at malloc.c:4237 #5 0x0000000000404cd4 in ?? () #6 0x00007fe6cb70b148 in __run_exit_handlers (status=1, listp=0x7fe6cba91578 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83 #7 0x00007fe6cb70b1aa in __GI_exit (status=<optimized out>) at exit.c:105 #8 0x00007fe6cbc9dd9a in eerrorx () from /lib64/libeinfo.so.1 #9 0x000000000040483b in ?? () #10 <signal handler called> #11 0x00007fe6cb79f52e in __GI___waitpid (pid=17860, stat_loc=0x7ffc5943aa24, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 #12 0x0000000000406d48 in ?? () #13 0x000000000040431f in ?? () #14 0x00007fe6cb6f2eda in __libc_start_main (main=0x402ee0, argc=1, argv=0x7ffc5943bd68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc5943bd58) at ../csu/libc-start.c:308 #15 0x000000000040445a in ?? () (gdb) quit With 0.38.2: # echo "bt" | gdb -q /sbin/rc 'core-1539080623-0-6-!sbin!rc-2480' Reading symbols from /sbin/rc...Reading symbols from /usr/lib64/debug//sbin/rc.debug...done. done. [New LWP 2480] Core was generated by `rc'. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 51 } (gdb) #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007f46537c7a77 in __GI_abort () at abort.c:90 #2 0x00007f465380c988 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f465391d741 "%s\n") at ../sysdeps/posix/libc_fatal.c:181 #3 0x00007f46538143c8 in malloc_printerr (str=str@entry=0x7f465391f278 "double free or corruption (fasttop)") at malloc.c:5368 #4 0x00007f4653816275 in _int_free (av=0x7f4653b4faa0 <main_arena>, p=0x55667e2eaa20, have_lock=<optimized out>) at malloc.c:4237 #5 0x000055667dd9f2dc in cleanup () at rc.c:152 #6 0x00007f46537c9148 in __run_exit_handlers (status=status@entry=1, listp=0x7f4653b4f578 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83 #7 0x00007f46537c91aa in __GI_exit (status=status@entry=1) at exit.c:105 #8 0x00007f46541681a9 in __RC_eerrorx (fmt=0x55667dda2b1d "%s: caught %s, aborting") at libeinfo.c:762 #9 0x000055667dd9f8b8 in handle_signal (sig=2) at rc.c:429 #10 <signal handler called> #11 0x00007f465385d52e in __GI___waitpid (pid=pid@entry=2514, stat_loc=stat_loc@entry=0x7ffe7ead7e64, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 #12 0x000055667dda206f in rc_waitpid (pid=2514) at rc-plugin.c:118 #13 0x000055667dd9e20c in do_start_services (parallel=false, start_services=<optimized out>) at rc.c:683 #14 main (argc=<optimized out>, argv=<optimized out>) at rc.c:1085 (gdb) quit Can you still hit this? If so, would you mind running it under Valgrind? (It might be hard to hit though because it can slow things down). If not, maybe try ASAN instead. 6 years later... Sorry, I don't care it. |