php5 cli segmentation fault when executing script

Bug #586898 reported by Adrian Almenar
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: php5-cli

Description: Ubuntu 10.04 LTS
Release: 10.04

php5-cli:
  Installed: 5.3.2-1ubuntu4.2
  Candidate: 5.3.2-1ubuntu4.2
  Version table:
 *** 5.3.2-1ubuntu4.2 0
        500 http://es.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     5.3.2-1ubuntu4 0
        500 http://es.archive.ubuntu.com/ubuntu/ lucid/main Packages

When I execute a php script on the command line i get segmentation fault.

On the log, i see this happens at the moment a SQL Query to the mysql is raised.

The gdb backtrace is this:
Program received signal SIGSEGV, Segmentation fault.
0x08329955 in gc_zval_possible_root (zv=0xa56a6e4) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
143 /build/buildd/php5-5.3.2/Zend/zend_gc.c: No such file or directory.
        in /build/buildd/php5-5.3.2/Zend/zend_gc.c
(gdb) bt
#0 0x08329955 in gc_zval_possible_root (zv=0xa56a6e4) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
#1 0x082fd4c1 in _zval_ptr_dtor (zval_ptr=0xa53fd54) at /build/buildd/php5-5.3.2/Zend/zend_gc.h:183
#2 0x08316f94 in zend_hash_destroy (ht=0xa58a674) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#3 0x0832d2b3 in zend_object_std_dtor (object=0xa55c4b8) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:45
#4 0x0832d2f2 in zend_objects_free_object_storage (object=0xa55c4b8) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:114
#5 0x08330e1d in zend_objects_store_del_ref_by_handle_ex (handle=<error type>, handlers=0x8764700) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:220
#6 0x08330e5f in zend_objects_store_del_ref (zobject=0xa5a50bc) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:172
#7 0x08309cd9 in _zval_dtor_func (zvalue=0xa5a50bc) at /build/buildd/php5-5.3.2/Zend/zend_variables.c:55
#8 0x082fd48d in _zval_ptr_dtor (zval_ptr=0xa58ecd4) at /build/buildd/php5-5.3.2/Zend/zend_variables.h:35
#9 0x08316f94 in zend_hash_destroy (ht=0x8903d1c) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#10 0x08309c96 in _zval_dtor_func (zvalue=0xa5afb00) at /build/buildd/php5-5.3.2/Zend/zend_variables.c:46
#11 0x082fd48d in _zval_ptr_dtor (zval_ptr=0xa581904) at /build/buildd/php5-5.3.2/Zend/zend_variables.h:35
#12 0x08316f94 in zend_hash_destroy (ht=0xa57a8d4) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#13 0x0832d2b3 in zend_object_std_dtor (object=0xa5afb2c) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:45
#14 0x0832d2f2 in zend_objects_free_object_storage (object=0xa5afb2c) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:114
#15 0x08330e1d in zend_objects_store_del_ref_by_handle_ex (handle=<error type>, handlers=0x8764700) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:220
#16 0x08330e5f in zend_objects_store_del_ref (zobject=0xa5be2a8) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:172
#17 0x08309cd9 in _zval_dtor_func (zvalue=0xa5be2a8) at /build/buildd/php5-5.3.2/Zend/zend_variables.c:55
#18 0x082fd48d in _zval_ptr_dtor (zval_ptr=0xbfffc984) at /build/buildd/php5-5.3.2/Zend/zend_variables.h:35
#19 0x083301fb in zend_std_write_property (object=0xa5c56d8, member=0xa0299e0, value=0xa5d17d8) at /build/buildd/php5-5.3.2/Zend/zend_object_handlers.c:435
#20 0x0837a9d9 in zend_assign_to_object (result=0xa0299b4, object_ptr=0x877b788, property_name=0xa0299e0, value_op=0xa029a14, Ts=0x893febc, opcode=136)
    at /build/buildd/php5-5.3.2/Zend/zend_execute.c:589
#21 0x0837b268 in ZEND_ASSIGN_OBJ_SPEC_UNUSED_CONST_HANDLER (execute_data=0x893fe60) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:17617
#22 0x08333d8e in execute (op_array=0x8a3fa50) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#23 0x082ffbf1 in zend_call_function (fci=0xbfffcbe0, fci_cache=0xbfffcc04) at /build/buildd/php5-5.3.2/Zend/zend_execute_API.c:947
#24 0x0822eaa5 in zif_call_user_func_array (ht=2, return_value=0x8c81364, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
    at /build/buildd/php5-5.3.2/ext/standard/basic_functions.c:4782
