Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Random segmentation fault when linking to nidaqmxbase under Linux (CentOS 7)

$
0
0

Hi,

It seems that a simple C application that links to nidaqmxbase will randomly segfault.

 

Here is my setup:

 

C test app:

 

#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
exit(0);
}

 

Now if I compile the above using 'gcc test.c' and then run a.out in a loop, it never segaults.  All good.

 

But if I compile the above using 'gcc ./test.c -lnidaqmxbase' then running the generated a.out in a loop will randomly segfault.

 

I found a topic in the forums that describes similar behavior (http://208.74.204.114/t5/Multifunction-DAQ/Segmentation-Fault-when-linking-with-NIDAQmx-Base-2-0-in-Linux/m-p/392738) but the thread is pretty old so I figure this problem has probably been fixed by now.

 

Am I the only one having these segmentation fault issues?  Maybe someone is able to reproduce this?

 

Here is my setup:

CentOS Linux release 7.2.1511 (Core)

Linux Nrc-006933.ds.nrc.ca 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)

 

Product: NI USB-6501

Driver installed from: http://ftp.ni.com/support/softlib/multifunction_daq/nidaqmxbase/15.0/linux/nidaqmxbase-15.0.0.iso

(Device firmware successfully updated after driver installation.)

 

Thanks!

  Andre


Viewing all articles
Browse latest Browse all 2167

Trending Articles