bugGNU Wget - Bugs: bug #40656, wget crashes with unicode...


bug #40656: wget crashes with unicode characters while downloading a whole website

Submitted by:  None
Submitted on:  Thu 21 Nov 2013 11:31:24 AM UTC  
Category: Crash/Freeze/InfloopSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: JoOriginator Email: -unavailable-
Open/Closed: OpenRelease: trunk
Operating System: GNU/LinuxReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment(Rich Markup)

You are not logged in

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


Thu 01 Jan 2015 07:16:30 PM UTC, comment #1:

Does the problem still exists with Wget 1.16.1 ?
Can't reproduce it here.

Tim Ruehsen <rockdaboot>
Project Administrator
Thu 21 Nov 2013 11:31:24 AM UTC, original submission:

I was downloading a website, after a while wget crashed when it found an unicode character in an invalid url and the server responded 404.

The last file url was similar to:

I created an empty file named aaaßaaa.html and downloaded it from my local server.

[user@localhost ~]$ wget localhost/aaaßaaa.html
--2013-11-21 05:04:53-- http://localhost/aaa%C3%9Faaa.html
Resolving localhost (localhost)... ::1, ::1,, ...
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: ‘aaa\303%9Faaa.html’

The Content-Type header is "text/html; charset=UTF-8"
The file was saved as "aaa�%9Faaa.html (invalid encoding)"
The test didn't reproduce the error, but probably is related.

Command to download website:
wget -U '' -kr http://www.example.com/ -D 'www.example.com' -nc --html-extension --convert-links --page-requisites -H

Error in `wget': double free or corruption (!prev): 0x0000000001d939b0

GNU Wget 1.14 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl

/etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib
-D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4
Link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
-Wl,-O1,--sort-common,--as-needed,-z,relro /usr/lib/libssl.so
/usr/lib/libcrypto.so /usr/lib/libz.so -ldl -lz -lz -lidn -luuid
-lpcre ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a

uname -a
Linux localhost.localdomain 3.12.0-1-ARCH #1 SMP PREEMPT Wed Nov 6 09:06:27 CET 2013 x86_64 GNU/Linux



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

Attach File(s):

Attached Files
file #29683:  dump added by None (7KiB - application/octet-stream - Attached dump)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rockdaboot (Posted a comment)
  • -unavailable- added by None (Submitted the item)

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



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Nov 2013 11:31:24 AM UTCNoneAttached File-=>Added dump, #29683

    Back to the top

    Powered by Savane 3.1-cleanup1