Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2016 13:19:36 -0400
From:      anonymous <johnandsara2@cox.net>
To:        Vitaliy T <vitaliy.tokarev@gmail.com>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: dialog(1) is too old on 10.3
Message-ID:  <5717BA28.5000803@cox.net>
In-Reply-To: <CABDkf7-psiQjRJZjzH_QcCGTNUvQniU4RpjwBpP5aidktNDKmg@mail.gmail.com>
References:  <CABDkf7-psiQjRJZjzH_QcCGTNUvQniU4RpjwBpP5aidktNDKmg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Vitaliy T wrote:
> Hello,
> 
> The current version of dialog(1) under 10.3-RELEASE is very buggy, IMHO.
> For instance, the next example has taken from "man pv":
> 
>               (tar cf - . \
>                | pv -n -s $(du -sb . | awk '{print $1}') \
>                | gzip -9 > out.tgz) 2>&1 \
>               | dialog --gauge 'Progress' 7 70
> 
> dialog(1) will exit with core dump by default, because of this version
> contains a regression as has been noted
> in the changelog:
> 
> 2013/09/28
>         + fix a regression in gauge widget from 2013/09/28 changes;
>           dlg_reallocate_gauge() failed when no --title option was given
>           (report by Tritonas Insomnia).
> 
> The version of dialog(1) under 10.3 is older than this fix, of course.
> 
> Thanks!
> 
> P.S. I am not sure if this information is important, just to note for
> mainteners.
> 
> 
> shell> uname -mrsv
> FreeBSD 10.3-RELEASE i386
> 
> shell> gdb
> 
> (gdb) file dialog
> Reading symbols from dialog...done.
> (gdb) run --gauge 'Progress' 7 70 >/dev/null 2>&1
> Starting program: /usr/home/tvv/src/dialog/dialog --gauge 'Progress' 7 70
>> /dev/null 2>&1
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x2821a9bd in strlen () from /lib/libc.so.7
> (gdb) bt
> #0  0x2821a9bd in strlen () from /lib/libc.so.7
> #1  0x08080188 in dlg_strclone (cprompt=0x0) at util.c:1907
> #2  0x08063114 in dlg_reallocate_gauge (objptr=0x0, title=0x0,
>     cprompt=0x2887d2e0 "Progress", height=7, width=70, percent=0) at
> guage.c:336
> #3  0x0806362e in dlg_allocate_gauge (title=0x0, cprompt=0x2887d2e0
> "Progress", height=7,
>     width=70, percent=0) at guage.c:364
> #4  0x080637dd in dialog_gauge (title=0x0, cprompt=0x2887d2e0 "Progress",
> height=7,
>     width=70, percent=0) at guage.c:397
> #5  0x0804d934 in call_gauge (t=0x0, av=0xbfbfebf0, offset_add=0xbfbfea80)
> at dialog.c:968
> #6  0x0804b347 in main (argc=5, argv=0xbfbfebec) at dialog.c:1925
> 

it sounds like to me both are too new, meaning: it was working and the 
"new staff" broke it, leaving "insomnia" as the name of the uploader 
(obviously the old invoking unit abided by the old rules and was hacked 
not to)

you should not ignore that might mean someone is allowing regressions 
wontonly, but it does not prove it either



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5717BA28.5000803>