bugGNU Wget - Bugs: bug #48278, wget segfault when resizing the...

 
 

bug #48278: wget segfault when resizing the terminal to a small size

Submitter:  Valère Monseur <valr>
Submitted:  Mon 20 Jun 2016 07:18:06 PM UTC
   
 
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Valère Monseur Open/Closed:  Closed
Release:  1.18 Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Jun 2016 08:28:33 PM UTC, comment #3: 

Well, you are right, I'm running 1.17 and not 1.18.
I've upgraded to 1.18 and indeed the problem is fixed.
Sorry for that.

Valère Monseur <valr>
Tue 21 Jun 2016 07:48:57 AM UTC, comment #2: 

I am unable to reproduce your issue on Arch Linux either. This issue existed in the previous version but was fixed.

I just tested on Arch using Konsole and xterm both and it works just fine. The only time you should see an error is if Wget was configured with the --enable-assert flag, which as the PKGBUILD shows it was not.

Are you using the standard repo package or compiling it locally using ABS? I tried the wget 1.18 package in [testing] and it works fine.

Are you sure you're using 1.18 and not the old 1.17 version?

Darshit Shah <darnir>
Group administrator
Tue 21 Jun 2016 07:25:14 AM UTC, comment #1: 

Sorry, not reproducable on Debian Sid (1.18, konsole or xterm).

The packaging recipe does not say anything about compiler, cflags nor existing environment which might influence building.

Please give us the output of wget --version.

If you could compile wget with -g and start it with valgrind, that would be perfect.
Basically:
- CFLAGS=-g ./configure {... your configure options}
- make
- valgrind src/wget {URL}

If wget crashes, valgrind would spill out a backtrace including file names and line numbers. That is what we need.

Tim Ruehsen <rockdaboot>
Group administrator
Mon 20 Jun 2016 07:18:06 PM UTC, original submission:  

When wget is downloading a file, a segfault happens when resizing the terminal small enough to only have few columns visible.

Steps to reproduce:

1. download a file with wget:

wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.2.tar.xz

2. resize the terminal with the mouse to only show a few columns
3. a segfault happens

I'm running wget 1.18 in archlinux under xfce.
I've faced the segfault with xterm, urxvt and xfce4-terminal.

uname -a: Linux cartman 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

You can find the way wget has been compiled here:

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/wget

I've attached the output of strace.

Cheers,
V.

Valère Monseur <valr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #37531:  strace.output added by valr (199KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  • -email is unavailable- added by valr (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-08 rockdaboot StatusNone Fixed
        Open/ClosedOpen Closed
    2016-06-20 valr Attached File- Added strace.output, #37531

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code