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

 
 

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

Submitted by:  Valère Monseur <valr>
Submitted on:  Mon 20 Jun 2016 07:18:06 PM UTC  
 
Category: Crash/Freeze/InfloopSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Valère MonseurOpen/Closed: Closed
Release: 1.18Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by darnir (Posted a comment)
  • -unavailable- added by rockdaboot (Posted a comment)
  • -unavailable- added by valr (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Jul 2016 08:18:08 AM UTCrockdabootStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 20 Jun 2016 07:18:07 PM UTCvalrAttached File-=>Added strace.output, #37531

    Back to the top


    Powered by Savane 3.1-cleanup1