# help debuging a segfault

- Thread: https://externals.io/message/57144
- Original archive: https://news-web.php.net/php.internals/57144
- Started by Remi Collet on 2011-12-29T11:02:05+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57144 — Remi Collet — 2011-12-29T11:02:05+00:00

URL: https://externals.io/message/57144#57144

Hi,

I'm working on PHP 5.4 as a fedora 17 feature.
https://fedoraproject.org/wiki/Features/Php54

Mainly, I test all available extension (~40) compatibility and try to
fix, when needed, and report bug upstream. (mostly done)

But I encounter a segfault with ice-php.

(gdb) bt
#0  _zend_mm_free_int (heap=0xdf02d0, p=0xdf09e0) at
/usr/src/debug/php5.4-201112261030/Zend/zend_alloc.c:2100
#1  0x00000000005e44d9 in zend_objects_free_object_storage
(object=0x7ffff7fb9110) at
/usr/src/debug/php5.4-201112261030/Zend/zend_objects.c:137
#2  0x00000000005ea36f in zend_objects_store_del_ref_by_handle_ex
(handle=8, handlers=<optimized out>)
    at /usr/src/debug/php5.4-201112261030/Zend/zend_objects_API.c:220
#3  0x00000000005ea393 in zend_objects_store_del_ref
(zobject=0x7ffff7fb90e0) at
/usr/src/debug/php5.4-201112261030/Zend/zend_objects_API.c:172
#4  0x00000000005b3e9a in _zval_dtor (zvalue=<optimized out>) at
/usr/src/debug/php5.4-201112261030/Zend/zend_variables.h:35
#5  _zval_ptr_dtor (zval_ptr=0x7ffff7fb91b8) at
/usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:438
#6  _zval_ptr_dtor (zval_ptr=0x7ffff7fb91b8) at
/usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:427
#7  0x00000000005cf131 in zend_hash_apply_deleter (ht=0xa008e8,
p=0x7ffff7fb91a0) at /usr/src/debug/php5.4-201112261030/Zend/zend_hash.c:650
#8  0x00000000005d0c71 in zend_hash_reverse_apply (ht=0xa008e8,
apply_func=0x5b3d00 <zval_call_destructor>)
    at /usr/src/debug/php5.4-201112261030/Zend/zend_hash.c:804
#9  0x00000000005b41b1 in shutdown_destructors () at
/usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:217
#10 0x00000000005c2ce7 in zend_call_destructors () at
/usr/src/debug/php5.4-201112261030/Zend/zend.c:918
#11 0x00000000005631b5 in php_request_shutdown (dummy=<optimized out>)
at /usr/src/debug/php5.4-201112261030/main/main.c:1723
#12 0x000000000066b824 in do_cli (argc=3, argv=0x7fffffffe098) at
/usr/src/debug/php5.4-201112261030/sapi/cli/php_cli.c:1169
#13 0x0000000000425afe in main (argc=3, argv=0x7fffffffe098) at
/usr/src/debug/php5.4-201112261030/sapi/cli/php_cli.c:1356


Any help on "where to search" will be appreciated...

Remi.


P.S. here is the patch used to build ice extension (perhaps something is
wrong in this)
https://raw.github.com/remicollet/remirepo/5bffe46723937624ae26dc944b8afce4f25b4fa2/ice/ice-3.4.2-php54.patch

---

## #57145 — Pierre Joye — 2011-12-29T11:15:53+00:00

URL: https://externals.io/message/57144#57145 · In reply to: #57144

hi Remi,

Does it happen only with the ice extension?

If yes I would suggest to contact the authors, which are in no way
involved in php.net for this extension.

Sadly the bt does not help much to identify the source of the problem,
it can be many things.

Cheers,


> Hi,
>
> I'm working on PHP 5.4 as a fedora 17 feature.
> https://fedoraproject.org/wiki/Features/Php54
>
> Mainly, I test all available extension (~40) compatibility and try to
> fix, when needed, and report bug upstream. (mostly done)
>
> But I encounter a segfault with ice-php.
>
> (gdb) bt
> #0  _zend_mm_free_int (heap=0xdf02d0, p=0xdf09e0) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_alloc.c:2100
> #1  0x00000000005e44d9 in zend_objects_free_object_storage
> (object=0x7ffff7fb9110) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_objects.c:137
> #2  0x00000000005ea36f in zend_objects_store_del_ref_by_handle_ex
> (handle=8, handlers=<optimized out>)
>    at /usr/src/debug/php5.4-201112261030/Zend/zend_objects_API.c:220
> #3  0x00000000005ea393 in zend_objects_store_del_ref
> (zobject=0x7ffff7fb90e0) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_objects_API.c:172
> #4  0x00000000005b3e9a in _zval_dtor (zvalue=<optimized out>) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_variables.h:35
> #5  _zval_ptr_dtor (zval_ptr=0x7ffff7fb91b8) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:438
> #6  _zval_ptr_dtor (zval_ptr=0x7ffff7fb91b8) at
> /usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:427
> #7  0x00000000005cf131 in zend_hash_apply_deleter (ht=0xa008e8,
> p=0x7ffff7fb91a0) at /usr/src/debug/php5.4-201112261030/Zend/zend_hash.c:650
> #8  0x00000000005d0c71 in zend_hash_reverse_apply (ht=0xa008e8,
> apply_func=0x5b3d00 <zval_call_destructor>)
>    at /usr/src/debug/php5.4-201112261030/Zend/zend_hash.c:804
> #9  0x00000000005b41b1 in shutdown_destructors () at
> /usr/src/debug/php5.4-201112261030/Zend/zend_execute_API.c:217
> #10 0x00000000005c2ce7 in zend_call_destructors () at
> /usr/src/debug/php5.4-201112261030/Zend/zend.c:918
> #11 0x00000000005631b5 in php_request_shutdown (dummy=<optimized out>)
> at /usr/src/debug/php5.4-201112261030/main/main.c:1723
> #12 0x000000000066b824 in do_cli (argc=3, argv=0x7fffffffe098) at
> /usr/src/debug/php5.4-201112261030/sapi/cli/php_cli.c:1169
> #13 0x0000000000425afe in main (argc=3, argv=0x7fffffffe098) at
> /usr/src/debug/php5.4-201112261030/sapi/cli/php_cli.c:1356
>
>
> Any help on "where to search" will be appreciated...
>
> Remi.
>
>
> P.S. here is the patch used to build ice extension (perhaps something is
> wrong in this)
> https://raw.github.com/remicollet/remirepo/5bffe46723937624ae26dc944b8afce4f25b4fa2/ice/ice-3.4.2-php54.patch
>
> --
> 
> 
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #57146 — Remi Collet — 2011-12-29T11:24:40+00:00

URL: https://externals.io/message/57144#57146 · In reply to: #57145

Le 29/12/2011 12:15, Pierre Joye a écrit :
> Does it happen only with the ice extension?

Yes.

> If yes I would suggest to contact the authors, which are in no way
> involved in php.net for this extension.

Yes, I understand.

Remi.
