From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.4-STABLE
PHP version:      4.2.0
PHP Bug Type:     Reproducible crash
Bug description:  mkdir causes segfault

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'

-- 
Edit bug report at http://bugs.php.net/?id=17034&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17034&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17034&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17034&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17034&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17034&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17034&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17034&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17034&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17034&r=globals

Reply via email to