#28528 [Opn->Fbk]: glob() causes apache to segfault
ID: 28528
Updated by: wez@php.net
Reported By: liamr at umich dot edu
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: linux 2.4.24
PHP Version: 4.3.6
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
please build a debug build and submit a new backtrace.
Previous Comments:
------------------------------------------------------------------------
[2004-05-26 16:23:03] liamr at umich dot edu
Description:
------------
glob() causes apache to segfault consistantly..
LFS (linux from scratch) install based on 2.4.24
php 4.3.6
apache 1.3.31
gcc 3.3.1
libc 2.3.2
Reproduce code:
---------------
<?php
$files = glob( '*' );
print_r( $files );
?>
Expected result:
----------------
When I run this code on solaris, I get output like..
Array
(
[0] => replacements.html
[1] => add.php
[2] => file.php
[3] => docs
[4] => gd.php
[5] => glob.php
)
Actual result:
--------------
It dumps core everytime.
(gdb) bt
#0 0x429def6c in zif_glob () from /usr/libexec/libphp4.so
#1 0x42a96093 in execute () from /usr/libexec/libphp4.so
#2 0x42a857b1 in zend_execute_scripts () from /usr/libexec/libphp4.so
#3 0x42a51b19 in php_execute_script () from /usr/libexec/libphp4.so
#4 0x42a9ae61 in apache_php_module_main () from
/usr/libexec/libphp4.so
#5 0x42a9be27 in send_php () from /usr/libexec/libphp4.so
#6 0x42a9beac in send_parsed_php () from /usr/libexec/libphp4.so
#7 0x0808b1a6 in ap_invoke_handler ()
#8 0x080a1b53 in process_request_internal ()
#9 0x080a1bb0 in ap_process_request ()
#10 0x08098407 in child_main ()
#11 0x080986b6 in make_child ()
#12 0x0809875f in startup_children ()
#13 0x08098e74 in standalone_main ()
#14 0x0809973a in main ()
#15 0x401a08be in __libc_start_main (main=0x809939f <main>, argc=3,
ubp_av=0xbfffeab4, init=0x80d2700 <__libc_csu_init>,
fini=0x80d2730 <__libc_csu_fini>, rtld_fini=0x40015060
<_rtld_local>,
stack_end=0x0) at ../sysdeps/generic/libc-start.c:152
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28528&edit=1
Thread (6 messages)