LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Problem compiling binary file for Tecplot (http://www.linuxquestions.org/questions/programming-9/problem-compiling-binary-file-for-tecplot-4175414395/)

juaneco2710 07-02-2012 02:44 AM

Problem compiling binary file for Tecplot
 
Hello,

I'm a new user of Linux (64 bit Ubuntu 12-04 LTS) I am trying to create a binary file for a program called Tecplot360 (.plt extension), which is used to plot results from CFD calculations. I am using the library and the functions provided by the company.

It seems I have an error when trying to compile my program (written in fortran 2003). I don't know if any of you know what this might mean:

Code:

Err: (TECEND112) Wrong number of data values in file 1:
    1200 data values for Zone 1 were processed,
    1083 data values were expected.
File 1 closed.
********************************************
      1 Errors occurred on this file
********************************************
*** glibc detected *** ./a.out: double free or corruption (out): 0x0000000000e6f370 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7fcd29a5e626]
./a.out[0x413c8f]
./a.out[0x413cc1]
./a.out[0x413d02]
./a.out[0x413d59]
./a.out[0x40756a]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b921)[0x7fcd29a1b921]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b9a5)[0x7fcd29a1b9a5]
/usr/lib/x86_64-linux-gnu/libgfortran.so.3(+0x1a0dc)[0x7fcd29fcd0dc]
/usr/lib/x86_64-linux-gnu/libgfortran.so.3(+0x1ae93)[0x7fcd29fcde93]
./a.out[0x4034cf]
./a.out[0x406eef]
./a.out[0x40703f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fcd29a0176d]
./a.out[0x4023a9]

If you need me to publish the code or more lines from the terminal, let me know. It's a very simple code for fluid dynamics in a square pipe.

juaneco2710 07-05-2012 12:22 AM

answer
 
I followed what was said in the next link:

http://jblevins.org/log/double-free

I was not stablishing the boundaries of my data correctly because I didn't assign correctly a null pointer (newbie mistake). Now everything is ok.


All times are GMT -5. The time now is 09:06 AM.