lesliejaneth / opencollada

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

crash in <articulated_system> #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have attached several collada 1.5 files, which
cause a segmentation fault during validation test.
2. To reproduce the problem apply OpenCOLLADAValidator on the attached files.

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

What version of the product are you using? On what operating system?
my system is Ubuntu 64bit, OpenCOLLADA version is the latest checkout from svn

Please provide any additional information below.
I tried to debug a little bit.
The problem happens in

void KinematicsInstanceKinematicsModel::addKinematicsNewParam( 
KinematicsNewParam* newParam )
    {
        const String& name = newParam->getName();
        mKinematicsNewParams.insert(std::make_pair(name, newParam));
    }

mKinematicsNewParams is not initialized.

Original issue reported on code.google.com by Alexey.Z...@gmail.com on 16 Jan 2011 at 4:28

Attachments:

GoogleCodeExporter commented 8 years ago
I believe, that a destructor is executed before addKinematicsNewParam 

Original comment by Alexey.Z...@gmail.com on 16 Jan 2011 at 4:32

GoogleCodeExporter commented 8 years ago
Thanks for reporting this bug.

It has been fixed in r803.

Original comment by opencollada2@googlemail.com on 18 Jan 2011 at 12:10

GoogleCodeExporter commented 8 years ago
My unit test passed. Great!
Thanks.

Original comment by Alexey.Z...@gmail.com on 18 Jan 2011 at 1:52