[Rock-dev] [rock] #287: typelib: segfault on merge_xml
rock
noreply at opendfki.de
Thu Jun 27 11:22:10 CEST 2013
#287: typelib: segfault on merge_xml
--------------------+-----------------------------------
Reporter: thro02 | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: normal | Milestone:
Component: base | Keywords:
--------------------+-----------------------------------
Using a log file from an ARM based system led to the following error:
Typelib segfaults when loading a tlb file with /std/string defined as
/uint8_t. The following test cases towards narrowing down the error.
case one: segfaulting
{{{
<?xml version="1.0"?>
<typelib>
<numeric name="/uint8_t" category="uint" size="1" />
<container name="/std/string" of="/uint8_t" size="4"
kind="/std/string"/>
</typelib>
}}}
case two: Exception
{{{
<?xml version="1.0"?>
<typelib>
<numeric name="/uint8_t" category="uint" size="1" />
<numeric name="/int8_t" category="sint" size="1" />
<container name="/std/string" of="/uint8_t" size="4"
kind="/std/string"/>
</typelib>
}}}
{{{
test.rb:7:in `merge_xml': cannot load xml: std::string can only be built
on top of '/int8_t' -- found /uint8_t (ArgumentError)
from test.rb:7:in `<main>'
}}}
case 3: no error
{{{
<?xml version="1.0"?>
<typelib>
<numeric name="/int8_t" category="sint" size="1" />
<container name="/std/string" of="/sint8_t" size="4"
kind="/std/string"/>
</typelib>
}}}
--
Ticket URL: <https://rock.opendfki.de/ticket/287>
rock <https://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list