Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Valgrind warnings (libblpapi3_64.so) #32

Open
MichalStaruch opened this issue Dec 9, 2014 · 3 comments
Open

Valgrind warnings (libblpapi3_64.so) #32

MichalStaruch opened this issue Dec 9, 2014 · 3 comments

Comments

@MichalStaruch
Copy link
Contributor

When running valgrind --leak-check=full node service-using-blpapi.js some warnings appear, like

==1462== Warning: set address range perms: large range [0x2621a6b2f000, 0x2621c6b2f000) (noaccess)
==1462== Conditional jump or move depends on uninitialised value(s)
==1462==    at 0x7A7DAC3: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A7DB47: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A7DD36: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A7DE7D: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A7D90E: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A7D3EA: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x783E5DE: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x78232DD: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7854376: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7856441: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7840FF7: blpapi_Session_create (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7435B72: BloombergLP::blpapijs::Session::Session(std::string const&, int, std::string const&) (in /var/service-using-blpapi/node_modules/blpapi/build/Release/blpapijs.node)

or

==1462== Thread 4:
==1462== Syscall param writev(vector[...]) points to uninitialised byte(s)
==1462==    at 0x5D5E990: writev (writev.c:54)
==1462==    by 0x7A7C6A7: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A64FA3: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A5696A: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D14AF: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D17AF: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D1D95: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D3FBA: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A676AB: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A6E352: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A4D61B: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A63EEC: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==  Address 0x73dbac4 is 84 bytes inside a block of size 304 alloc'd
==1462==    at 0x4C28C20: malloc (vg_replace_malloc.c:296)
==1462==    by 0x7B68D6C: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7B02E32: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7AC0C98: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7AC0D16: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7AC17A6: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7AC2B3E: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A86129: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x7A8626B: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79848A7: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D1490: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)
==1462==    by 0x79D17AF: ??? (in /var/service-using-blpapi/node_modules/blpapi/deps/blpapi/linux/libblpapi3_64.so)

Worth checking and correcting, IMO.

Environment:
Debian 8.0 "Jessie" (64-bit, fully updated), node.js v0.10.33 (from https://github.com/nodesource/distributions), blpapi v0.1.13.

@MichalStaruch MichalStaruch changed the title Valgrind warnings Valgrind warnings (libblpapi3_64.so) Dec 9, 2014
@apaprocki
Copy link
Member

From what I hear from the API team, all of the issues reported by valgrind have already been fixed in later releases (v3.8.x.y). The current production version is still v3.7.9.1, but if you'd like to use the experimental one, you can swap in those C++ libraries and headers similar to what is done for the OS X build. I'll close this out once the v3.8.x.y version becomes the stable release and I verify it no longer happens.

@MichalStaruch
Copy link
Contributor Author

@apaprocki I will rather skip experimental version, but surely verify this when new stable release is available. Thanks for the info!

@ericvw
Copy link
Contributor

ericvw commented Jun 1, 2015

@apaprocki, can you verify and (hopefully) close this? Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants