msmitherdc / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Assertion `px != 0' failed. #171

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Any kml file with the <Document> tag parsed by kmldom::Parse

What is the expected output? What do you see instead?

a.out: /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166: T* 
boost::intrusive_ptr<T>::operator->() const [with T = kmldom::Placemark]: 
Assertion `px != 0' failed.
Aborted

What version of the product are you using? On what operating system?
Using libkml 1.3.0 on Linux 2.6.32-34-generic.

Did you run the unit test suite that comes with the project? Did all tests pass?

No.

Please provide any additional information below.

Compiled with g++ -lkmlbase -lkmldom parsekml.cc
gcc version 4.4.3

Original issue reported on code.google.com by mkx...@gmail.com on 18 Oct 2011 at 12:45

Attachments:

GoogleCodeExporter commented 9 years ago
I was unable to reproduce this.  I replaced examples/helloworld/parsekml.c with 
the attached variation using your MapDebug.kml and kmldom:Parse().  I 
configured like this to ensure asserts were active:

export CXXFLAGS="-g -DDEBUG"
./configure

After building I ran parsekml and it seemed to work fine with no assertion 
blowing.  (I added assert(0) in the main to confirm assertions were active). 

I was working against svn r864.

Original comment by fwarmerdam@gmail.com on 3 Apr 2013 at 7:58

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by fwarmerdam@gmail.com on 3 Apr 2013 at 7:59

Attachments: