[ADOL-C] taylorexam.cpp fails

Kshitij Kulshreshtha kshitij at math.uni-paderborn.de
Sat Oct 6 07:26:04 EDT 2018


Hello,

this bug has been fixed and you can use the fixed code from the SVN
trunk of ADOL-C at COIN-OR.org

Best
Kshitij Kulshreshtha.

On 05/10/2018 10.48, Asbjoern Burow wrote:
> 
> Dear developers,
> 
> I currently learn how to use ADOL-C and run some of the tests from the
> distribution. I have a runtime problem with the 'tensor_eval' function
> when running the taylorexam.cpp. I am unsure in the moment if it is due
> to a wrong ADOL-C usage/setup/compilation or if it is a
> known/reproducible bug. Some other tests run fine, e.g., speelpenning.cpp.
> 
> I tested this with
>  - ADOL-C version 2.6.2/2.6.3 on a Mac (x86_apple_darwin) with g++ compiler
>  - ADOL-C version 2.6.2 on CentOS Linux 7.5 with icpc 2018 compiler
> 
> For output from the tests see below. If further information is required,
> e.g., the config.log from ADOL-C compilation, please just tell me.
> 
> I appreciate any hints or assistance to figure this out.
> Best,
> Asbjoern
> 
> *********************** On Mac: **************************
> 
> ./taylorexam.exe
> TAYLOREXAM (ADOL-C Example)
> 
>  Number of indenpendents = ?
>  4
>  Number of dependents = (<=n) ?
>  2
>  Degree = ?
>  2
>  Number of directions = ?
>  2
> TASK 1:
>  d = 1, dim = 3
> taylorexam.exe(63986,0x7fff7c297000) malloc: *** error for object
> 0x7fb1da500858: pointer being freed was not allocated
> *** set a breakpoint in malloc_error_break to debug
> Abort trap: 6
> 
> 
> *********************** On Linux: **************************
> 
> ./taylorexam.exe
> TAYLOREXAM (ADOL-C Example)
> 
>  Number of indenpendents = ?
>  10
>  Number of dependents = (<=n) ?
>  1
>  Degree = ?
>  3
>  Number of directions = ?
>  3
> TASK 1:
>  d = 2, dim = 10
> *** Error in `./taylorexam.exe': double free or corruption (out):
> 0x0000000000982250 ***
> ======= Backtrace: =========
> /lib64/libc.so.6(+0x81499)[0x2b11c6205499]
> /home/asbu/apps/adolc/lib64/libadolc.so.2(tensor_eval+0x56c)[0x2b11c574de3c]
> 
> ./taylorexam.exe[0x401bd6]
> /lib64/libc.so.6(__libc_start_main+0xf5)[0x2b11c61a6445]
> ./taylorexam.exe[0x401569]
> ======= Memory map: ========
> [...]
> 

-- 
PD. Dr. Kshitij Kulshreshtha

Institut für Mathematik,
Universität Paderborn,
Warburger Straße 100,
33098 Paderborn.

Büro: TP21.1.21
Besucheradresse:
Technologiepark 21
33098 Paderborn.

Privatanschrift:
Arnikaweg 62
33100 Paderborn.


More information about the ADOL-C mailing list