Bug #51977 [NEW]: thttpd segfault on X86_64?
| From: | znfwhy at 163 dot com | Date: | Wed, 02 Jun 2010 15:18:35 +0000 |
| Subject: | Bug #51977 [NEW]: thttpd segfault on X86_64? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151021@lists.php.net to get a copy of this message | ||
From:
Operating system: Debian Squeeze
PHP version: 5.2.13
Package: Other web server
Bug Type: Bug
Bug description:thttpd segfault on X86_64?
Description:
------------
HTTP POST with 16KB more content will cause thttpd segfault on X86_64.
here is the back trace result:
...
Program received signal SIGSEGV, Segmentation fault.
0x0000003d7d278d80 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x0000003d7d278d80 in strlen () from /lib/libc.so.6
#1 0x0000003d7d278ab6 in strdup () from /lib/libc.so.6
#2 0x0000000000432cf0 in thttpd_php_request ()
#3 0x000000000042d7bb in httpd_start_request ()
#4 0x0000000000423a84 in _start ()
Test script:
---------------
<html>
<head>
PHP5 test page
</head>
<body>
<div id=main style="width: 130px; height: 130px;">
<form method="POST" enctype="text/html"
action="/test.php">
<textarea name=test>
</textarea>
<input type="submit" value="submit">
</form>
</div>
</body>
</html>
Expected result:
----------------
info of PHP5 printed by test.php.
Actual result:
--------------
nothing, but thttpd exit with segfault.
--
Edit bug report at http://bugs.php.net/bug.php?id=51977&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51977&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51977&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=51977&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=51977&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51977&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51977&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51977&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51977&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51977&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51977&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51977&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51977&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51977&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51977&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51977&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51977&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51977&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51977&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51977&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51977&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51977&r=mysqlcfg