Skip to content

Instantly share code, notes, and snippets.

@jippi
Created November 7, 2012 23:01
Show Gist options
  • Select an option

  • Save jippi/4035171 to your computer and use it in GitHub Desktop.

Select an option

Save jippi/4035171 to your computer and use it in GitHub Desktop.
-> gdb php
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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/bin/php...Reading symbols from /usr/lib/debug/usr/bin/php5...done.
(no debugging symbols found)...done.
(gdb) run image.test.php
Starting program: /usr/bin/php image.test.php
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe52b3700 (LWP 6534)]
[New Thread 0x7fffe4ab2700 (LWP 6535)]
[New Thread 0x7fffe42b1700 (LWP 6536)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe42b1700 (LWP 6536)]
0x00007fffe8006ecc in ?? () from /usr/lib/libgomp.so.1
(gdb) bt
#0 0x00007fffe8006ecc in ?? () from /usr/lib/libgomp.so.1
#1 0x00007fffe8005886 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007ffff671b8ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff4aecb6d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
(gdb) info threads
* 4 Thread 0x7fffe42b1700 (LWP 6536) 0x00007fffe8006ecc in ?? () from /usr/lib/libgomp.so.1
3 Thread 0x7fffe4ab2700 (LWP 6535) 0x00007fffe8006ec8 in ?? () from /usr/lib/libgomp.so.1
2 Thread 0x7fffe52b3700 (LWP 6534) 0x00007fffe8006ed2 in ?? () from /usr/lib/libgomp.so.1
1 Thread 0x7ffff7fe3720 (LWP 6531) 0x00007ffff7df50d7 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) thread 1
[Switching to thread 1 (Thread 0x7ffff7fe3720 (LWP 6531))]#0 0x00007ffff7df50d7 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0 0x00007ffff7df50d7 in ?? () from /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7df44c3 in ?? () from /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7df1f6a in ?? () from /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7df266e in ?? () from /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff7dec906 in ?? () from /lib64/ld-linux-x86-64.so.2
#5 0x00007ffff5c282ec in ?? () from /lib/libdl.so.2
#6 0x00007ffff5c2800f in dlclose () from /lib/libdl.so.2
#7 0x00000000006cf754 in module_destructor (module=0xeca400) at /usr/src/php5.4/source/php5-5.4.8/Zend/zend_API.c:2286
#8 0x00000000006d5ff5 in zend_hash_apply_deleter (ht=0xe26b20, p=0xeca3a0) at /usr/src/php5.4/source/php5-5.4.8/Zend/zend_hash.c:650
#9 0x00000000006d6278 in zend_hash_graceful_reverse_destroy (ht=0xe26b20) at /usr/src/php5.4/source/php5-5.4.8/Zend/zend_hash.c:687
#10 0x00000000006c9c0e in zend_shutdown () at /usr/src/php5.4/source/php5-5.4.8/Zend/zend.c:820
#11 0x000000000066a88d in php_module_shutdown () at /usr/src/php5.4/source/php5-5.4.8/main/main.c:2355
#12 0x00000000007754a5 in main (argc=32767, argv=0xe27230) at /usr/src/php5.4/source/php5-5.4.8/sapi/cli/php_cli.c:1379
(gdb) thread 2
[Switching to thread 2 (Thread 0x7fffe52b3700 (LWP 6534))]#0 0x00007fffe8006ed2 in ?? () from /usr/lib/libgomp.so.1
(gdb) bt
#0 0x00007fffe8006ed2 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007fffe8005886 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007ffff671b8ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff4aecb6d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread 0x7fffe4ab2700 (LWP 6535))]#0 0x00007fffe8006ec8 in ?? () from /usr/lib/libgomp.so.1
(gdb) bt
#0 0x00007fffe8006ec8 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007fffe8005886 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007ffff671b8ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff4aecb6d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
(gdb) thread 4
[Switching to thread 4 (Thread 0x7fffe42b1700 (LWP 6536))]#0 0x00007fffe8006ecc in ?? () from /usr/lib/libgomp.so.1
(gdb) bt
#0 0x00007fffe8006ecc in ?? () from /usr/lib/libgomp.so.1
#1 0x00007fffe8005886 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007ffff671b8ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff4aecb6d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment