Package: posh
Version: 0.10.1

Hi,

$ gdb posh
[...]
Reading symbols from /bin/posh...done.
(gdb) run -h
Starting program: /bin/posh -h
/bin/posh: /bin/posh: -h: unknown option

Program received signal SIGSEGV, Segmentation fault.
0x080507e4 in bi_errorf (fmt=0x0) at io.c:59
59              if (*fmt) {
(gdb) bt full
#0  0x080507e4 in bi_errorf (fmt=0x0) at io.c:59
        va = 0xbfffeb08 "\355\357\377\277>>\006\bh"
#1  0x08057f3d in ksh_getopt (argv=0xbfffee34, go=0xbfffeb50, 
options=0x8067b78 "o:acCefilnuvx") at misc.c:759
        c = 104 'h'
        o = 0x0
#2  0x08057192 in parse_args (argv=0xbfffee34, what=1, setargsp=0x0) at 
misc.c:297
[...]


Looks like bi_errorf should be checking for "fmt" instead of "*fmt".

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to