#36815 [Opn->Fbk]: glob -> Segmentation fault
| From: | tony2001@php.net | Date: | Tue, 21 Mar 2006 15:59:56 +0000 |
| Subject: | #36815 [Opn->Fbk]: glob -> Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94723@lists.php.net to get a copy of this message | ||
ID: 36815
Updated by: tony2001@php.net
Reported By: rd at mesos dot de
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: Linux 2.6.14.5
PHP Version: 5.1.2
New Comment:
Works pretty fine here.
And btw there are 0 differencies between PHP4 glob() and PHP5 glob().
Previous Comments:
------------------------------------------------------------------------
[2006-03-21 16:53:40] rd at mesos dot de
(gdb) bt
#0 0x0826c042 in zif_glob (ht=1, return_value=0x87a6f54,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at
/usr/src/mesos/php-5.1.2/ext/standard/dir.c:424
#1 0x08322674 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfd84220) at
/usr/src/mesos/php-5.1.2/Zend/zend_vm_execute.h:192
#2 0x08321ee9 in execute (op_array=0x87a70a4) at
/usr/src/mesos/php-5.1.2/Zend/zend_vm_execute.h:92
#3 0x08308c7a in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/mesos/php-5.1.2/Zend/zend.c:1101
#4 0x082cf698 in php_execute_script (primary_file=0xbfd865c0) at
/usr/src/mesos/php-5.1.2/main/main.c:1720
#5 0x083725cb in main (argc=2, argv=0xbfd86664) at
/usr/src/mesos/php-5.1.2/sapi/cgi/cgi_main.c:1568
#6 0x407e2522 in __libc_start_main () from /lib/libc.so.6
(gdb)
------------------------------------------------------------------------
[2006-03-21 16:33:25] derick@php.net
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
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
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.
------------------------------------------------------------------------
[2006-03-21 16:32:04] rd at mesos dot de
Description:
------------
glob returns segmentation fault, even with the example from php.net.
PHP4 on the same server is working without problem.
Reproduce code:
---------------
<?php
echo "Test1\n";
$x=glob('./img/managed/*');
echo "Test2\n";
?>
Expected result:
----------------
something like:
server:~ # php4 glob.php
X-Powered-By: PHP/4.4.2
Content-type: text/html
Test1
Test2
Actual result:
--------------
server:~ # php5 glob.php
X-Powered-By: PHP/5.1.2
Content-type: text/html
Test1
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36815&edit=1