wget crashed with SIGSEGV in __memset_avx2()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wget (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Brian Murray |
Bug Description
[Impact]
* wget will crash while displaying progress bar under narrow terminal
* Upstream already has fixed this issue in commit 7099f489 and 7cb9efa6
Steps to reproduce:
1. execute "wget http://
Problems:
1. The wget crash with segmentation fault
Expected behavior:
1. wget will not crash
[Test Case]
After upgrading to the new version, the repeating the above steps should give expected behavior.
[Regression Potential]
Potential of causing regression is relatively small for a two line change for assertion check
[Other Info]
EDIT(other user): The crash actually happens when the terminal window is too small.
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://
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://
100 /var/lib/
ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: wget 1.17.1-1ubuntu1
ProcVersionSign
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://
SegvAnalysis:
Segfault happened at: 0x7f4eac3b7328 <__memset_
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/
?? ()
?? ()
?? ()
?? ()
Title: wget crashed with SIGSEGV in __memset_avx2()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
Changed in wget (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in wget (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
StacktraceTop: x86_64/ multiarch/ memset- avx2.S: 161 184467440737095 51615, __ch=32, __dest= 0x562969119a30) at /usr/include/ x86_64- linux-gnu/ bits/string3. h:90 entry=0x5629691 1c450, dl_total_ time=4. 332090573000000 3, done=done@ entry=false) at ../../src/ progress. c:1167 0x56296911c450) at ../../src/ progress. c:658 filename= <optimized out>, fd=fd@entry=4, out=out@ entry=0x5629691 1a0f0, toread=1485881344, startpos=<optimized out>, qtyread= qtyread@ entry=0x7ffed29 93620, qtywritten= 0x7ffed29935d0, elapsed= 0x7ffed2993628, flags=1, out2=0x0) at ../../src/ retr.c: 417
__memset_avx2 () at ../sysdeps/
memset (__len=
create_image (bp=bp@
bar_draw (progress=
fd_read_body (downloaded_