On Thu, Jan 02, 2025 at 01:42:38AM -0700, Liam Stitt wrote:
> Package: dselect
> Version: 1.22.12
> Severity: grave
> Justification: renders package unusable
> X-Debbugs-Cc: sti...@cuug.ab.ca
> 
> Hi. dselect has decided to crash based on whatever changed the last time
> I upgraded my system an hour or two ago.
> 
> Steps to reproduce:
> 1) start dselect from command line (as root or regular user)
> 2) choose option 2, select
> 3) usual installed-package list appears
> 4) type / to search
> 5) bus error
> 
> If you need more information to chase this down, I'm glad to help.

Seeing the bug scroll by I got curious so I reproduced this, but I
get a segmentation fault, not a bus error:

# gdb --args dselect
[...]
(gdb) run
[...]
(gdb) bt full
#0  0x00007ffff7e3fe53 in __GI___regexec (preg=0x5555558afd48, 
string=0x5555559235e0 "sensible-utils", nmatch=0, pmatch=0x0, eflags=0) at 
./posix/regexec.c:214
        __futex = 0xd8
        err = <optimized out>
        start = 0
        length = 14
        dfa = <optimized out>
#1  0x0000555555566301 in packagelist::matchsearch (this=0x5555558afb20, 
index=4) at ../../dselect/pkglist.cc:563
        name = <optimized out>
#2  0x000055555555f701 in baselist::dosearch (this=0x5555558afb20) at 
../../dselect/baselist.cc:316
        offset = 4
        index = 4
#3  0x000055555555e02a in baselist::kd_searchagain (this=0x5555558afb20) at 
../../dselect/basecmds.cc:92
No locals.
#4  baselist::kd_search (this=0x5555558afb20) at ../../dselect/basecmds.cc:142
        newsearchstring = {used = 0, size = 0, buf = 0x0}
#5  0x000055555556822b in packagelist::display (this=this@entry=0x5555558afb20) 
at ../../dselect/pkglist.cc:611
        response = 47
        index = <optimized out>
        interp = 0x555555592f50 <packagelist_kinterps+1296>
#6  0x0000555555560d10 in urq_list () at ../../dselect/main.cc:371
        l = 0x5555558afb20
#7  0x00005555555610f6 in urq_menu () at ../../dselect/main.cc:478
        res = <optimized out>
        entries = 7
        c = 13
        cursor = 2
        __func__ = "urq_menu"
#8  0x000055555555db7e in main (argv=<optimized out>) at 
../../dselect/main.cc:559

Bug title probably ought to mention that it's the search that's failing,
but I'll leave it up to dselect maintainers.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Reply via email to