LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sqlite3 shared library crash in Linux labview2011 On malloc() failed


@dor-s wrote:

I created the library, after it failed to work with the library distributed with the sqlite Api package.<br />

On same Centos computer I have both LV2009 and LV2011.<br />

I tested the libraries on each LV version both libraryies worked with LV2009 and faild on LV2011.


How did you compile it? The sqlite3 shared library is a beast to compile and has many different defines that need to be set correctly for each platform you want to compile it for.

 

That's what makes me believe it is a C runtime issue. Ni uses whatever GCC compiler is recent and stable at the time of finalizing the LabVIEW distribution. And since different C compilers like to link with different versions of libc, and especially the C++ runtime libraries, and the gnu C libraries are known to be version sensitive, I'm guessing that the sqllite3 library you produce somehow pulls in some dependency that does not play well with the C(++) runtime libraries used by the LabVIEW 2011 executable.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 11 of 13
(812 Views)

I created the shared library with a cunfiguration script and make file downloaded from Sqlite3 website 

http://www.sqlite.org/sqlite-autoconf-3071502.tar.gz

The sqlite 3 website link :

http://www.sqlite.org/howtocompile.html

 

How cam it works in LV2009?

 

0 Kudos
Message 12 of 13
(805 Views)

You will have to learn a bit about C runtime library dependencies, and binary compatibility between library versions as well as how you can end up linking different versions of runtime shared libraries in the same process and how that can cause troubles. It is by the way not something limited to Linux but in fact a standard problem on any system where you try to run binary modules created by different versions of compilers, even if those compilers are from the same manufacturer, and much worse if they are from different compilers.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 13 of 13
(801 Views)