[ADOL-C] Debug assertion failed -- Program aborts
Kshitij Kulshreshtha
kshitij at math.upb.de
Mon Sep 19 10:04:00 EDT 2011
Hello John,
I used MS Visual Studio 2010 with your sent code. (After changing the
Additional Include and Library Directories accordingly). I compiled
adolcFinalSparse in the Release configuration instead of Debug and it
runs without a problem. In the Debug configuration there is a problem as
you saw. My guess is that since adolc.dll was not compiled with
debugging enabled, so that causes this problem. Both sparse and nosparse
configurations are clones of the default Release configurations. You
would have to add Debug in the build of adolc.dll itself in order to use
Debug for your code.
Regards
Kshitij.
As on 2011-09-13 06:22, john capeman did write:
> In this email I send you the project that I created and causes the problem.
> Please let me know if you have problems opening the file.
>
> Thank you for your help!
> John
>
>
> On Tue, Sep 13, 2011 at 12:19 AM, john capeman <john.capeman at gmail.com
> <mailto:john.capeman at gmail.com>> wrote:
>
> Hi Kshitij,
>
> Thanks for your prompt response.
>
> I am going to send you two zipped files in two different emails. The
> first is the ADOL-C project that I have downloaded and tried to set
> it up. This is attached in this email. I am sending it because I am
> not sure if it is properly set up.
>
> In the second email I will send you the project I have created. This
> is basically the "sparse_jacobian.cpp" file you have in the ADOL-C's
> distribution.
>
> Thank you for your help!
> John.
>
> PS: Let me know if you have any problems opening the attached files.
>
>
> On Mon, Sep 12, 2011 at 8:42 AM, Kshitij Kulshreshtha
> <kshitij at math.upb.de <mailto:kshitij at math.upb.de>> wrote:
>
> __ Hello,
>
> could you send me your copied source file and your
> project/solution file for testing. I am currently away from the
> machine with my visual studio, so I'll be able to get back to
> you next week at the earliest.
>
> Regards.
> --
> Dr. Kshitij Kulshreshtha
>
> Sent via Mobile Phone.
>
>
> john capeman <john.capeman at gmail.com
> <mailto:john.capeman at gmail.com>> wrote:
>
> Hi all,
>
> I am new to ADOL-C. I have recently downloaded and installed
> it on my PC.
> I used MSVC++ 2010 and all the steps described in the
> documentation and Readme files to build the packages (both
> ADOL-C and ColPack).
> Both the nosparse and sparse version of ADOLC have been
> build successfully (I think).
>
> Then I tried to test some of the examples provided in the
> "additional_examples" directory. I am very interested
> in calculating sparse Jacobians so I used tried the file
> "sparse_jacobian.cpp" in the directory "sparse".
>
> I wanted to try independently, so I created a new project
> and I copy-pasted the code from sparse_jacobian.cpp
> to the file: "my_sparse_jacobian.cpp" The project name is
> adolcFinalSparse.
>
> I have successfully built the project. But when I run it the
> program aborts.
> This is what message I get:
>
> -=-=-=-=-
> Debug Assertion Failed!
> Program: ...dio
> 2010\Projects\adolcFinalSparse\Debug\adolcFinalSparse.exe
> File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
> Line: 1322
> Expression: _CrtIsValidHeapPointer(pUserData)
> For information on how your program can cause an assertion
> .......
> Abort -- Retry -- Ignore
> -=-=-=-=-
>
> The problem arises as soon as the memory for the matrix
> "rind" is freed for the first time (i.e., free(rind)).
>
> I suspect that it may be something trivial (e.g., I do not
> set up something correctly).
> Any suggestions on how to resolve this issue will be very
> welcome.
>
> Cheers,
> John
>
>
>
--
Dr. Kshitij Kulshreshtha
Institut für Mathematik,
Universität Paderborn,
Warburger Straße 100,
33098 Paderborn.
Büro: A3.235
Privatanschrift:
Arnikaweg 62
33100 Paderborn.
More information about the ADOL-C
mailing list