[Bayes++] Segmentation fault with gcc 4.1
Brought to you by:
mistevens
From: Nicola B. <nb...@es...> - 2006-12-19 20:22:16
|
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 -- ------------------------------------------ Nicola Bellotto Department of Computer Science University of Essex Wivenhoe Park Colchester CO4 3SQ United Kingdom Room: 1N1.2.8 Tel. +44 (0)1206 874094 URL: http://privatewww.essex.ac.uk/~nbello ------------------------------------------ |