Skip to content

Instantly share code, notes, and snippets.

@jippi
Created November 7, 2012 22:39
Show Gist options
  • Select an option

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

Select an option

Save jippi/4035006 to your computer and use it in GitHub Desktop.
<?php
$i = new Imagick();
$i->newImage(700, 700, 'transparent', 'png');
-> 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 8419)]
[New Thread 0x7fffe4ab2700 (LWP 8424)]
[New Thread 0x7fffe42b1700 (LWP 8427)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe42b1700 (LWP 8427)]
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 ?? ()
Nov 7 23:38:29 access kernel: : [4526417.957286] php[9457]: segfault at 7fd0cd683ed2 ip 00007fd0cd683ed2 sp 00007fd0cbb42e98 error 14
Nov 7 23:38:29 access kernel: : [4526417.957290] php[9459]: segfault at 7fd0cd683ed2 ip 00007fd0cd683ed2 sp 00007fd0cab40e98 error 14
Nov 7 23:38:29 access kernel: : [4526417.957383] php[9458]: segfault at 7fd0cd683ed2 ip 00007fd0cd683ed2 sp 00007fd0cb341e98 error 14 in locale-archive[7fd0cfe93000+67c4000]
Nov 7 23:38:29 access kernel: : [4526417.957464] in locale-archive[7fd0cfe93000+67c4000]
Nov 7 23:38:29 access kernel: : [4526417.957473] in locale-archive[7fd0cfe93000+67c4000]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment