This is easy to reproduce.  Download a file that's big enough to show
the progress meter, but make your console super thin, so that the
progress meter won't have space to render.  Then you'll get a
SEGFAULT.  Here's the backtrace from the coredump:

Core was generated by `wget 
http://ddebs.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.xz'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
161     ../sysdeps/x86_64/multiarch/memset-avx2.S: No such file or directory.
(gdb) bt
#0  __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
#1  0x000055ac0d9cb1c1 in memset (__len=18446744073709551611, __ch=32, 
__dest=0x55ac0de9f6d1)
    at /usr/include/x86_64-linux-gnu/bits/string3.h:90
#2  create_image (bp=bp@entry=0x55ac0de9f4d0, 
dl_total_time=dl_total_time@entry=0, 
    done=done@entry=false) at ../../src/progress.c:1167
#3  0x000055ac0d9cb76e in bar_create (f_download=0x55ac0de981b0 
"Packages.xz.1", 
    initial=<optimized out>, total=<optimized out>) at ../../src/progress.c:602
#4  0x000055ac0d9ce862 in fd_read_body (downloaded_filename=<optimized out>, 
fd=fd@entry=3, 
    out=out@entry=0x55ac0de9d290, toread=664828, startpos=<optimized out>, 
    qtyread=qtyread@entry=0x7ffd5a788ee0, qtywritten=0x7ffd5a788e90, 
elapsed=0x7ffd5a788ee8, flags=1, 
    out2=0x0) at ../../src/retr.c:274
#5  0x000055ac0d9be750 in read_response_body (hs=hs@entry=0x7ffd5a788e90, 
sock=sock@entry=3, 
    fp=fp@entry=0x55ac0de9d290, contlen=contlen@entry=664828, 
contrange=contrange@entry=0, 
    chunked_transfer_encoding=chunked_transfer_encoding@entry=false, 
    url=0x55ac0de97900 
"http://ddebs.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.xz";, 
    warc_timestamp_str=0x7ffd5a788b70 "\377\377\377\377", 
    warc_request_uuid=0x7ffd5a788b90 "@յ\366\331\177", warc_ip=0x0, type=0x0, 
statcode=200, 
    head=0x55ac0de9cf90 "HTTP/1.1 200 OK\r\nDate: Wed, 11 May 2016 16:49:27 
GMT\r\nServer: Apache/2.2.22 (Ubuntu)\r\nLast-Modified: Thu, 21 Apr 2016 
15:16:07 GMT\r\nETag: \"a24fc-53100307fdbc0\"\r\nAccept-Ranges: 
bytes\r\nContent-Length: 6"...) at ../../src/http.c:1682
#6  0x000055ac0d9c3903 in gethttp (u=u@entry=0x55ac0de98b70, 
hs=hs@entry=0x7ffd5a788e90, 
    dt=dt@entry=0x7ffd5a789268, proxy=proxy@entry=0x0, 
iri=iri@entry=0x55ac0de97b70, 
    count=count@entry=1) at ../../src/http.c:3753
#7  0x000055ac0d9c467a in http_loop (u=u@entry=0x55ac0de98b70, 
    original_url=original_url@entry=0x55ac0de98b70, 
newloc=newloc@entry=0x7ffd5a789188, 
    local_file=local_file@entry=0x7ffd5a789190, referer=referer@entry=0x0, 
dt=dt@entry=0x7ffd5a789268, 
    proxy=0x0, iri=0x55ac0de97b70) at ../../src/http.c:3971
#8  0x000055ac0d9cf494 in retrieve_url (orig_parsed=0x55ac0de98b70, 
    origurl=0x55ac0de98540 
"http://ddebs.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.xz";, 
    file=0x7ffd5a789270, newloc=0x7ffd5a789278, refurl=0x0, dt=0x7ffd5a789268, 
recursive=false, 
    iri=0x55ac0de97b70, register_status=true) at ../../src/retr.c:817
#9  0x000055ac0d9aa7c3 in main (argc=<optimized out>, argv=<optimized out>) at 
../../src/main.c:1868


-- 
fREW Schmidt
https://blog.afoolishmanifesto.com

Reply via email to