Bug #16905 Updated: mkdir crashes
| From: | jason at jase dot org | Date: | Thu, 02 May 2002 10:04:49 +0000 |
| Subject: | Bug #16905 Updated: mkdir crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6697@lists.php.net to get a copy of this message | ||
ID: 16905
Updated by: jason@jase.org
Reported By: mav@alkar.net
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.5
PHP Version: 4.2.0
New Comment:
Just to further confuse the issue. If I build the 4.3.0-DEV snaphost
(php4-200205020000) with --enable-debug then it behaves normally.
Jason
Previous Comments:
------------------------------------------------------------------------
[2002-05-02 04:54:10] jason@jase.org
I've just tried a 4.3.0 snapshot using the same test file as
mav@alkar.net posted above.
Operating system is FreeBSD 4.5.
-----------------------------------------------------
php4-200205020000# ./php ~/test.php
X-Powered-By: PHP/4.3.0-dev
Content-type: text/html
<br />
<b>Warning</b>: mkdir() failed (No such file or directory) in
<b>/disk1/home/jase/bigmailbox/test.php</b> on line <b>3</b><br />
Segmentation fault (core dumped)
------------------------------------------------------------------------
[2002-04-29 16:16:53] sniper@php.net
I can not reproduce this with PHP 4.3.0.
Please try latest CVS snapshot from http://snaps.php.net/
------------------------------------------------------------------------
[2002-04-29 10:55:49] mav@alkar.net
Simple test like this makes segmentation fault:
<?
mkdir('1/fv',0777);
echo('!!!!!!!!!!!!!!\n\n');
?>
This error occurs in both Apache DSO module and console version.
PHP configures as:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/conf --with-mysql=
/usr/local/mysql --with-gd=/usr/local --enable-trans-sid
--enable-versioning --enable-inline-optimization --enabl
e-ftp --enable-dbase --enable-gd-native-ttf --with-ttf
--with-freetype-dir=/usr/local
Here is back trace by gdb from core file:
# gdb php /www/www/clients/alkar/hotline/hotline.alkar.net/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/libpam.so.1...done.
Reading symbols from
/usr/local/mysql/lib/mysql/libmysqlclient.so.10...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/libgd.so.2...done.
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x80fed24 in execute (op_array=0x0) at ./zend_execute.c:1602
1602
EX(Ts)[EX(opline)->result.u.var].var.ptr->is_ref = 0;
(gdb) bt
#0 0x80fed24 in execute (op_array=0x0) at ./zend_execute.c:1602
(gdb)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16905&edit=1