[Bug 767] New: Crash on loadStateMachine with rtt 1.8 and 1.10 on windows in release

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

Summary: Crash on loadStateMachine with rtt 1.8 and 1.10 on
windows in release
Product: RTT
Version: 1.10.1
Platform: i386 Compatible
OS/Version: Windows
Status: NEW
Severity: major
Priority: P3
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

We need to build in Release an application that load a State Machine.

On Windows with debug, we can load the state machine. But in release windows,
when name is long enough, we had a crash.

I join a sample that crash in release, relwithdebinfo but not in debug. All
this is working correctly on linux. We tried with rtt 1.8 and 1.10.3 on windows

To run the sample,
1) you needs to compile orocos with MSVC in release (you may need some fix
provide in my last mail in orocos-dev list)
2) add Orocos as environment variable that point to root of Orocos
3) Copy ${ Orocos }/src folder to an folder name ${ Orocos }/rtt in root of you
orocos directory
4) Build the sample projet (please use to build directory provide in the
sample, state machine are there)

[Bug 767] Crash on loadStateMachine with rtt 1.8 and 1.10 on win

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution| |FIXED
Status|NEW |RESOLVED

--- Comment #5 from Peter Soetens <peter [..] ...> 2010-10-12 15:17:28 ---
This has been fixed in 1.12.0 and 2.1.0 by disabling optimization around the
eol_skip_functor function object in parser-types.hpp

[Bug 767] Crash on loadStateMachine with rtt 1.8 and 1.10 on win

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

Simon Pelletier-Thibault <simon [dot] pelletiert [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |simon [dot] pelletiert [..] ...

--- Comment #4 from Simon Pelletier-Thibault <simon [dot] pelletiert [..] ...> 2010-06-18 17:45:42 ---
First, yes when the lenght of the file name is too long and orocos is built
with MSVC release, we get seg fault.

Secondly, when a short filename is used, the parser can't understand the state
machine ( orocos built with MSVC release).

We are using Orocos 1.10.3 for this test.

I do not kown how to export the call stack in MSVC.

PS:
We consider in the cmakefiles that orocos is built in {$OROCOS}/build

[Bug 767] Crash on loadStateMachine with rtt 1.8 and 1.10 on win

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

--- Comment #3 from Peter Soetens <peter [..] ...> 2010-06-18 14:33:25 ---
Could you build with RelWithDebInfo and provide a backtrace ?

[Bug 767] Crash on loadStateMachine with rtt 1.8 and 1.10 on win

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

--- Comment #2 from Peter Soetens <peter [..] ...> 2010-06-18 14:29:24 ---
Is this report about the lenght of the filename, the length of the state
machine type or the length of the state machine instance ?

I can at least confirm now that it doesn't crash on gnulinux.

[Bug 767] Crash on loadStateMachine with rtt 1.8 and 1.10 on win

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=767

--- Comment #1 from Peter Soetens <peter [..] ...> 2010-05-21 11:52:06 ---
Created an attachment (id=599)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=599)
Test program causes crash

Example submitted on mailing list.