Home » PEAR » PEAR » Bug #1463
Got a core dump w/ pear package command when Zend Optimizer 2.5 is enabled
Details
| Submitted | 2004-05-21 19:27 UTC |
|---|---|
| From | saramaca at libertysurf dot fr |
| Status | Bogus |
| Package | PEAR |
| PHP Version | 4.3.4 |
| OS | FreeBSD 4.4 |
| Roadmaps | (Not assigned) |
Comments
[2004-05-21 19:27 UTC] saramaca at libertysurf dot fr
Description:
------------
Got a core dump while issuing the `pear package`command.
I figured out this was problem with the Zend Optimizer 2.5
that is installed on my FreeBSD server. Disabling the
php.ini temporarily[*], I'm able to package the release
tarball as expected.
[*] %php -n -C -q -d include_path=/usr/local/www/lib/php -d
output_buffering=1 /usr/local/www/lib/php/pearcmd.php
package
PS: is it possible to release a tarball made of
Zend-encoded PHP source files? The files I tried to package
are unencoded though.
Reproduce code:
---------------
%pear package
Expected result:
----------------
Analyzing NLS.php
Analyzing NLS/common.php
Analyzing NLS/Message.php
Analyzing NLS/Literal.php
Analyzing NLS/Pattern.php
Analyzing NLS/Sub.php
Package /tmp/Diptyque/NLS-1.4.tgz done
Actual result:
--------------
% pear package
Analyzing NLS.php
Analyzing NLS/common.php
Analyzing NLS/Message.php
Analyzing NLS/Literal.php
Analyzing NLS/Pattern.php
Analyzing NLS/Sub.php
Segmentation fault (core dumped)
% gdb php -c php.core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from
/usr/local/lib/libc-client4.so.8...done.
Reading symbols from
/usr/local/lib/mysql/libmysqlclient.so.10...done.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/local/lib/libgd.so.2...done.
Reading symbols from
/usr/local/lib/libfreetype.so.7...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from /usr/lib/libz.so...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/lib/libbz2.so.1...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/local/lib/libcurl.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/lib/libssl.so.2...done.
Reading symbols from /usr/lib/libcrypto.so.2...done.
Reading symbols from
/usr/local/Zend/lib/ZendExtensionManager.so...done.
Reading symbols from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x8104785 in zif_rename (ht=2, return_value=0x88037cc,
this_ptr=0x0, return_value_used=0)
at /usr/local/src/php-4.3.4/ext/standard/file.c:1884
1884 convert_to_string_ex(old_arg);
(gdb) bt
#0 0x8104785 in zif_rename (ht=2, return_value=0x88037cc,
this_ptr=0x0, return_value_used=0)
at /usr/local/src/php-4.3.4/ext/standard/file.c:1884
#1 0x2875a9de in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#2 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#3 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#4 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#5 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#6 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#7 0x2875ab58 in zend_assign_to_variable_reference () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#8 0x28763eaa in zend_oe () from
/usr/local/Zend/lib/Optimizer-2.5.0/php-4.3.x/ZendOptimizer
.so
#9 0x815cd75 in php_execute_script
(primary_file=0xbfbffa5c) at
/usr/local/src/php-4.3.4/main/main.c:1729
#10 0x819fcb6 in main (argc=9, argv=0xbfbffac4) at
/usr/local/src/php-4.3.4/sapi/cli/php_cli.c:819
#11 0x8084c4d in _start ()
[2004-05-21 22:01 UTC] pierre at dotgeek dot org
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PEAR.
Hello,
Report this problem to Zend. If it works without the Zend plugin we cannot do anything.
--Pierre
[2004-05-24 10:16 UTC] saramaca at libertysurf dot fr
How to contact Zend regarding this issue? There is no
support ticketing system available for reporting troubles
with the Zend Optimizer such as the one I'm experiencing.
[2004-05-24 10:37 UTC] pierre at dotgeek dot org
Hello,
Post it in a ramdom critical section or mail them ;-)
Anyway, here we cannot help you more on this topic.
--Pierre