#25 0x0835d26a in zend_do_fcall_common_helper_SPEC (execute_data=0x893d630) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:313
#26 0x08333d8e in execute (op_array=0x8909eac) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#27 0x08309fa6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /build/buildd/php5-5.3.2/Zend/zend.c:1266
#28 0x082ae754 in php_execute_script (primary_file=0xbffff1d4) at /build/buildd/php5-5.3.2/main/main.c:2288
#29 0x083a0c28 in main (argc=5, argv=0xbffff314) at /build/buildd/php5-5.3.2/sapi/cli/php_cli.c:1196

(gdb) frame 22
#22 0x08333d8e in execute (op_array=0x8a3fa50) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
104 /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h: No such file or directory.
        in /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h

This was reported on bug 343870 but people said it's not mysql related.

Using strace i see that it locks after sending the query to mysql server.

If anything else is needed please let me know im willing to help on this.

Revision history for this message
Chuck Short (zulcss) wrote :

Please attach script.

chuck

Changed in php5 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Adrian Almenar (aalmenar) wrote :

I cant include the script at this time. Will try to make the same functionality and test it.

Revision history for this message
Adrian Almenar (aalmenar) wrote :

Also in dmesg i get these logs:

[341181.619018] php[10488]: segfault at ca88972a ip 08328de7 sp bfaf5c50 error 5 in php5[8048000+6d9000]
[341509.211242] php[11579]: segfault at 69396420 ip 08328ef9 sp bfcbada0 error 4 in php5[8048000+6d9000]
[341653.136945] php[11991]: segfault at 486dc821 ip 08328ef9 sp bfea9650 error 4 in php5[8048000+6d9000]
[341902.914159] php[12844]: segfault at b1f81c20 ip 08328ef9 sp bf8d85f0 error 4 in php5[8048000+6d9000]
[343515.576780] php[17983]: segfault at 7f2f341b ip 08328cd0 sp bfe1bc90 error 4 in php5[8048000+6d9000]
[343775.020288] php[18690]: segfault at ada2501d ip 08329620 sp bfe65b90 error 4 in php5[8048000+6d9000]
[343897.493101] php[19220]: segfault at ed789421 ip 08328ef9 sp bfd0c880 error 5 in php5[8048000+6d9000]
[344024.024374] php[19595]: segfault at 29289420 ip 08328ef9 sp bfc32310 error 4 in php5[8048000+6d9000]
[344219.065977] php[20192]: segfault at 43e2501d ip 08329620 sp bf8eade0 error 4 in php5[8048000+6d9000]
[345468.780574] php[24585]: segfault at f9343027 ip 08328ef9 sp bfe776f0 error 4 in php5[8048000+6d9000]
[346602.453770] php[26910]: segfault at a6fc ip 08328e51 sp bfd0ba20 error 4 in php5[8048000+6d9000]
[348591.313900] php[28845]: segfault at 18952023 ip 08328ef9 sp bfaf40a0 error 4 in php5[8048000+6d9000]

Revision history for this message
Adrian Almenar (aalmenar) wrote :

I though it was libmysqlclient or mysql related since it dies when executing a query, but randomly, no specific query:

With strace:

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "\234\1\0\0\3SELECT TABLE.FKTABLEID"..., 416) = 416
read(4, "\1\0\0\1\rK\0\0\2\3def\7testdatabase\10ITEM\10D"..., 16384) = 1096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Revision history for this message
Adrian Almenar (aalmenar) wrote :

Making more tests, some times the script finishes but also segfaults when exiting with this backtrace:

Program received signal SIGSEGV, Segmentation fault.
zend_mm_remove_from_free_list (heap=0xffffffff, mm_block=0xb0908bc) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:889
889 /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c: No such file or directory.
 in /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c
(gdb) bt
#0 zend_mm_remove_from_free_list (heap=0xffffffff, mm_block=0xb0908bc) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:889
#1 0x0832bedd in _zend_mm_free_canary_int (heap=0x877c5b0, p=0xb090a0c) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:2131
#2 0x082eb8c8 in _efree (ptr=0xb090a0c) at /build/buildd/php5-5.3.2/Zend/zend_alloc.c:2619
#3 0x08316fd2 in zend_hash_destroy (ht=0xb0b39b0) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:733
#4 0x08309c96 in _zval_dtor_func (zvalue=0xb0ba1bc) at /build/buildd/php5-5.3.2/Zend/zend_variables.c:46
#5 0x082fd48d in _zval_ptr_dtor (zval_ptr=0xb0b95b4) at /build/buildd/php5-5.3.2/Zend/zend_variables.h:35
#6 0x08316f94 in zend_hash_destroy (ht=0xb0b7fcc) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#7 0x0832d2b3 in zend_object_std_dtor (object=0xb0ba764) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:45
#8 0x0832d2f2 in zend_objects_free_object_storage (object=0xb0ba764) at /build/buildd/php5-5.3.2/Zend/zend_objects.c:114
#9 0x083307f2 in zend_objects_store_free_object_storage (objects=0x877b850) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:92
#10 0x082fd88d in shutdown_executor () at /build/buildd/php5-5.3.2/Zend/zend_execute_API.c:302
#11 0x0830a9af in zend_deactivate () at /build/buildd/php5-5.3.2/Zend/zend.c:962
#12 0x082af368 in php_request_shutdown (dummy=0x0) at /build/buildd/php5-5.3.2/main/main.c:1649
#13 0x0839fb31 in main (argc=7, argv=0xbffff7b4) at /build/buildd/php5-5.3.2/sapi/cli/php_cli.c:1377
(gdb)

Revision history for this message
Adrian Almenar (aalmenar) wrote :
Download full text (4.4 KiB)

A new backtrace with more information:

Program received signal SIGSEGV, Segmentation fault.
zval_mark_grey (pz=0x13539974) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:356
356 p = Z_ARRVAL_P(pz)->pListHead;
(gdb) bt
#0 zval_mark_grey (pz=0x13539974) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:356
#1 0x08328d08 in zval_mark_grey (pz=0x13539974) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:367
#2 0x0832970d in gc_collect_cycles () at /build/buildd/php5-5.3.2/Zend/zend_gc.c:417
#3 0x08329995 in gc_zval_possible_root (zv=0x13f32a8c) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:166
#4 0x082fd4c1 in _zval_ptr_dtor (zval_ptr=0xbfffd16c) at /build/buildd/php5-5.3.2/Zend/zend_gc.h:183
#5 0x0835cc09 in zend_do_fcall_common_helper_SPEC (execute_data=0x13f32a8c) at /build/buildd/php5-5.3.2/Zend/zend_execute.h:316
#6 0x08333d8e in execute (op_array=0x8909d28) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#7 0x08309fa6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /build/buildd/php5-5.3.2/Zend/zend.c:1266
#8 0x082ae754 in php_execute_script (primary_file=0xbffff674) at /build/buildd/php5-5.3.2/main/main.c:2288
#9 0x083a0c28 in main (argc=7, argv=0xbffff7b4) at /build/buildd/php5-5.3.2/sapi/cli/php_cli.c:1196
(gdb) frame 6
#6 0x08333d8e in execute (op_array=0x8909d28) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
104 if ((ret = EX(opline)->handler(execute_data TSRMLS_CC)) > 0) {
(gdb) p ret
$2 = 324245876
(gdb) p handler
$3 = {{name = 0x83abb54 "cdb", flags = 31, open = 0x80c3150 <dba_open_cdb>, close = 0x80c30e0 <dba_close_cdb>, fetch = 0x80c2fe0 <dba_fetch_cdb>,
    update = 0x80c2f70 <dba_update_cdb>, exists = 0x80c2f10 <dba_exists_cdb>, delete = 0x80c2af0 <dba_delete_cdb>, firstkey = 0x80c2d50 <dba_firstkey_cdb>,
    nextkey = 0x80c2be0 <dba_nextkey_cdb>, optimize = 0x80c2b00 <dba_optimize_cdb>, sync = 0x80c2b10 <dba_sync_cdb>, info = 0x80c2b20 <dba_info_cdb>}, {
    name = 0x83abcc1 "cdb_make", flags = 31, open = 0x80c3150 <dba_open_cdb>, close = 0x80c30e0 <dba_close_cdb>, fetch = 0x80c2fe0 <dba_fetch_cdb>,
    update = 0x80c2f70 <dba_update_cdb>, exists = 0x80c2f10 <dba_exists_cdb>, delete = 0x80c2af0 <dba_delete_cdb>, firstkey = 0x80c2d50 <dba_firstkey_cdb>,
    nextkey = 0x80c2be0 <dba_nextkey_cdb>, optimize = 0x80c2b00 <dba_optimize_cdb>, sync = 0x80c2b10 <dba_sync_cdb>, info = 0x80c2b20 <dba_info_cdb>}, {name = 0x83abcca "db4",
    flags = 15, open = 0x80c3390 <dba_open_db4>, close = 0x80c3320 <dba_close_db4>, fetch = 0x80c3a40 <dba_fetch_db4>, update = 0x80c39a0 <dba_update_db4>,
    exists = 0x80c38f0 <dba_exists_db4>, delete = 0x80c3890 <dba_delete_db4>, firstkey = 0x80c3810 <dba_firstkey_db4>, nextkey = 0x80c3720 <dba_nextkey_db4>,
    optimize = 0x80c32b0 <dba_optimize_db4>, sync = 0x80c32c0 <dba_sync_db4>, info = 0x80c32f0 <dba_info_db4>}, {name = 0x83abb58 "inifile", flags = 95,
    open = 0x80c4470 <dba_open_inifile>, close = 0x80c4440 <dba_close_inifile>, fetch = 0x80c4180 <dba_fetch_inifile>, update = 0x80c4300 <dba_update_inifile>,
    exists = 0x80c4240 <dba_exists_inifile>, delete = 0x80c40e0 <dba_delete_inifile>, firstkey = 0x80c4080 <dba_firstkey_inifile>, nextkey = 0x80c4000 <db...

Read more...

Revision history for this message
Jan K. (jan-launchpad-kantert) wrote :
Download full text (3.9 KiB)

We got a similar problem without mysql in lucid without using mysql. Happens in Apache at a strange point. Only happens when using memcache, when we try to clean some objects:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3d9c980 in gc_remove_zval_from_buffer (
    zv=0x7fffffffb7c0)
    at /build/buildd/php5-5.3.2/Zend/zend_gc.h:189
189 /build/buildd/php5-5.3.2/Zend/zend_gc.h: No such file or directory.
 in /build/buildd/php5-5.3.2/Zend/zend_gc.h
(gdb) bt
#0 0x00007ffff3d9c980 in gc_remove_zval_from_buffer (
    zv=0x7fffffffb7c0)
    at /build/buildd/php5-5.3.2/Zend/zend_gc.h:189
#1 0x00007ffff3d72a05 in _zval_ptr_dtor (
    zval_ptr=0x7ffffa79ba88)
    at /build/buildd/php5-5.3.2/Zend/zend_execute_API.c:438
#2 0x00007ffff3d8b988 in zend_hash_destroy (
    ht=0x7ffff8e12de8)
    at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#3 0x00007ffff3d7e98f in _zval_dtor_func (
    zvalue=0x7ffff8e234b8)
    at /build/buildd/php5-5.3.2/Zend/zend_variables.c:46
