[Bug 602689] [NEW] Segmentation fault in libapache2-mod-php5 when calling methods
Kurt Huwig
602689 at bugs.launchpad.net
Wed Jul 7 13:12:28 BST 2010
Public bug reported:
Binary package hint: php5
I have these 2 php files:
----- 8< ---- parta.php
<?php
require_once('partb.php');
$fieldlist[0]='A';
$fieldlist[1]='B';
while (list($x, $fieldbez) = each($fieldlist)) {
$a = myfunc('a',$$fieldbez);
}
?>
----- 8< ----
----- 8< ---- partb.php
<?php
function myfunc() {
return 'huhu';
}
?>
----- 8< ----
When calling this, I get
[Wed Jul 07 13:58:07 2010] [notice] child pid 8589 exit signal
Segmentation fault (11)
I reduced the code to the bare minimum. Having the function in the same
php file works fine, as well as having just one entry in the array or
one parameter to the function call.
With slightly different code, I got
[Wed Jul 07 13:06:38 2010] [notice] child pid 2362 exit signal Bus error
(7)
I created a core dump and this is the backtrace (2MB packed, available
upon request).
#0 0x00007f8fc2810343 in ?? () from /usr/lib/apache2/modules/libphp5.so
#1 0x00007f8fc27ef93d in _zval_dtor_func () from /usr/lib/apache2/modules/libphp5.so
#2 0x00007f8fc27e39bd in _zval_ptr_dtor () from /usr/lib/apache2/modules/libphp5.so
#3 0x00007f8fc27fc642 in ?? () from /usr/lib/apache2/modules/libphp5.so
#4 0x00007f8fc27fc8c8 in zend_hash_graceful_reverse_destroy () from /usr/lib/apache2/modules/libphp5.so
#5 0x00007f8fc27e3f6e in ?? () from /usr/lib/apache2/modules/libphp5.so
#6 0x00007f8fc27f06d2 in ?? () from /usr/lib/apache2/modules/libphp5.so
#7 0x00007f8fc279c385 in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so
#8 0x00007f8fc287cdc7 in ?? () from /usr/lib/apache2/modules/libphp5.so
#9 0x00007f8fc6640140 in ap_run_handler (r=0x7f8fc7c27098) at /build/buildd/apache2-2.2.14/server/config.c:159
#10 0x00007f8fc6643aa8 in ap_invoke_handler (r=0x7f8fc7c27098) at /build/buildd/apache2-2.2.14/server/config.c:373
#11 0x00007f8fc665149c 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
#12 0x00007f8fbfe38c95 in ?? () from /usr/lib/apache2/modules/mod_rewrite.so
#13 0x00007f8fc6640140 in ap_run_handler (r=0x7f8fc7c1dcb8) at /build/buildd/apache2-2.2.14/server/config.c:159
#14 0x00007f8fc6643aa8 in ap_invoke_handler (r=0x7f8fc7c1dcb8) at /build/buildd/apache2-2.2.14/server/config.c:373
#15 0x00007f8fc6651678 in ap_process_request (r=0x7f8fc7c1dcb8) at /build/buildd/apache2-2.2.14/modules/http/http_request.c:282
#16 0x00007f8fc664e528 in ap_process_http_connection (c=0x7f8fc7c17bd8) at /build/buildd/apache2-2.2.14/modules/http/http_core.c:190
#17 0x00007f8fc6647cf8 in ap_run_process_connection (c=0x7f8fc7c17bd8) at /build/buildd/apache2-2.2.14/server/connection.c:43
#18 0x00007f8fc6656037 in child_main (child_num_arg=<value optimized out>) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:662
#19 0x00007f8fc665634a in make_child (s=0x7f8fc7831938, slot=41) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:758
#20 0x00007f8fc665667b in startup_children (_pconf=<value optimized out>, plog=<value optimized out>, s=<value optimized out>) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:776
#21 ap_mpm_run (_pconf=<value optimized out>, plog=<value optimized out>, s=<value optimized out>) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:997
#22 0x00007f8fc662c350 in main (argc=3, argv=0x7fff695fc958) at /build/buildd/apache2-2.2.14/server/main.c:742
The system is Ubuntu 10.04 Lucid with all updates installed.
ii apache2 2.2.14-5ubuntu8 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.14-5ubuntu8 Apache HTTP Server - traditional non-threade
ii apache2-utils 2.2.14-5ubuntu8 utility programs for webservers
ii apache2.2-bin 2.2.14-5ubuntu8 Apache HTTP Server common binary files
ii apache2.2-common 2.2.14-5ubuntu8 Apache HTTP Server common files
ii libapache2-mod-php5 5.3.2-1ubuntu4.2 server-side, HTML-embedded scripting languag
ii libapache2-mod-php5 5.3.2-1ubuntu4.2 server-side, HTML-embedded scripting languag
ii php5-common 5.3.2-1ubuntu4.2 Common files for packages built from the php
ii php5-gd 5.3.2-1ubuntu4.2 GD module for php5
ii php5-mcrypt 5.3.2-0ubuntu1 MCrypt module for php5
ii php5-mysql 5.3.2-1ubuntu4.2 MySQL module for php5
ii php5-xcache 1.3.0-5ubuntu1 Fast, stable PHP opcode cacher
When I deinstall xcache, the crash still happens. I tried to reproduce
it on another machine, but without success. It just crashes on one
machine.
** Affects: php5 (Ubuntu)
Importance: Undecided
Status: New
--
Segmentation fault in libapache2-mod-php5 when calling methods
https://bugs.launchpad.net/bugs/602689
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list