Bug #51977 [Opn->Fbk]: thttpd segfault on X86_64?

From: Date: Wed, 02 Jun 2010 15:26:23 +0000
Subject: Bug #51977 [Opn->Fbk]: thttpd segfault on X86_64?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151024@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51977&edit=1

 ID:               51977
 Updated by:       johannes@php.net
 Reported by:      znfwhy at 163 dot com
 Summary:          thttpd segfault on X86_64?
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          Other web server
 Operating System: Debian Squeeze
 PHP Version:      5.2.13

 New Comment:

The thttpd code isn't really maintained since 2005. I looked throught
code but couldn't find the relevant strdup call. Could you please
recompile PHP using --enable-debug and then generate a "bt full", maybe
the issue can be found then.


Previous Comments:
------------------------------------------------------------------------
[2010-06-02 17:18:29] znfwhy at 163 dot com

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 this bug report at http://bugs.php.net/bug.php?id=51977&edit=1


Thread (6 messages)

« previous php.bugs (#151024) next »