Skip to content

Instantly share code, notes, and snippets.

@alq666
Created March 1, 2011 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alq666/850080 to your computer and use it in GitHub Desktop.
Save alq666/850080 to your computer and use it in GitHub Desktop.
xulrunner-bin is stuck
$ gdb /usr/lib/xulrunner-1.9.2.13/xulrunner-bin 20626
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/xulrunner-1.9.2.13/xulrunner-bin...Reading symbols from /usr/lib/debug/usr/lib/xulrunner-1.9.2.13/xulrunner-bin...done.
done.
Attaching to program: /usr/lib/xulrunner-1.9.2.13/xulrunner-bin, process 20626
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
[Thread debugging using libthread_db enabled]
0x00007f5ed1e21464 in __lll_lock_wait () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007f5ed1e21464 in __lll_lock_wait () from /lib/libpthread.so.0
#1 0x00007f5ed1e1c60f in _L_lock_1172 () from /lib/libpthread.so.0
#2 0x00007f5ed1e1c55a in pthread_mutex_lock () from /lib/libpthread.so.0
#3 0x00007f5ed2484110 in malloc_mutex_lock () at jemalloc.c:1368
#4 malloc_init_hard () at jemalloc.c:5202
#5 0x00007f5ed2488435 in malloc_init (size=260) at jemalloc.c:5181
#6 malloc (size=260) at jemalloc.c:5772
#7 0x00007f5ed204475b in find_lib_start (libname=0x7f5ed2048282 "libpthread", pid=20626) at af_utils.c:1493
#8 0x00007f5ed20377a4 in af_funcs_populate () at lib_wrappers.c:268
#9 0x00007f5ed203866d in _do_openInts () at lib_wrappers.c:489
#10 0x00007f5ed2038a4e in openInts () at lib_wrappers.c:571
#11 0x00007f5ed203a226 in intercept_read (fd=3, buf=0x7fffe5577b70, count=1024) at lib_wrappers.c:1060
#12 0x00007f5ed203a4c8 in read (fd=3, buf=0x7fffe5577b70, count=1024) at lib_wrappers.c:1092
#13 0x00007f5ed2484170 in read () at /usr/include/bits/unistd.h:45
#14 malloc_ncpus () at jemalloc.c:4956
#15 malloc_init_hard () at jemalloc.c:5234
#16 0x00007f5ed2488435 in malloc_init (size=568) at jemalloc.c:5181
#17 malloc (size=568) at jemalloc.c:5772
#18 0x00007f5ecbcbe4cb in ?? () from /lib/libc.so.6
#19 0x00007f5ec7d06e6d in ?? () from /lib/libselinux.so.1
#20 0x00007f5ec7d0f466 in ?? () from /lib/libselinux.so.1
#21 0x0000000000000002 in ?? ()
#22 0x0000000000000002 in ?? ()
#23 0x00007fffe5578198 in ?? ()
#24 0x00007f5ec7cff2d3 in _init () from /lib/libselinux.so.1
#25 0x00007f5ed245c000 in ?? ()
#26 0x00007f5ed2264d25 in ?? () from /lib64/ld-linux-x86-64.so.2
#27 0x00007f5ed2256b2a in ?? () from /lib64/ld-linux-x86-64.so.2
#28 0x0000000000000002 in ?? ()
#29 0x00007fffe55796a9 in ?? ()
#30 0x00007fffe55796d3 in ?? ()
#31 0x0000000000000000 in ?? ()
(gdb) info threads
* 1 Thread 0x7f5ed2447820 (LWP 20626) 0x00007f5ed1e21464 in __lll_lock_wait () from /lib/libpthread.so.0
@alq666
Copy link
Author

alq666 commented Mar 3, 2011

Ah yes...
#4 malloc_init_hard () at jemalloc.c:5202
#15 malloc_init_hard () at jemalloc.c:5234

Deadlock!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment