04-08-2010 08:21 PM
Hello,
I'm experiencing Generatl Protection Faults on my real-time PC running LabView Real Time 9.1.0. The faults occur when oppening/reading/writing from a serial rs-232/422 port, regardless of whether I use the Serial library or VISA library.
How do I debug this? Is there a stack dump stored somewhere on the RT system when a fault occurs?
I am using LabWindows/CVI 2009 with the corresponding RT module to do my development.
Regards,
ndo
04-12-2010 11:16 AM
Hi Ndo,
Please see the GettingStartedCVIRT.pdf. You can find this under Start»All Programs»National Instruments»LabWindows/CVI version»LabWindows. This includes information about ensuring you have CVI support installed as well as how to debug your application.
Cheers,
04-12-2010 01:35 PM
Hi Michael,
Thanks for the response. When a General Protection Fault occurs, the debuger stops and does not give any details about the fault except for the line that caused it. That is how I determined that the RS-232/422 comm was causing the problem. I don't know how to dig deeper to find the exact cause. On the Windows side, when a fault occurs, there is a stack dump that can be analyzed. Is there a similar dump file on the RT? What is the methodology to debug a crash on the RT?
--ndo
04-13-2010 03:03 PM
Hi Ndo,
Please take a look at this KnowledgeBase: Is There an Error Log File for my Real-Time Controller?
Cheers,
04-13-2010 05:01 PM
Thanks Michael. I'll give this a try.
--ndo
04-13-2010 08:03 PM
Michael,
I was able to get a report of the crash just as the KB instructed.
(Although no report was generated when I ran my DLL in debug mode, the report was only generated when I deployed the DLL to the RT system and a crash occurred. )
I've attached the report here, can you tell me why it's crashing?
Regards,
ndo
04-19-2010 03:41 PM
Hi Michael,
Any update?
ndo
04-20-2010 03:22 PM
Update (in case anyone else is having the same issue):
I have narrowed down the problem to the RT Symmetric Multicore Processing Extension feature. If I install SMP on my RT system, my software crashes (runs fine if there is no SMP installed).
Currently working with NI to identify the exact problem...
ndo
10-25-2010 01:15 PM
ndo,
Has there been any resolution to this?
Matt
10-25-2010 03:31 PM
Matt,
I've had no update from NI reagrding this issue. I'm currently only using one core (no SMP).
--NDo