bugGNU Wget - Bugs: bug #40426, wget hangs with -r and -O -

 
 

bug #40426: wget hangs with -r and -O -

Submitted by:  None
Submitted on:  Wed 30 Oct 2013 11:51:48 AM UTC  
 
Category: Crash/Freeze/InfloopSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: AntonioOriginator Email: -unavailable-
Open/Closed: OpenRelease: 1.13.4
Operating System: NoneReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: No

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 14 Mar 2015 05:19:43 PM UTC, comment #1:

I thought this is still a valid bug and wrote my patch. I'm surprised to find Calore's patch in attached files and that patch is finished in Nov 2013!
Anyway, my patch is easier to am.
https://savannah.gnu.or

Lucas Yu <lucasyu>
Wed 30 Oct 2013 11:51:48 AM UTC, original submission:

# wget -r -O - http://www.blankwebsite.com

hangs forever, I can verify it with a strace. If I do this:

while read R
do
wget -r -O - http://www.blankwebsite.com
done < smallfile
with smallfile containing a single line, the command exits in a few seconds.

I tried also with

wget -r -O - localhost/test.html
with an empty test.html file, same results.

Everything runs fine changing -O - with -O myfile or removing -r.

Asked on stackoverflow:
http://stackoverflow.com/questions/19681316/wget-hangs-with-r-and-o

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33344:  Fix-hang-with-r-O-.patch added by lucasyu (764B - application/octet-stream - Fix this by simply forbidding -r -O- combination)
file #29593:  wget-gitpatch-recursivecheck.diff added by None (948B - application/octet-stream - Patch attached that will check the "-r -O FILE" combination and only allow it if FILE is a regular file.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lucasyu (Updated the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Mar 2015 05:07:31 PM UTClucasyuAttached File-=>Added Fix-hang-with-r-O-.patch, #33344
    Mon 11 Nov 2013 04:23:53 PM UTCNoneAttached File-=>Added wget-gitpatch-recursivecheck.diff, #29593

    Back to the top


    Powered by Savane 3.1-cleanup