php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17034 mkdir causes segfault
Submitted: 2002-05-06 05:11 UTC Modified: 2002-05-06 14:13 UTC
From: david at acz dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.2.0 OS: FreeBSD 4.4-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at acz dot org
New email:
PHP Version: OS:

 

 [2002-05-06 05:11 UTC] david at acz dot org
PHP consistently segfaults on the following line of code:

if (!@mkdir("split", 0750))

This did not happen in 4.1.2.  A GDB backtrace is shown below:

(gdb) bt
#0  0x8178931 in execute (op_array=0x0) at ./zend_execute.c:1602
(gdb) frame 0
#0  0x8178931 in execute (op_array=0x0) at ./zend_execute.c:1602
1602                                                    EX(Ts)[EX(opline)->result.u.var].var.ptr->is_ref = 0;
(gdb) print (char *)(executor_globals.function_state_ptr->function)->common.function_name
$1 = 0x8191de4 "mkdir"

The configure command is shown below:

'./configure' '--with-config-file-path=/usr/local/etc/php.standalone' '--disable-pear' '--enable-discard-path' '--with-readline=/usr' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--enable-debug' '--with-gd=/usr/local' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--with-bz2=/usr' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--with-openssl=/usr' '--with-snmp=/usr/local' '--enable-ucd-snmp-hack' '--with-openssl=/usr' '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt' '--with-xslt-sablot' '--enable-wddx' '--with-dom=/usr/local' '--enable-ftp' '--with-curl=/usr/local' '--with-gettext=/usr/local' '--with-iconv=/usr/local' '--with-pspell=/usr/local' '--enable-mbregex' '--enable-mbstring' '--enable-bcmath' '--with-ming=/usr/local' '--enable-sockets' '--enable-trans-sid' '--with-yaz=/usr/local/bin' '--prefix=/usr/local' 'i386-portbld-freebsd4.4'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-06 13:54 UTC] jimw@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/


 [2002-05-06 14:13 UTC] derick@php.net
Even better is to try the latest RC from www.php.net/~derick

Derick
 [2002-05-08 08:48 UTC] jason at jase dot org
If your using the FreeBSD ports system, you can introduce the patch below quite easily..

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/37825

Jason
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 19:01:28 2025 UTC