Skip to content

#738 starcdreadertest fails

Metadata

Property Value
Reported by Jö Fahlke (jorrit@jorrit.de)
Reported at Feb 12, 2010 17:47
Type Bug Report
Version 1.2
Operating System Unspecified / All
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Feb 16, 2010 23:16
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Feb 16, 2010 23:16
Closed in version Unknown
Resolution Fixed
Comment In ug revision 8364

Description

The starcdreadertest fails with a double free error (log attached). Tracking that down, I found that it is generated during exception unwinding: when the starcdreader calls GridFactory<UGGrid<3> >::creategrid(), that calls GridFactory<UGGrid<3> >::detectBoundarySegments() which executes

DUNE_THROW(GridError, "The grid is not consistently oriented!" << " Mismatch at element face: " << v);

During unwinding the GridFactory object's destructor is called. The destructor tries to free the UGGrid which somehow results in the double free error.

My suspicion is that the UGGrid object is not always in a consistent state during construction by the GridFactory, so it cannot be destroyed cleanly. I don't know enough about UG to go on from here, however.

Attachments