Date: Mon, 18 Apr 2016 19:33:25 +0300 From: Vitaliy T <vitaliy.tokarev@gmail.com> To: freebsd-bugs@freebsd.org Subject: dialog(1) is too old on 10.3 Message-ID: <CABDkf7-psiQjRJZjzH_QcCGTNUvQniU4RpjwBpP5aidktNDKmg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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 -- With Best Regards, Vitaliy V. Tokarev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABDkf7-psiQjRJZjzH_QcCGTNUvQniU4RpjwBpP5aidktNDKmg>