开发者

VxWorks : Task Id overwrites to another memory location

开发者 https://www.devze.com 2022-12-20 09:23 出处:网络
I havean application running on VxWorks 5.5.1 It basically allocates a STL map data structure but in some cases my

I have an application running on VxWorks 5.5.1 It basically allocates a STL map data structure but in some cases my main 开发者_JAVA技巧task crashes. When I monitor via debugger, the allocated size for an STL map type variable has the value of another task's ID instead of 8.

So it seems like a task ID and a variable is mixing.

The problem occurs in consecutive start and stop of main task. Could it possible, TCB block of a task overwrites an area in memory Regards


It's solved. It was beacuse of an custom debug function. Thanks for spending time.

0

精彩评论

暂无评论...
验证码 换一张
取 消