[Bug 1974446] [NEW] [SRU] sngrep in Jammy segfaults in del_panel (fixed upstream)

Launchpad Bug Tracker 1974446 at bugs.launchpad.net
Mon Dec 25 00:12:59 UTC 2023


You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):

[ 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 ]

 * Execute the command "sngrep", which will display the sngrep panel.
 * Pres ESC key to exit the display panel.

[ 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_64-linux-gnu/libpanelw.so.6
#1  0x000055555556ab18 in ui_destroy (ui=0x5555555856a0 <ui_call_flow>) at curses/ui_panel.c:64
#2  ui_default_handle_key (ui=ui at entry=0x5555555856a0 <ui_call_flow>, key=key at entry=27) at curses/ui_manager.c:292
#3  0x000055555555fdd6 in ui_wait_for_input () at curses/ui_manager.c:248
#4  main (argc=<optimized out>, argv=0x7fffffffe5c8) at ./src/main.c:435
```

Looks very much like this bug:

https://github.com/irontec/sngrep/issues/389
https://github.com/irontec/sngrep/commit/7ed9942c859bab13222d86b4d0fdd370c94664a3

# 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://github.com/irontec/sngrep/releases/tag/v1.5.0

Cheers,
Walter Doekes
OSSO B.V.

** Affects: sngrep (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: sngrep (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed


** Tags: jammy
-- 
[SRU] sngrep in Jammy segfaults in del_panel (fixed upstream)
https://bugs.launchpad.net/bugs/1974446
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list