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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 17 23:03:33 2021 UTC