Date: Fri, 09 May 1997 16:36:47 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: Timothy Moore <moore@WOLFENET.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: g++ shared library segfaults Message-ID: <199705092336.QAA06620@rah.star-gate.com> In-Reply-To: Your message of "Fri, 09 May 1997 16:25:05 PDT." <199705092325.QAA05646@gonzo.wolfenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tnks! Here are the patches for Doc 8) ftp://rah.star-gate.com/pub/iv-doc.patch Can someone make sure that the patches are correct . If doc and idraw proves to be reliable after a little testing then I suggest including them in the next release of FreeBSD. After further testing we can look into further extend / enhance doc and idraw. Regards, Amancio >From The Desk Of Timothy Moore : > Date: Fri, 09 May 1997 15:51:51 -0700 > From: Amancio Hasty <hasty@rah.star-gate.com> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705092336.QAA06620>