BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001539 [BusyBox] Networking Support major always 10-17-07 06:29 02-13-08 00:31
Reporter alexsv View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0001539: httpd causes 99.6% CPU load and hangs in CGI IO loop
Description Simple CGI shell script provided in additional info causes httpd from version 1.7.2 to produse 99.6% CPU load and hangs in CGI IO loop.
When you press submit button, first invoke of `cat` causes script hangup.
The same script works fine with BusyBox 1.1.3.
Arch is Cirrus ARM EP9302.
Build with GCC 3.4.
Additional Information #! /bin/sh
echo 'Content-type: text/html
'
echo '<html><body>'

  if test "$REQUEST_METHOD" = POST -a 0 -lt 0$CONTENT_LENGTH; then

    echo "doing read...
"
    temp_str=`cat`
    echo "read
"
  fi

echo "<form action=\"test.cgi\" method=\"post\" name=\"mainform\">

<input name=\"newlogin\" size=\"20\" maxlength=\"16\" type=\"text\">

<input name=\"newpwd\" size=\"20\" maxlength=\"16\" type=\"password\">

<input value=\"Save..\" class=\"button\" type=\"submit\">\
</form>"
echo '</body></html>'
Attached Files

- Relationships

- Notes
(0002829)
vda
10-17-07 08:31

Indeed, it loops.

Try this, it worked for me:

http://busybox.net/downloads/fixes-1.7.2/busybox-1.7.2-httpd.patch [^]
 
(0002830)
alexsv
10-17-07 13:21

Yes, it works for me too.
Thanks!
 
(0004344)
vda
02-13-08 00:31

Fixed sometime ago in svn before 1.9.0.
 

- Issue History
Date Modified Username Field Change
10-17-07 06:29 alexsv New Issue
10-17-07 06:29 alexsv Status new => assigned
10-17-07 06:29 alexsv Assigned To  => BusyBox
10-17-07 08:31 vda Note Added: 0002829
10-17-07 08:31 vda Status assigned => feedback
10-17-07 13:21 alexsv Note Added: 0002830
02-13-08 00:31 vda Status feedback => closed
02-13-08 00:31 vda Note Added: 0004344
02-13-08 00:31 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker