|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
1 + 41 = ?
Subscribe to this entry?

 [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'


Add a Patch

Pull Requests

Add a Pull Request


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

 [2002-05-06 14:13 UTC]
Even better is to try the latest RC from

 [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..

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 25 01:03:35 2021 UTC