orocos-toolchain / orogen

Code generator for components and type handling in Rock - the Robot Construction Kit - and the Orocos Toolchain
http://rock-robotics.org
Other
4 stars 35 forks source link

Orogen Internal error #78

Closed jmachowinski closed 3 years ago

jmachowinski commented 8 years ago

Hey, my students managed to create an internal error with the attached files. I can not see anything wrong with it. As a side node, this was actually a minimal test case to debug a typelib issue. We have problems with typelib creating the MemoryLayout for RegisterBit.

Orogen and Typelib are on master. Bootstrapped using Ruby2.0 on Ubuntu 14.04.4

Any Ideas ? Greetings Janosch

jmachowinski commented 8 years ago

Orogen File bittest.txt Header bittestTypes.txt

doudou commented 8 years ago

my students managed to create an internal error with the attached files.

Please run it with --debug and post the error message and backtrace.

Which importer are you using ?

jmachowinski commented 8 years ago

debug.txt

The only trace I get is : ===== Internal error ======= Please report the following error to the orogen developers /home/scotch/entern/tools/orogen/bin/orogen:184: stack level too deep (SystemStackError)

doudou commented 8 years ago

It's a typelib bug, typelib crashes when computing the memory layout of /bittest/Test.

To ease debugging, Here are the offending tlb and a ruby script that triggers the bug

bittest.tlb crash.rb

doudou commented 8 years ago

Should be fixed by https://github.com/orocos-toolchain/typelib/pull/82

doudou commented 3 years ago

Typelib pull request merged, I close this.