[SRU] sngrep in Jammy segfaults in del_panel (fixed upstream)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sngrep (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[ Impact ]
sngrep results in a segfault when the user tries to exit the display screen.
It is not unusable for this issue but the user will not expect an error message about a segmentation fault with a coredump while trying to exit the display.
[ Test Plan ]
* Create an offline pcap file with the command:
printf '\xd4\xc3\
* Use the pcap file with sngrep with the command:
sngrep -I tmp.pcap
* The sngrep panel will be displayed.
* Press Esc key to exit, and then Enter to confirm.
* It will segfault if its not fixed.
* With the fixed package, the sngrep panel will exit without segfault.
[ Where problems could occur ]
This is an upstream fix which reorders the deallocation of the panel window and panel pointer. It does not touch any other part of the code and only fixes the code on the panel destroy path. imho, there is very little chance of regression due to this change.
[ Other Info ]
* The problem has been fixed by upstream on v1.5.0 so only Jammy is affected. Lunar, Mantic and Noble are not affected.
[ Original Bug Description ]
When pressing ESC after going into a trace, I got this:
```
(gdb) bt
#0 0x00007ffff7bf470b in del_panel () from /lib/x86_
#1 0x000055555556ab18 in ui_destroy (ui=0x5555555856a0 <ui_call_flow>) at curses/
#2 ui_default_
#3 0x000055555555fdd6 in ui_wait_for_input () at curses/
#4 main (argc=<optimized out>, argv=0x7fffffff
```
Looks very much like this bug:
https:/
https:/
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
# dpkg -l sngrep | grep ^ii
ii sngrep 1.4.10-1 amd64 Ncurses SIP Messages flow viewer
sngrep 1.5.0 has been released a month ago. I think it would be nice if the Ubuntu version got bumped:
https:/
Cheers,
Walter Doekes
OSSO B.V.
Changed in sngrep (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in sngrep (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Status changed to 'Confirmed' because the bug affects multiple users.