Date: Fri, 11 Oct 2002 13:02:00 +0100 (BST) From: Sander Vesik <Sander.Vesik@Sun.COM> To: dev@porting.openoffice.org Cc: Alexander Kabaev <ak03@gte.com>, Martin Blapp <mb@imp.ch>, openoffice@freebsd.org, kan@freebsd.org Subject: Re: [porting-dev] FreeBSD: Uncatched exception problem Message-ID: <Pine.GSO.4.10.10210111234260.4795-100000@blossom> In-Reply-To: <200210102045.25098.kevin.hendricks@sympatico.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 10 Oct 2002, Kevin B. Hendricks wrote: > Hi, > > One thing the bridge code does a lot of is to use alloca for space in the > current frame. This at one time in gcc 2.95.3 created problems for stack > walkbacks on ppc linux. > > Perhaps we should change the test code to make sure the routine that does > the catch uses alloca a number of times (and memset that space to 0) to > make sure that growing the stack frame dynamically does not cause problems > for the walkback. > Is it presently build with or without -fomit-frame-pointer ? If yes then removing the option might improve the trackability of stack... > So somewhere before the "try" in test2lib.cxx you might want to add the > following lines: > > #include <alloca.h> // or whatever the right header is > > void* pSpace = NULL; > int n = 20; > for( int i = 0; i < n; i++ ) > { > pSpace = alloca( n*(i+1) ); > memset( pSpace, 0, n*(i+1) ); > } > > To force that frame to grow to see if that has any impact on the walkback. > > Kevin > > > On October 10, 2002 06:27, Alexander Kabaev wrote: > > On Fri, 11 Oct 2002 00:25:06 +0200 (CEST) > > > > Martin Blapp <mb@imp.ch> wrote: > > > Hi Kevin, > > > > > > > in do_it throwing 15 > > > > caught struct Exc& > > > > > > I get the same result :/ > > > > > > Martin > > > > You should compile and link this sample using the same options OO uses > > to compile its components. The simple case of exceptions being thrown > > across shared libraries is working fine, I assure you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@porting.openoffice.org > For additional commands, e-mail: dev-help@porting.openoffice.org > Sander There are voices in the street, And the sound of running feet, And they whisper the word -- Revolution! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10210111234260.4795-100000>