#1197 [Patch] Ordering of member variables in UG intersections causes segfaults
Metadata
Property | Value |
---|---|
Reported by | Steffen Müthing (steffen.muething@iwr.uni-heidelberg.de) |
Reported at | Oct 17, 2012 11:08 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Oct 17, 2012 13:41 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Oct 17, 2012 13:41 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | in dune-grid 8545 |
Description
I have a few PDELab examples that crash using UG. The problem seems to be related to the relative ordering of the shared_ptr members containing the geometries and the geometryIsUpToDate_ flag (GCC also warns about the flag being initialized after the shared_ptrs).
The attached patch fixes both the warnings and the crashes for me.