[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #47882] progress: wget crashes with narrow terminal

From: Jeff Bai
Subject: [Bug-wget] [bug #47882] progress: wget crashes with narrow terminal
Date: Tue, 10 May 2016 03:50:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0


                 Summary: progress: wget crashes with narrow terminal
                 Project: GNU Wget
            Submitted by: jeffbai
            Submitted on: Tue 10 May 2016 03:50:13 AM GMT
                Category: Crash/Freeze/Infloop
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.17.1
        Operating System: GNU/Linux
         Reproducibility: Intermittent
           Fixed Release: None
         Planned Release: None
              Regression: Yes
           Work Required: None
          Patch Included: No



Just a recent discovery with folks at #archlinux-cn, that wget 1.17.1 would
crash on this command.

wget '中文中文中文中文'

A case of address containing multi-width characters, wget would crash with
SIGSEGV and dumps core. The program crashes on memset() in libc.so. I can
provide a complete backtrace once requested.

A simple git bisect leads us to this commit:

Reverting this commit resolves the issue, just thought that this would help
locating the problematic commit. There is also an issue with output file name
encoding, with the same command above.

jeffbai [ ~ ] $ wget '中文中文中文中文'
--2016-05-09 21:48:46--
正在连接 已连接。
已发出 HTTP 请求,正在等待回应... 200 没有 HTTP 头,假定为
正在保存至: “中\346%96%87中\346%96%87中\346%96%87中\346%96%87”

中�%96%87中�%96%87中�%96%     [ <=>                                  
 ]     113  --.-KB/s  用时 0s  

2016-05-09 21:48:47 (15.8 MB/s) -
“中\346%96%87中\346%96%87中\346%96%87中\346%96%87” 已保存 [113]

As you can see, the file name requested, "中文中文中文中文" is
output'd to a completely different one,
"中\346%96%87中\346%96%87中\346%96%87中\346%96%87". I will open up a
separate bug report for this.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]