#4 0x00007ffff3d729bd in _zval_ptr_dtor (
    zval_ptr=0x7fffffffbae8)
    at /build/buildd/php5-5.3.2/Zend/zend_variables.h:35
#5 0x00007ffff3da3778 in zend_std_write_property (
    object=0x7ffffa79cb70, member=0x7ffffa79cb70,
    value=0x7ffff893da30)
    at /build/buildd/php5-5.3.2/Zend/zend_object_handlers.c:435
#6 0x00007ffff3df2c4a in zend_assign_to_object (
    result=0x7ffff8e21b98, object_ptr=0x7ffff4476b20,
    property_name=0x7ffff8e21be0, value_op=0x7ffff8e21c30,
    Ts=0x7ffff7e85898, opcode=-92885552)
    at /build/buildd/php5-5.3.2/Zend/zend_execute.c:595
#7 0x00007ffff3df35dd in ZEND_ASSIGN_OBJ_SPEC_UNUSED_CONST_HANDLER (execute_data=0x7ffff7e857f0)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:17617
#8 0x00007ffff3da6f60 in execute (op_array=0x7ffff8e1d5e0)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#9 0x00007ffff3d7ec8d in zend_execute_scripts (
    type=4194336, retval=0x7fffffffbc80, file_count=3)
    at /build/buildd/php5-5.3.2/Zend/zend.c:1266
#10 0x00007ffff3d2a8f8 in php_execute_script (
    primary_file=0x0)
    at /build/buildd/php5-5.3.2/main/main.c:2288
#11 0x00007ffff3e0bf2d in php_handler (r=0x7ffff3e0bf2d)
    at /build/buildd/php5-5.3.2/sapi/apache2handler/sapi_apache2.c:674
#12 0x00007ffff7fd6140 in ap_run_handler (r=0x7ffff86c3fa0)
    at /build/buildd/apache2-2.2.14/server/config.c:159
