Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#7904 closed defect (fixed)

Tight loop in uhttpd

Reported by: jeromepoulin@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Backfire 10.03.1 RC2
Keywords: Cc:

Description

I get this problem often, and found the path in uhttpd, uhttpd process is stuck at 95% CPU and web interface is not accessible anymore until I kill and restart the process.
http://pastebin.ca/1936569
For backfire r22824

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by anonymous

Could be related to ticket #7742

comment:2 Changed 7 years ago by jeromepoulin@…

Just found out that rlen = 0 at this moment.

See: http://pastebin.ca/1936656
v0 = 0

comment:3 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed by r22988, testcase below.

comment:4 Changed 7 years ago by jow

#!/usr/bin/perl

use strict;
use IO::Socket::INET;

my $sock = IO::Socket::INET->new(
	PeerAddr => "127.0.0.1",
	PeerPort => 8090,
	Proto    => "tcp"
) or die "Connect error: $@\n";

print $sock "GET / HTTP/1.0\r\n";

# Comment this to make the server hang
#print $sock "\r\n";

shutdown($sock, 1);

while( defined( my $line = readline $sock ) )
{
	print $line;
}

close $sock;

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.