[ADOL-C] sparse hessian: Conditional jump or move depends on uninitialised value(s)

João Leal joaoruileal at gmail.com
Wed Jul 6 09:25:07 EDT 2016


Hello,

I have a program using Adol-c (adapted from the examples) with 89 variables.
My system quickly runs out of memory when I try to determine a sparse
Hessian.
Adol-c appears to go into an infinite loop inside sparse_hess.

I've check model taping with valgrind and nothing was reported.
Valgrind does report the use of uninitialised values inside sparse_hess:

==19260== Conditional jump or move depends on uninitialised value(s)
==19260==    at 0x4EDA8C1: traverse_unary (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4EDA8B0: traverse_unary (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4EDA2C4: nonl_ind_forward_safe (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4EF1696: sparse_hess (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4018DB: main (adolc_mem.cpp:61)
==19260==  Uninitialised value was created by a heap allocation
==19260==    at 0x4C2BBCF: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19260==    by 0x4ED94C0: nonl_ind_forward_safe (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4EF1696: sparse_hess (in
/usr/lib/x86_64-linux-gnu/libadolc.so.2.1.0)
==19260==    by 0x4018DB: main (adolc_mem.cpp:61)

This message repeats multiple times until it runs out of memory.

Unfortunately I do not have debugging symbols installed for Adol-c (the
package was taken from debian).
I'm using adolc 2.6.0 in ubuntu 15.10 and the program was compiled with
c++11.

Although the library name "libadolc.so.2.1.0" it is supposed to be adol-c
2.6.
Debian packages it like this:
https://packages.debian.org/stretch/amd64/libadolc2/filelist

Can anyone replicate my problem?
I've attached the sources and recommend limiting the program memory before
executing it (e.g.: ulimit -Sv 5000000).

Best regards,
João Leal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20160706/dcfe535b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dae_distillation_c2eq_index1.cpp
Type: text/x-c++src
Size: 114055 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20160706/dcfe535b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adolc_mem.cpp
Type: text/x-c++src
Size: 1910 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20160706/dcfe535b/attachment-0003.bin>


More information about the ADOL-C mailing list