Skip to content

#146 Use of uninitialized values in dgfparser

Metadata

Property Value
Reported by Oliver Sander (oliver.sander@tu-dresden.de)
Reported at Jul 12, 2006 16:22
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Christian Engwer (christi@conan.iwr.uni-heidelberg.de)
Last edited at Jul 24, 2006 14:38
Closed by Robert K (robertk@posteo.org)
Closed at Jul 26, 2006 14:08
Closed in version 1.0
Resolution Fixed
Comment

Description

When reading a grid using the dgf parser, say

#include "config.h" #include <dune/grid/io/file/dgfparser/dgfalberta.hh>

int main(){

Dune::AlbertaGrid<3,3>* albertaGrid = Dune::MacroGrid("simplex.dgf", -1);

}

valgrind gives me the following messages

==8098== Conditional jump or move depends on uninitialised value(s) ==8098== at 0x806D443: Dune::DuneGridFormatParser::readDuneGrid(std::istream&) (dgfparser.cc:230) ==8098== by 0x806D9FC: Dune::MacroGrid::Impl<Dune::AlbertaGrid<3, 3> >::generate(Dune::MacroGrid&, ch ar const*, int) (dgfalberta.cc:11) ==8098== by 0x806DD52: _ZN4Dune9MacroGridcvPT_INS_11AlbertaGridILi3ELi3EEEEEv (dgfparser.hh:104) ==8098== by 0x804B46F: main (uggridtest.cc:7) ==8098== ==8098== Conditional jump or move depends on uninitialised value(s) ==8098== at 0x805D92A: Dune::DuneGridFormatParser::writeAlberta(std::ostream&) (dgfparser.cc:24) ==8098== by 0x806DB90: Dune::MacroGrid::Impl<Dune::AlbertaGrid<3, 3> >::generate(Dune::MacroGrid&, ch ar const*, int) (dgfalberta.cc:27) ==8098== by 0x806DD52: _ZN4Dune9MacroGridcvPT_INS_11AlbertaGridILi3ELi3EEEEEv (dgfparser.hh:104) ==8098== by 0x804B46F: main (uggridtest.cc:7) macro_test: WARNING in ../3d/macro.c, line 489 not implemented for 3d yet: no check is performed check_mesh: checking mesh checking done; no error detected AlbertaGrid<3,3> created from macro grid file 'simplex.dgf.albertagrid'.