bug-wget
[Top][All Lists]
Advanced

[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

URL:
  <http://savannah.gnu.org/bugs/?47882>

                 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

    _______________________________________________________

Details:

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

wget '202.38.70.145:555/中文中文中文中文'

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:
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=9933da2b9fdeddfc94859192438071bab7e467b2

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 '202.38.70.145:555/中文中文中文中文'
--2016-05-09 21:48:46-- 
http://202.38.70.145:555/%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87%E4%B8%AD%E6%96%87
正在连接 202.38.70.145:555... 已连接。
已发出 HTTP 请求,正在等待回应... 200 没有 HTTP 头,假定为
HTTP/0.9
长度:未指定
正在保存至: “中\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:

  <http://savannah.gnu.org/bugs/?47882>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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