[Bug 559091] New: Segmentation fault in g++ compiling OpenMP sequence in Blender 2.5
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c0 Summary: Segmentation fault in g++ compiling OpenMP sequence in Blender 2.5 Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i586 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: Uwe.Girlich@philosys.de QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=329960) --> (http://bugzilla.novell.com/attachment.cgi?id=329960) preprocessed source code with openmp pagmas switched on User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 I could not compile OpenMP support into Blender 2.5 alpha because GCC segfaults in the fluid simulator of blender (called elbeem). Especially in the fluid simulator OpenMP brings massive performance improvements. I could compile without problems with OpenSuse 11.1 (gcc 4.3.2) but now not anymore with OpenSuse 11.2 (gcc 4.4.1). This problem was already reported at http://bugs.archlinux.org/task/14766 with gcc 4.4.0. But the mentioned "solution" (don't use OpenMP) is not usable. I'm doing lots of fluid animations and my Core i7 needs OpenMP do do them fast. Reproducible: Always Steps to Reproduce: 1.Get blender 2.5 alpha source code via svn from svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender 2.Activate cmake option "WITH_OPENMP=ON". 3.Compile with cmake. Actual Results: Compilation will break at this file: https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/elbeem/inter... with a segfault of c++. I preprocessed the file and could reproduce it outside the blender build tree with this simple command line: girlich@suse112:~/projects/blender> /usr/bin/g++ -fopenmp -o solver_main_pre_omp.o -c solver_main_pre_omp.cpp solver_main_orig.cpp: In member function 'void LbmFsgrSolver::mainLoop(int)': solver_main_orig.cpp:1707: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. The preprocessed file is attached. Expected Results: An object file solver_main.o. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c1 --- Comment #1 from Uwe Girlich <Uwe.Girlich@philosys.de> 2009-11-30 08:36:23 UTC --- I found, that the cmake build system of blender does not completely honour all optimization options yet (CMAKE_CXX_FLAGS_RELEASE was ignored). By giving the additional cmake option CMAKE_CXX_FLAGS=-O I activated optimization compilation in the build process (-O2 is also possible). So we learn: /usr/bin/g++ -fopenmp -o solver_main_pre_omp.o -c solver_main_pre_omp.cpp leads to the reported segfault, which is still unsolved. /usr/bin/g++ -O -fopenmp -o solver_main_pre_omp.o -c solver_main_pre_omp.cpp /usr/bin/g++ -O2 -fopenmp -o solver_main_pre_omp.o -c solver_main_pre_omp.cpp both work. I did not yet check the compilation result. Hopefully the fluid simulation still works. Uwe -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |rguenther@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c2 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #2 from Richard Guenther <rguenther@novell.com> 2009-11-30 16:27:04 UTC --- Seems to work with GCC 4.5. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42232 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c3 --- Comment #3 from Uwe Girlich <Uwe.Girlich@philosys.de> 2009-12-01 06:33:52 UTC --- Nice problem reduction to <2kb source code. Good, that it works with 4.5 but what this help me with OpenSuse 11.2? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559091 http://bugzilla.novell.com/show_bug.cgi?id=559091#c4 --- Comment #4 from Richard Guenther <rguenther@novell.com> 2009-12-01 09:52:51 UTC --- It doesn't help you with 11.2 and 11.2 doesn't receive updates for the toolchain. If fixed upstream you can update the toolchain from the openSUSE build-service project devel:gcc, which is the repository http://download.opensuse.org/repositories/devel://gcc/openSUSE_11.2 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com