[Dune] [#576] Yasp-grid probably triggers a GCC bug (Attachment added)
Dune
dune at dune-project.org
Tue Jul 7 10:34:38 CEST 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Andreas Lauser (andlaus)
Attached to Project - Dune
Summary - Yasp-grid probably triggers a GCC bug
Task Type - Bug Report
Category - Grid
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - High
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - If the attached file is compiled without optimizations, it crashes in yasp-grid with the following backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040276a in Dune::MultiYGrid<2, double>::maxlevel (this=0x48e8758b48ffffc2) at ../../dune/grid/yaspgrid/grids.hh:1801
1801 return _maxlevel;
(gdb) bt
#0 0x000000000040276a in Dune::MultiYGrid<2, double>::maxlevel (this=0x48e8758b48ffffc2) at ../../dune/grid/yaspgrid/grids.hh:1801
#1 0x00000000004027c9 in Dune::YaspEntity<0, 2, Dune::YaspGrid<2> const>::isLeaf (this=0x7fffdf82e218) at ../../dune/grid/yaspgrid.hh:812
#2 0x00000000004059d7 in Dune::YaspEntity<0, 2, Dune::YaspGrid<2> const>::ileafbegin (this=0x7fffdf82e218) at ../../dune/grid/yaspgrid.hh:825
#3 0x0000000000405a2a in Dune::Entity<0, 2, Dune::YaspGrid<2> const, Dune::YaspEntity>::ileafbegin (this=0x7fffdf82e218) at ../../dune/grid/common/entity.hh:352
#4 0x0000000000405a96 in MyTest::foo (this=0x7fffdf82e180, element=@0x7fffdf82e388) at test-yaspgrid.cc:32
#5 0x000000000040172f in main (argc=1, argv=0x7fffdf82e528) at test-yaspgrid.cc:64
This seems to be a bug in GCC 4.x, as there are no problems when using -O2, or SGrid. I've verified, that this happens for GCC 4.3.1 and GCC 4.2.3. Since my knowledge about YASP is quite limited, I could not come up with a work-around, but IMHO Yasp-grid should work for this code. The following dune-control command can be used to trigger the bug:
./dune-common/bin/dunecontrol --configure-opts="CXXFLAGS='-g -Wall'" all
One or more files have been attached.
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=576
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list