Re: [Bayes++] Segmentation fault with gcc 4.1
Brought to you by:
mistevens
From: Michael S. <ma...@mi...> - 2007-02-05 16:52:01
|
On Tuesday 19 December 2006 21:22, Nicola Bellotto wrote: > Hello, > > I have recently installed Linux on a new laptop with an Intel Core 2 Duo > processor. After compiling the last version Bayes++ (2003.8-6), I had a > segmentation fault when I tried to run the sample PV_SIR. > With a little of backtrace, I discovered the cause was the gcc > option '-fstrict-aliasing', included in the '-O2' optimization. Removed > that option and inserting manually all the others included in '-O2' and > '-O3', the program run successfully. > It's not clear to me whether the problem is on gcc, kernel or Bayes++. > > The gcc I use is the following: > gcc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > This is the kernel version; > 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:45:28 EST 2006 i686 i686 i386 > GNU/Linux > > Cheers, > > Nicola The following GCC bug may be the root cause. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30088 The bug seems to be rather unstable. My later version of GCC 'version 4.1.2 20061115 (prerelease) (SUSE Linux)' does not seem to have a problem with Bayes++ but the problem probably exists in other situations. Michael -- ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Phone/Fax: +49 561 5218038 Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________ |