[ADOL-C] IPOPT interface on Windows - heap error

Spacecookies spacecookies1 at hotmail.com
Wed Dec 22 03:57:38 EST 2010


Hi all,

I’ve just tried building the ADOL-C\examples\additional_examples\ipopt\LuksanVlcek1_sparse example in Visual Studio 2010, (Windows 7 32-bit). Has anyone done this before? I’m getting a strange runtime error.

My build looks like this:
ADOL-C-2.1.12 (sparse)
ColPack 1.0.0
IPOPT 3.9.1
MA27 (the HSL linear solver routines converted to C with f2c)
libf2c
AMD acml 4.4.0 (pgi32) BLAS

The error I get is:
HEAP[LuksanVlcek1_sparse.exe]: Invalid address specified to RtlValidateHeap( 00310000, 01DBDE38 )

Stack trace:
     ntdll.dll!778a475c()     
     [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]    
     ntdll.dll!7786fad0()     
     ntdll.dll!77802dd4()     
>    adolc.dll!freeSparseHessInfos(double * * Hcomp=0x00ec0000, double * * * Xppp=0x778b7880, double * * * Yppp=0x00321c08, double * * * Zppp=0x00000000, double * * Upp=0x00320000, unsigned int * * HP=0x778b7380, void * g=0x00000000, void * hr=0x00000000, int p=1, int indep=2000352800)  Line 1039    C++
     ffffffff()

I’m a little confused by that stack trace though, because if I step through, I find the error actually seems to occur here (Line 492 of ADOL-C_sparseNLP.cpp):
>    LuksanVlcek1_sparse.exe!MyADOLC_sparseNLP::generate_tapes(int n=4000, int m=3998, int & nnz_jac_g=11994, int & nnz_h_lag=1)  Line 492    C++
     LuksanVlcek1_sparse.exe!MyADOLC_sparseNLP::get_nlp_info(int & n=4000, int & m=3998, int & nnz_jac_g=11994, int & nnz_h_lag=1, Ipopt::TNLP::IndexStyleEnum & index_style=-842150451)  Line 48 + 0x23 bytes    C++
     libIpopt.dll!656899e0()     
     [Frames below may be incorrect and/or missing, no symbols loaded for libIpopt.dll]

Anyway, maybe someone has a clue what’s happening or could try to replicate these results...
If it works for you, maybe you could tell me exactly how you’re building it.

Thanks for any help,
Spacecookies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/adol-c/attachments/20101222/efb31e2b/attachment.html 


More information about the ADOL-C mailing list