[ADOL-C] Using ADOL-C's sparse_hess routing

bradbell at seanet.com bradbell at seanet.com
Sat Jun 9 21:03:57 EDT 2012


The running the attached program (with or without valgrind) generates
a segmentation fault:
     g++ version     = 4.6.3
     ADOL-C version  = 2.3.0
     Colpack version = 1.0.6
When compiled with debugging and run using valgrind, the error message is
     ... snip ...
==14212== Invalid read of size 8
==14212==    at 0x412E8CF:
ColPack::HessianRecovery::IndirectRecover_CoordinateFormat_unmanaged(ColPack::GraphColoringInterface*,
double**, unsigned int**, unsigned int**, unsigned int**, double**)
(HessianRecovery.cpp:1348)
==14212==    by 0x405F5A4: sparse_hess (sparsedrivers.cpp:626)
==14212==    by 0x8048BF2: main (sparse_hessian.cpp:52)
==14212==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
     ... snip ...

Perhaps I am not using sparse_hess correctly ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparse_hessian.cpp
Type: text/x-c++src
Size: 2168 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20120609/1508ccdd/attachment.bin>


More information about the ADOL-C mailing list