[ADOL-C] taylorexam.cpp fails

Asbjoern Burow asbjoern.burow at avmatsim.eu
Fri Oct 5 04:48:40 EDT 2018


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: ========
[...]

-- 
Avant-garde Materials Simulation Deutschland GmbH
Alte Str. 2 - 79249 Merzhausen - Germany
Tel:   +49 761 479984-31
Email: asbjoern.burow at avmatsim.eu
Web:   http://avmatsim.eu/

Registergericht: Amtsgericht Freiburg, HRB 701900
Geschäftsführer: Marcus Neumann



More information about the ADOL-C mailing list