Edit report at https://bugs.php.net/bug.php?id=64089&edit=1
ID: 64089
User updated by: bas at bushbaby dot nl
Reported by: bas at bushbaby dot nl
Summary: Posting multipart/form-data forms results in
Segmentation fault
-Status: Feedback
+Status: Open
Type: Bug
Package: Reproducible crash
Operating System: OSX 10.8.2
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
Hmm, after I compiled with debug enabled, restarted apache and accessed this
script, the crash did not occur. Once I enabled the non debug version (and
restarted apache) it still did not occur (?). I don't know what is going on (I
did
not restart my computer overnight), but it seems for now I can submit multipart
forms... I'll keep an eye on it and when it happens again I'll try to submit a
backtrace.
Previous Comments:
------------------------------------------------------------------------
[2013-01-29 03:19:06] [email protected]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2013-01-28 23:23:14] bas at bushbaby dot nl
Rattletrap:~ bas$ diff /opt/local/etc/php54/php.ini
/opt/local/etc/php54/php.ini-development
405c405
< memory_limit = 256M
---
> memory_limit = 128M
672c672
< post_max_size = 50M
---
> post_max_size = 8M
705c705
< include_path = ".:/opt/local/lib/php54/share/pear"
---
> ;include_path = ".:/php/includes"
800c800
< upload_max_filesize = 50M
---
> upload_max_filesize = 2M
919c919
< date.timezone = Europe/Amsterdam
---
> ;date.timezone =
1582c1582
< session.upload_progress.enabled = On
---
> ;session.upload_progress.enabled = On
1613c1613
< session.upload_progress.freq = "1%"
---
> ;session.upload_progress.freq = "1%"
1620c1620
< session.upload_progress.min_freq = "1"
---
> ;session.upload_progress.min_freq = "1"
1862,1869d1861
------------------------------------------------------------------------
[2013-01-28 23:21:00] bas at bushbaby dot nl
oh, I check it is PHP that crashes, by changing the extention and action to
html.
Then it works.
------------------------------------------------------------------------
[2013-01-28 23:19:01] bas at bushbaby dot nl
Description:
------------
'./configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--
infodir=/opt/local/share/info' '--program-suffix=54' '--
includedir=/opt/local/include/php54' '--libdir=/opt/local/lib/php54' '--with-
config-file-path=/opt/local/etc/php54' '--with-config-file-scan-
dir=/opt/local/var/db/php54' '--disable-all' '--enable-bcmath' '--enable-ctype'
'-
-enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-hash'
'--enable-json'
'--enable-libxml' '--enable-pdo' '--enable-phar' '--enable-session' '--enable-
simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-
xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-pcre-
regex=/opt/local' '--with-libxml-dir=/opt/local' '--with-zlib=/opt/local' '--
without-pear' '--disable-cgi' '--disable-cli' '--disable-fpm' '--with-
apxs2=/opt/local/apache2/bin/apxs'
Test script:
---------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>this form crashes php</p>
<form enctype="multipart/form-data" method="post" action="bug.php">
<input type="submit" value="submit" />
</form>
<hr />
<p>this form won't</p>
<form method="post" action="bug.php">
<input type="submit" value="submit" />
</form>
</body>
</html>
Expected result:
----------------
see the form again
Actual result:
--------------
black screen, apache log shows segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64089&edit=1