[Rtai] Segfaults when accessing some rtai functions

Paolo Mantegazza mantegazza at aero.polimi.it
Wed Mar 9 08:35:16 CET 2011


Erik Rull wrote:
> Hi all,
> 
> I've upgraded from 3.7.1 to rtai 3.8.1 and a lot of functions are 
> running fine.
> 
> But the User Space Interrupt handling seems not to work.
> 
> When I access any of these functions I get a segfault:
> rt_disable_irq(irq);
> rtai_cli();
> rtai_sti();
> rt_enable_irq(irq);
> 
> I've also added into the rt_disable_irq() function a rt_printk() to see 
> some debug output, but this portion of code seems never to be reached! 
> So the error seems to be "somewhere" between the userspace program and 
> the kernel driver. The kernel modules are loaded and I've strace'd my 
> compiler output to ensure that include files and the linked lxrt are 
> used correctly.
> 
> Any ideas where I can further debug into to see what is going wrong there?
> rt_printk and the non-root-hrt enabling function and also the irq task 
> setting works fine.
> 
> My kernel is 2.6.32.12 - yes not .11 but .12 was patchable as well. I 
> neede that version because the new drivers of the new hardware required 
> that version.
> 
> Thanks a lot.
> 

Did you config RTAI for user space interrupts?

paolo

> Best regards,
> 
> Erik
> _______________________________________________
> Rtai mailing list
> Rtai at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> 



More information about the Rtai mailing list