From owner-freebsd-hackers Fri May 9 17:07:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA07238 for hackers-outgoing; Fri, 9 May 1997 17:07:46 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA07231 for ; Fri, 9 May 1997 17:07:44 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.8.5) with ESMTP id RAA07850; Fri, 9 May 1997 17:07:44 -0700 (PDT) Message-Id: <199705100007.RAA07850@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Timothy Moore cc: freebsd-hackers@FreeBSD.ORG Subject: Re: g++ shared library segfaults In-reply-to: Your message of "Fri, 09 May 1997 16:28:53 PDT." <199705092328.QAA24652@gonzo.wolfenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 May 1997 17:07:44 -0700 From: Amancio Hasty Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, You also have to apply the same fix to the rest of the IV installation. I rebuilt the IV library and fix all of them. Please, Whomever is maintaining Interviews please apply the fix thru out Interviews. Tnks, Amancio >From The Desk Of Timothy Moore : > Date: Fri, 09 May 1997 15:51:51 -0700 > From: Amancio Hasty > > Hi, > > I traced it further more and it looks like a bug in Docviewer.c using > an illegal reference to a local variable. > > for (long i = 0; i < count; ++i) { > ViewerColorInfo& info = _color_info->item_ref(i); > if (strcmp(info._name, name) == 0) { > break; > } > } > > later on it checks the value of i. I change the scope of i and doc just > fired right up. Will "fix" similar referencs in doc. > > Uh, that's not an illegal reference. The scope of i extends to the > end of the containing block, not the end of the "for" statement. > > Tim