Public bug reported:

If started in a terminal which is too small, it crashes right away.
If started in a bigger terminal which then gets resized, it crashes on resize:

```
ft {0, 947927})
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\0\0\0\0\0\0\0\0\0"..., 8192) 
= 4344
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\00\0\0\0\0\0\0\0\0\0"..., 
4096) = 4096
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\00\0\0\0\0\0\0\0\0\0"..., 248) 
= 248
select(4, [3], NULL, NULL, {0, 950000}) = 1 (in [3ft {0, 949783})
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\0\0\0\0\0\0\0\0\0"..., 8192) 
= 2896
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\00\0\0\0\0\0\0\0\0\0"..., 
2896) = 2896
select(4, [3], NULL, NULL, {0, 950000}) = ? ERESTARTNOHAND (To be restarted if 
no handler)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
rt_sigaction(SIGWINCH, {0x55fd9fdccb50, [WINCH], SA_RESTORER|SA_RESTART, 
0x7fc6eb3844a0}, {0x55fd9fdccb50, [WINCH], SA_RESTORER|SA_RESTART, 
0x7fc6eb3844a0}, 8) = 0
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(4, [3], NULL, NULL, {0, 923204}) = 1 (in [3], left {0, 916417})
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
8192) = 2896
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
2896) = 2896
ioctl(2, TIOCGWINSZ, {ws_row=49, ws_col=50, ws_xpixel=819, ws_ypixel=1542}) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x55fda0a43000} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
```

Here is a little screencast demoing it: http://5pi.de/wget-crash.gif

- Ubuntu 16.04 LTS
- wget 1.17.1-1ubuntu1

** Affects: wget (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1576350

Title:
  wget crashes when terminal becomes too small

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to