RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

Code added for RT error assessment knocks out GDB #51

Closed sudorook closed 9 years ago

sudorook commented 9 years ago

After installing RTXI from the head of the qt4 branch, gdb no longer works with RTXI. By switching to commit 7a62e55e56324e47506d9ccdca06546cd342d98a and reinstalling RTXI, gdb started working again.

The error message when running RTXI from HEAD:

(gdb) run
Starting program: /usr/local/bin/rtxi 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7e2c700 (LWP 19694)]

Program received signal SIGXCPU, CPU time limit exceeded.
[Switching to Thread 0x7ffff7e2c700 (LWP 19694)]
sem_post () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S:57
57  ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: No such file or directory.
(gdb) 

I don't really understand what was added to rt_os-xenomai.cpp, so this is as far as I've debugged the issue.

yapatel commented 9 years ago

The code added to the RT layer causes the system to instantiate an RT debug instance through the co-kernel. This allows us to figure out when real-time performance is lost.

This code will be enabled by a debug switch shortly.