|
From: Bryan P. <bpa...@ar...> - 2014-03-27 20:23:39
|
Hello Sam, Quick question, what platform are you building on? First glance tells me Mac OS X. Also, can you provide me additional information on your dev environment? I like to try to replicate reported issues, and I have yet to see this error myself when testing across the supported platforms. Thanks and We appreciate your interest in the GPS Toolkit, Bryan Parsons Engineering Scientist Space and Geophysics Laboratory Applied Research Laboratories/University of Texas at Austin bpa...@ar... (512) 835-3073 On 3/24/2014 6:46 PM, Sam Price wrote: > Im running the following code but get the following malloc pointer error. > > static gpstk::SP3EphemerisStore sp3_ephem_store; > > static gpstk::GPSEphemerisStore gps_ephem_store; > > vector<std::string> ephem_files; > > ephem_files.push_back(myargs.rinex_filename ); > > FillEphemerisStore(ephem_files,sp3_ephem_store,gps_ephem_store); > > > malloc: *** error for object 0x7fff7b7c1570: pointer being freed was > not allocated > *** set a breakpoint in malloc_error_break to debug > > Program received signal SIGABRT, Aborted. > 0x00007fff95d39d46 in __kill () > (gdb) bt > #0 0x00007fff95d39d46 in __kill () > #1 0x00007fff8e7f5f83 in abort () > #2 0x00007fff8e7c9989 in free () > #3 0x000000010005fa24 in gpstk::Exception::~Exception > (this=0x7fff5fbfc4e0) at basic_string.h:249 > warning: .o file > "/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/Binex/BinexData.cpp.o" > more recent than executable timestamp in "/usr/local/lib/libgpstk.dylib" > warning: Couldn't open object file > '/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/Binex/BinexData.cpp.o' > #4 0x000000010025e025 in gpstk::FFStreamError::~FFStreamError () > #5 0x000000010025d2a5 in gpstk::FFStreamError::~FFStreamError () > warning: .o file > "/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/BLQDataReader.cpp.o" > more recent than executable timestamp in "/usr/local/lib/libgpstk.dylib" > warning: Couldn't open object file > '/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/BLQDataReader.cpp.o' > #6 0x000000010026177e in gpstk::FFStream::~FFStream () > #7 0x000000010026182f in gpstk::FFTextStream::~FFTextStream () > warning: .o file > "/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/RINEX/RinexUtilities.cpp.o" > more recent than executable timestamp in "/usr/local/lib/libgpstk.dylib" > warning: Couldn't open object file > '/Users/sprice/sources/gpstk/build/CMakeFiles/gpstk.dir/lib/FileHandling/RINEX/RinexUtilities.cpp.o' > #8 0x0000000100316c0c in gpstk::Rinex3NavStream::~Rinex3NavStream () > #9 0x000000010031517f in gpstk::Rinex3NavStream::~Rinex3NavStream () > #10 0x000000010030eff4 in gpstk::isRinex3NavFile () > #11 0x0000000100313346 in gpstk::FillEphemerisStore () > #12 0x000000010007f1de in main (argc=<value temporarily unavailable, > due to optimizations>, argv=<value temporarily unavailable, due to > optimizations>) at unit_tests/pvt_replay/main.cpp:176 > > If I run the same application using valgrind I get the following > ==14696== Invalid free() / delete / delete[] / realloc() > ==14696== at 0x7578: free (vg_replace_malloc.c:472) > ==14696== by 0x10005FA23: gpstk::Exception::~Exception() (in > ./navigator.app) > ==14696== by 0x92024: gpstk::FFStreamError::~FFStreamError() (in > /usr/local/lib/libgpstk.dylib) > ==14696== by 0x912A4: gpstk::FFStreamError::~FFStreamError() (in > /usr/local/lib/libgpstk.dylib) > ==14696== by 0x9577D: gpstk::FFStream::~FFStream() (in > /usr/local/lib/libgpstk.dylib) > ==14696== by 0x9582E: gpstk::FFTextStream::~FFTextStream() (in > /usr/local/lib/libgpstk.dylib) > ==14696== by 0x14AC0B: gpstk::Rinex3NavStream::~Rinex3NavStream() > (in /usr/local/lib/libgpstk.dylib) > ==14696== by 0x14917E: gpstk::Rinex3NavStream::~Rinex3NavStream() > (in /usr/local/lib/libgpstk.dylib) > ==14696== by 0x142FF3: gpstk::isRinex3NavFile(std::string const&) > (in /usr/local/lib/libgpstk.dylib) > ==14696== by 0x147345: > gpstk::FillEphemerisStore(std::vector<std::string, > std::allocator<std::string> > const&, gps > > Has anyone else run into this? > > Also what is the new git repo / svn repo? > I would like to checkout the latest version to see if that fixes it. > Im betting the Rule of 3 was not followed, and its causing me this error. > > > -- > Thank you, > > Sam Price > (707) 742-3726 > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > > > _______________________________________________ > Gpstk-devel mailing list > Gps...@li... > https://lists.sourceforge.net/lists/listinfo/gpstk-devel |