LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-02-2012, 02:44 AM   #1
juaneco2710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 07-05-2012, 12:22 AM   #2
juaneco2710
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
binary, compiling, fortran


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cross Compiling in OpenWRT. Cannot Execute binary file. Ideas? aztroboy Programming 4 02-15-2011 01:36 AM
Help: Opening GenICs binary file, writing to binary file for GADGET-2 (in C) parallax147 Programming 0 10-05-2010 12:06 PM
binary file problem vrdhananjay Programming 3 02-08-2005 07:33 PM
Slight Problem with a Tecplot 10 Macro illiniguy3043 Linux - General 1 12-27-2004 08:13 AM
binary file problem lf412 Linux - General 3 02-05-2003 03:18 PM


All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration