secret
Created

  • Download Gist
gdb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Program received signal SIGSEGV, Segmentation fault.
0x0000000000814baa in zval_delref_p (pz=0x5a5a5a5a5a5a5a5a) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend.h:391
391 return --pz->refcount__gc;
(gdb) bt
#0 0x0000000000814baa in zval_delref_p (pz=0x5a5a5a5a5a5a5a5a) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend.h:391
#1 _zval_ptr_dtor (zval_ptr=0x7ffff7fe63b8, __zend_filename=0xd2c328 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects.c", __zend_lineno=54) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c:432
#2 0x00000000008567b6 in zend_object_std_dtor (object=0x1140ac0) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects.c:54
#3 0x00000000005d23cf in pdo_dbh_free_storage (dbh=0x1140ac0) at /home/jrbasso/htdocs/php-5.4.7/ext/pdo/pdo_dbh.c:1576
#4 0x0000000000860c74 in zend_objects_store_del_ref_by_handle_ex (handle=2, handlers=0xfa6000) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects_API.c:220
#5 0x00000000008609dc in zend_objects_store_del_ref (zobject=0x7ffff7e195c8) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects_API.c:172
#6 0x0000000000827418 in _zval_dtor_func (zvalue=0x7ffff7e195c8, __zend_filename=0xd24fa0 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c", __zend_lineno=438)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c:52
#7 0x0000000000814c3e in _zval_dtor (__zend_lineno=<optimized out>, __zend_filename=0xd24fa0 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c", zvalue=0x7ffff7e195c8)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.h:35
#8 _zval_ptr_dtor (zval_ptr=0x7ffff7e186e0, __zend_filename=0xd26870 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c", __zend_lineno=180)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c:438
#9 0x0000000000827818 in _zval_ptr_dtor_wrapper (zval_ptr=0x7ffff7e186e0) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c:180
#10 0x000000000083bb16 in zend_hash_destroy (ht=0x7ffff7e18518) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_hash.c:560
#11 0x00000000008566f8 in zend_object_std_dtor (object=0x7ffff7fe3d00) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects.c:44
#12 0x0000000000856b5d in zend_objects_free_object_storage (object=0x7ffff7fe3d00) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects.c:137
#13 0x0000000000860c74 in zend_objects_store_del_ref_by_handle_ex (handle=1, handlers=0xfa3ac0) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects_API.c:220
#14 0x00000000008609dc in zend_objects_store_del_ref (zobject=0x7ffff7fe3d78) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_objects_API.c:172
#15 0x0000000000827418 in _zval_dtor_func (zvalue=0x7ffff7fe3d78, __zend_filename=0xd24fa0 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c", __zend_lineno=438)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c:52
#16 0x0000000000814c3e in _zval_dtor (__zend_lineno=<optimized out>, __zend_filename=0xd24fa0 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c", zvalue=0x7ffff7fe3d78)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.h:35
#17 _zval_ptr_dtor (zval_ptr=0x7ffff7e1a378, __zend_filename=0xd26870 "/home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c", __zend_lineno=180)
at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c:438
#18 0x0000000000827818 in _zval_ptr_dtor_wrapper (zval_ptr=0x7ffff7e1a378) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_variables.c:180
#19 0x000000000083beea in zend_hash_apply_deleter (ht=0xfc1ae8, p=0x7ffff7e1a360) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_hash.c:650
#20 0x000000000083c55a in zend_hash_reverse_apply (ht=0xfc1ae8, apply_func=0x814413 <zval_call_destructor>) at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_hash.c:804
#21 0x00000000008144a2 in shutdown_destructors () at /home/jrbasso/htdocs/php-5.4.7/Zend/zend_execute_API.c:217
#22 0x00000000008297c0 in zend_call_destructors () at /home/jrbasso/htdocs/php-5.4.7/Zend/zend.c:922
#23 0x000000000079be14 in php_request_shutdown (dummy=0x0) at /home/jrbasso/htdocs/php-5.4.7/main/main.c:1723
#24 0x0000000000973f50 in do_cli (argc=2, argv=0x7fffffffe638) at /home/jrbasso/htdocs/php-5.4.7/sapi/cli/php_cli.c:1171
#25 0x0000000000974656 in main (argc=2, argv=0x7fffffffe638) at /home/jrbasso/htdocs/php-5.4.7/sapi/cli/php_cli.c:1364
php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
jrbasso@jrbasso:~/htdocs$ uname -a
Linux jrbasso 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
jrbasso@jrbasso:~/htdocs$ ./php-5.4.7/sapi/cli/php -v
PHP 5.4.7 (cli) (built: Sep 26 2012 21:10:15) (DEBUG)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
jrbasso@jrbasso:~/htdocs$ ./php-5.4.7/sapi/cli/php -m
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
mysqlnd
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
 
[Zend Modules]
segfault.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
 
class PDO2 extends PDO {
protected $transLevel;
}
 
class ModelA {
public function __construct() {
$this->db = new PDO2('mysql:host=localhost', 'root', 'root', array(PDO::ATTR_PERSISTENT => true));
$this->db->query('SELECT 1')->fetchAll();
}
}
 
$a = new ModelA();
$b = new ModelA();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.