I've downloaded the source package and debugged it... this seems related to a 
bug that is being discussed on the wget
mailing list at the following url: 
http://lists.gnu.org/archive/html/bug-wget/2016-02/msg00033.html

They say this happens with a small terminal window... but on me it happens no 
matter how big the terminal is...
i've tried to run wget with "quiet" mode and also chanding the progress from 
"bar" to "dot" and it works ...
anyways this is the backtrace done with gdb and you can see the padding is 
negative. Hope it helps :-)

evan@HPPC:~/Scaricati/wget-1.17.1/src$ gdb --args ./wget 
http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./wget...done.

(gdb) run
Starting program: /home/evan/Scaricati/wget-1.17.1/src/wget 
http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
--2016-04-22 02:31:01--  
http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
Risoluzione di releases.ubuntu.com... 91.189.92.163, 2001:6b0:e:2018::1337
Connessione a releases.ubuntu.com|91.189.92.163|:80... connesso.
Richiesta HTTP inviata, in attesa di risposta... 302 Found
Posizione: http://d3f216qdpm0le3.cloudfront.net/ubuntu-16.04-desktop-amd64.iso 
[segue]
--2016-04-22 02:31:01--  
http://d3f216qdpm0le3.cloudfront.net/ubuntu-16.04-desktop-amd64.iso
Risoluzione di d3f216qdpm0le3.cloudfront.net... 54.192.25.79, 54.192.25.232, 
54.192.25.72, ...
Connessione a d3f216qdpm0le3.cloudfront.net|54.192.25.79|:80... connesso.
Richiesta HTTP inviata, in attesa di risposta... 200 OK
Lunghezza: 1485881344 (1,4G) [application/x-iso9660-image]
Salvataggio in: "ubuntu-16.04-desktop-amd64.iso.1"

ubuntu-16.04-desktop-amd64.iso.1             0%[                                
                                                      ]   2,74M   996KB/s       
        
Program received signal SIGSEGV, Segmentation fault.
__memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
161     ../sysdeps/x86_64/multiarch/memset-avx2.S: File o directory non 
esistente.

(gdb) backtrace 
#0  __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
#1  0x0000000000431ac2 in create_image (bp=0x690220, 
dl_total_time=3,0172397000000002, done=false) at progress.c:1167
#2  0x0000000000430950 in bar_draw (progress=0x690220) at progress.c:658
#3  0x000000000042fd62 in progress_update (progress=0x690220, howmuch=1440, 
dltime=3,0172397000000002) at progress.c:188
#4  0x0000000000435689 in fd_read_body (downloaded_filename=0x688040 
"ubuntu-16.04-desktop-amd64.iso.1", fd=4, out=0x68dfb0, toread=1485881344, 
startpos=0, 
    qtyread=0x7fffffffd940, qtywritten=0x7fffffffd8f0, elapsed=0x7fffffffd948, 
flags=1, out2=0x0) at retr.c:417
#5  0x0000000000421761 in read_response_body (hs=0x7fffffffd8f0, sock=4, 
fp=0x68dfb0, contlen=1485881344, contrange=0, chunked_transfer_encoding=false, 
    url=0x68d630 
"http://d3f216qdpm0le3.cloudfront.net/ubuntu-16.04-desktop-amd64.iso";, 
warc_timestamp_str=0x7fffffffd5d0 "]", warc_request_uuid=0x7fffffffd5f0 "Y", 
    warc_ip=0x0, type=0x68ce70 "application/x-iso9660-image", statcode=200, 
    head=0x68cb80 "HTTP/1.1 200 OK\r\nContent-Type: 
application/x-iso9660-image\r\nContent-Length: 1485881344\r\nConnection: 
keep-alive\r\nDate: Thu, 21 Apr 2016 13:53:05 GMT\r\nCache-Control: 
public,max-age=259200\r\nLast-Modified"...) at http.c:1682
#6  0x0000000000425c39 in gethttp (u=0x687fd0, hs=0x7fffffffd8f0, 
dt=0x7fffffffdcc8, proxy=0x0, iri=0x6863c0 <dummy_iri>, count=1) at http.c:3753
#7  0x0000000000426378 in http_loop (u=0x687fd0, original_url=0x687c80, 
newloc=0x7fffffffdbb8, local_file=0x7fffffffdbc0, referer=0x0, 
dt=0x7fffffffdcc8, proxy=0x0, 
    iri=0x6863c0 <dummy_iri>) at http.c:3971
#8  0x000000000043608b in retrieve_url (orig_parsed=0x687c80, origurl=0x6885e0 
"http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso";, 
file=0x7fffffffdcf8, 
    newloc=0x7fffffffdd00, refurl=0x0, dt=0x7fffffffdcc8, recursive=false, 
iri=0x6863c0 <dummy_iri>, register_status=true) at retr.c:817
#9  0x000000000042ecd6 in main (argc=2, argv=0x7fffffffdf28) at main.c:1868

(gdb) frame 1
#1  0x0000000000431ac2 in create_image (bp=0x690220, 
dl_total_time=3,0172397000000002, done=false) at progress.c:1167
1167      memset (p, ' ', padding);

(gdb) print p
$1 = 0x690499 ' ' <repeats 200 times>...

(gdb) print padding
$2 = -1

(gdb)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to wget in Ubuntu.
https://bugs.launchpad.net/bugs/1573307

Title:
  wget crashed with SIGSEGV in __memset_avx2()

Status in wget package in Ubuntu:
  New

Bug description:
  When I try to download a big file with wget on Ubuntu 16.04 it crashes
  after a couple seconds.

  To reproduce the bug try the following:

  wget http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso

  I've asked another guy on IRC on channel #ubuntu-it to try and reproduce this 
bug
  and he said it was crashing also on his machine.

  evan@HPPC:~$ lsb_release -rd
  Description:  Ubuntu 16.04 LTS
  Release:      16.04

  evan@HPPC:~$ apt-cache policy wget
  wget:
    Installato: 1.17.1-1ubuntu1
    Candidato:  1.17.1-1ubuntu1
    Tabella versione:
   *** 1.17.1-1ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Crash
  DistroRelease: Ubuntu 16.04
  Package: wget 1.17.1-1ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Apr 22 01:34:10 2016
  ExecutablePath: /usr/bin/wget
  InstallationDate: Installed on 2016-04-21 (0 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcCmdline: wget 
http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
  SegvAnalysis:
   Segfault happened at: 0x7f4eac3b7328 <__memset_avx2+392>:    rep stos 
%al,%es:(%rdi)
   PC (0x7f4eac3b7328) ok
   source "%al" ok
   destination "%es:(%rdi)" (0x562969134000) not located in a known VMA region 
(needed writable region)!
  SegvReason: writing unknown VMA
  Signal: 11
  SourcePackage: wget
  StacktraceTop:
   __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
   ?? ()
   ?? ()
   ?? ()
   ?? ()
  Title: wget crashed with SIGSEGV in __memset_avx2()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wget/+bug/1573307/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to