LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

cvicc core dump

Solved!
Go to solution

Hello all,

I just configured a new production machine and installed the latest cvi runtime for linux on it.

If I compile a blank program int main(void) { return 2; } it runs fine.

 

But a simple prog such as this immediately dumps core:

#include <cvirte.h>

int main (int argc, char *argv[]) {
	if (InitCVIRTE (0, argv, 0) == 0)
		return -1;    /* out of memory */
	
	return 2;
}

 I've installed plenty of such systems, so I'm at a loss as to what may be wrong.

Any idea so as to start my monday ?

0 Kudos
Message 1 of 3
(4,241 Views)

OK, I ran more tests this morning. It's the runtime that's at fault, not the compiler (no CVI program runs here, even if compiled on a differtent machine). So I assume I must be missing some component. I'm running on Scientific Linux 6.5 (which is the same as the Redhat Enterprise of the same number), while the systems that work have slighly older installs (6.4, etc).

Here's a backtrace:

$ gdb ./test core.26510 
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/irrpeall/IrrPeall/test...done.
[New Thread 26510]
Missing separate debuginfo for 
Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/40/7f18ed95e0603bd83bee56d1f59f06291d8016
Reading symbols from /usr/local/lib/libcvi.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcvi.so
Reading symbols from /usr/local/lib/libnianlys.so...done.
Loaded symbols for /usr/local/lib/libnianlys.so
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/local/lib/libcvintwrk.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcvintwrk.so
Reading symbols from /usr/local/lib/libninetv.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libninetv.so
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/local/lib/libcvitdms.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcvitdms.so
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/local/lib/libLV130000_BLASLAPACK.so...done.
Loaded symbols for /usr/local/lib/libLV130000_BLASLAPACK.so
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local/lib/liblkdynam.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/liblkdynam.so.5
Reading symbols from /usr/local/lib/liblkrealt.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/liblkrealt.so.5
Reading symbols from /usr/local/lib/liblksock.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/liblksock.so.5
Reading symbols from /usr/local/lib/liblkbrow.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/liblkbrow.so.5
Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/local/lib/liblksec.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/liblksec.so.5
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Core was generated by `./test'.
Program terminated with signal 11, Segmentation fault.
#0  0x00cec4fb in ?? () from /usr/local/lib/libcvi.so
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686 libX11-1.5.0-4.el6.i686 libXau-1.0.6-4.el6.i686 libXcursor-1.1.13-6.20130524git8f677eaea.el6.i686 libXext-1.3.1-2.el6.i686 libXfixes-5.0-3.el6.i686 libXrender-0.9.7-2.el6.i686 libgcc-4.4.7-4.el6.i686 libstdc++-4.4.7-4.el6.i686 libxcb-1.8.1-1.el6.i686

 

0 Kudos
Message 2 of 3
(4,205 Views)
Solution
Accepted by topic author gdargaud

Stupid, stupid, stupid... I hadn't rebooted after installing basically everything (CVI but also plenty of extra stuff). I did and now it runs as expected. With Linux you get too used to rarely having to reboot...

0 Kudos
Message 3 of 3
(4,197 Views)