#13 0x00007ffff7fd9aa8 in ap_invoke_handler (
    r=0x7ffff86c3fa0)
    at /build/buildd/apache2-2.2.14/server/config.c:373
#14 0x00007ffff7fe749c in ap_internal_redirect (
    new_uri=<value optimized out>, r=<value optimized out>)
    at /build/buildd/apache2-2.2.14/modules/http/http_request.c:501
#15 0x00007ffff13c7c95 in ?? ()
   from /usr/lib/apache2/modules/mod_rewrite.so
#16 0x00007ffff7fd6140 in ap_run_handler (r=0x7ffff86adba8)
    at /build/buildd/apache2-2.2.14/server/config.c:159
#17 0x00007ffff7fd9aa8 in ap_invoke_handler (
    r=0x7ffff86adba8)
    at /build/buildd/apache2-2.2.14/server/config.c:373
#18 0x00007ffff7fe7678 in ap_process_request (
    r=0x7ffff86adba8)
    at /build/buildd/apache2-2.2.14/modules/http/http_request.c:282
#19 0x00007ffff7fe4528 in ap_process_http_connection (
    c=0x7ffff86a79d...

Read more...

Revision history for this message
raspi (raspi) wrote :

Cli version PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:03:45)

Program received signal SIGSEGV, Segmentation fault.
0x00000000006b2a8c in ?? ()
(gdb) bt
#0 0x00000000006b2a8c in ?? ()
#1 0x00000000006b2aae in ?? ()
#2 0x00000000006b2aae in ?? ()
#3 0x00000000006b2aae in ?? ()
#4 0x00000000006b2b65 in ?? ()
#5 0x00000000006b3475 in gc_collect_cycles ()
#6 0x00000000006b3684 in gc_zval_possible_root ()
#7 0x000000000070910f in ?? ()
#8 0x0000000000709a7d in ?? ()
#9 0x00000000006bd400 in execute ()
#10 0x000000000069512d in zend_execute_scripts ()
#11 0x0000000000640d98 in php_execute_script ()
#12 0x0000000000726236 in ?? ()
#13 0x00007ffff52a6c4d in __libc_start_main () from /lib/libc.so.6
#14 0x000000000042c639 in _start ()

Revision history for this message
Jan K. (jan-launchpad-kantert) wrote :

The problem seems to be a problem in memcache. We switched to the memcached extension and everything is working now! No more segfaults.

Jan

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for php5 (Ubuntu) because there has been no activity for 60 days.]

Changed in php5 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Omid Kosari (omidkosari) wrote :
Download full text (5.2 KiB)

Program received signal SIGSEGV, Segmentation fault.
0x00000000006b57d9 in gc_zval_possible_root (zv=0x3470c40) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
143 /build/buildd/php5-5.3.2/Zend/zend_gc.c: No such file or directory.
        in /build/buildd/php5-5.3.2/Zend/zend_gc.c
(gdb) bt
#0 0x00000000006b57d9 in gc_zval_possible_root (zv=0x3470c40) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
#1 0x00000000006a3eb8 in zend_hash_destroy (ht=0x3225800) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#2 0x000000000054efed in sxe_object_free_storage (object=0x322dbd8) at /build/buildd/php5-5.3.2/ext/simplexml/simplexml.c:2016
#3 0x00000000006bcadc in zend_objects_store_del_ref_by_handle_ex (handle=32767, handlers=0x31f5c70)
    at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:220
#4 0x00000000006bcb03 in zend_objects_store_del_ref (zobject=0x364bca8) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:172
#5 0x0000000000719d38 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0x7ffff7ea8438) at /build/buildd/php5-5.3.2/Zend/zend_execute.c:698
#6 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#7 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#8 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea6640)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#9 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#10 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#11 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea58d0)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#12 0x00000000006bf770 in execute (op_array=0x17c6f40) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#13 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#14 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea4a10)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#15 0x00000000006bf770 in execute (op_array=0x18088b0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#16 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#17 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea40a8)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
---Type <return> to continue, or q <return> to quit---
#18 0x00000000006bf770 in execute (op_array=0x1797b88) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#19 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#20 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea37e0)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#21 0x00000000006bf770 in execute (op_array=0x16fd5e0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#22 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#23 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea34a0)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#24 0x00000000006bf770 in execute (op_array=0x1734308) at /build/buildd/php5-5.3.2/Zend/zend_vm_exec...

Read more...

