LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I resolve a Segmentation Fault?

I am using Mandrake Linux 2.6.12-31mdk-i686-up-4GB i686 Intel(R) Pentium(R) 4 CPU 2.00GHz.  I am trying to communivate with a Galil motion controller through the use of a CIN.  The CIN works, however, when querying the controller continuously I always recieve the following message after 1009 iterations. 

LabVIEW caught fatal signal
7.1 - Received SIGSEGV
Reason: address not mapped to object
Attempt to reference address: 0x0

[1]    Segmentation fault            labview

I tried the "tune2fs -O ^dir_index /dev/yourpartition" on my ext3 partitions and that did not work. 


I wrote the CIN with a c program that: opens the device, sends a command, reads the response then closes the device.  The progam relies on an external library of functions that perform those tasks.  If the program works why the segmentation fault on the 1010th iteration?  Andy

0 Kudos
Message 1 of 2
(2,867 Views)
Hi Andy,
Have you tried to call your c code from other programs and are you encountering the same problem?  It sounds like there's a memory leak or possibly you are stepping over bounds somewhere trying to access a memory location.  It's also possible that some of your external library functions conflict with each other.  It's difficult to tell exactly what's the cause of the segfault by looking at your description.  But I would definitely try to run your C code independently to see if it throws any errors.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(2,841 Views)