From owner-freebsd-bugs@freebsd.org Wed Apr 20 17:52:00 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD03CB16BD0 for ; Wed, 20 Apr 2016 17:52:00 +0000 (UTC) (envelope-from johnandsara2@cox.net) Received: from fed1rmfepi101.cox.net (fed1rmfepi101.cox.net [68.230.241.132]) by mx1.freebsd.org (Postfix) with ESMTP id AC1FD1EA6 for ; Wed, 20 Apr 2016 17:52:00 +0000 (UTC) (envelope-from johnandsara2@cox.net) Received: from eastrmimpo306.cox.net ([68.230.241.238]) by eastrmfepo201.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20160420175120.SLYB18342.eastrmfepo201.cox.net@eastrmimpo306.cox.net> for ; Wed, 20 Apr 2016 13:51:20 -0400 Received: from [192.168.3.15] ([72.219.207.23]) by eastrmimpo306.cox.net with cox id khrL1s00A0WpXgw01hrLmU; Wed, 20 Apr 2016 13:51:20 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020202.5717C198.01C8, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.1 cv=EYVGQZWC c=1 sm=1 tr=0 a=mYpcIwsqoufCTD7dyaqayA==:117 a=mYpcIwsqoufCTD7dyaqayA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=8nJEP1OIZ-IA:10 a=_qjnf2L6nUSHJZQFa_4A:9 a=wPNLvfGTeEIA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; none Message-ID: <5717BA28.5000803@cox.net> Date: Wed, 20 Apr 2016 13:19:36 -0400 From: anonymous User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 To: Vitaliy T CC: freebsd-bugs@freebsd.org Subject: Re: dialog(1) is too old on 10.3 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 17:52:00 -0000 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