Changed in php5 (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Hamed Narimani (narimani-h) wrote :

I am using php with zend framework. when running codes on my local pc everything is ok but when I run them on server, I get exactly the same error as other comments :

Program received signal SIGSEGV, Segmentation fault.
0x00000000006b57d9 in gc_zval_possible_root (zv=0x3470c40) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
143 /build/buildd/php5-5.3.2/Zend/zend_gc.c: No such file or directory.
        in /build/buildd/php5-5.3.2/Zend/zend_gc.c

Revision history for this message
Omid Kosari (omidkosari) wrote :
Download full text (6.7 KiB)

Program received signal SIGSEGV, Segmentation fault.
zend_mm_remove_from_free_list (heap=0xd96ac0, mm_block=0x2d3fab0) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:889
889 /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c: No such file or directory.
        in /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c
(gdb) bt
#0 zend_mm_remove_from_free_list (heap=0xd96ac0, mm_block=0x2d3fab0) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:889
#1 0x00000000006b7b9b in _zend_mm_free_canary_int (heap=0xd96ac0, p=0x2d3fa68) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:2126
#2 0x000000000054efed in sxe_object_free_storage (object=0x2d3f6e8) at /build/buildd/php5-5.3.2/ext/simplexml/simplexml.c:2016
#3 0x00000000006bcadc in zend_objects_store_del_ref_by_handle_ex (handle=32767, handlers=0x2d3fab0)
    at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:220
#4 0x00000000006bcb03 in zend_objects_store_del_ref (zobject=0x2d3f698) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:172
#5 0x0000000000719d38 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0x7ffff7eaed18) at /build/buildd/php5-5.3.2/Zend/zend_execute.c:698
#6 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#7 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#8 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7eacf20)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#9 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#10 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#11 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7eab128)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#12 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#13 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#14 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea9330)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#15 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#16 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#17 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea7538)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
---Type <return> to continue, or q <return> to quit---
#18 0x00000000006bf770 in execute (op_array=0x17cd8f8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#19 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#20 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea67c8)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#21 0x00000000006bf770 in execute (op_array=0x17c6f40) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#22 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#23 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea5908)
    at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#24 0x0000000000...

Read more...

Revision history for this message
Omid Kosari (omidkosari) wrote :
Download full text (5.1 KiB)

Program received signal SIGSEGV, Segmentation fault.
0x00000000006b57d9 in gc_zval_possible_root (zv=0x351f4c8) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
143 GC_ZOBJ_CHECK_POSSIBLE_ROOT(zv);
(gdb) bt
#0 0x00000000006b57d9 in gc_zval_possible_root (zv=0x351f4c8) at /build/buildd/php5-5.3.2/Zend/zend_gc.c:143
#1 0x00000000006a3eb8 in zend_hash_destroy (ht=0x32e6ed0) at /build/buildd/php5-5.3.2/Zend/zend_hash.c:726
#2 0x000000000054efed in sxe_object_free_storage (object=0x32e3510) at /build/buildd/php5-5.3.2/ext/simplexml/simplexml.c:2016
#3 0x00000000006bcadc in zend_objects_store_del_ref_by_handle_ex (handle=32767, handlers=0x32ecbb0) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:220
#4 0x00000000006bcb03 in zend_objects_store_del_ref (zobject=0x3535208) at /build/buildd/php5-5.3.2/Zend/zend_objects_API.c:172
#5 0x0000000000719d38 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0x7ffff7ea8438) at /build/buildd/php5-5.3.2/Zend/zend_execute.c:698
#6 0x00000000006bf770 in execute (op_array=0x17cded8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#7 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#8 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea6640) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#9 0x00000000006bf770 in execute (op_array=0x17cded8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#10 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#11 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea58d0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#12 0x00000000006bf770 in execute (op_array=0x17c7520) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#13 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#14 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea4a10) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#15 0x00000000006bf770 in execute (op_array=0x1808e90) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#16 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#17 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea40a8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#18 0x00000000006bf770 in execute (op_array=0x1798168) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#19 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#20 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea37e0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#21 0x00000000006bf770 in execute (op_array=0x16fdbc0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#22 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
---Type <return> to continue, or q <return> to quit---
#23 0x00000000006e8176 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7ea34a0) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:337
#24 0x00000000006bf770 in execute (op_array=0x17348e8) at /build/buildd/php5-5.3.2/Zend/zend_vm_execute.h:104
#25 0x00007fffeb293836 in ?? () from /usr/lib/php5/20090626/suhosin.so
#26 0x00000000006...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.