Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8181919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:40:59+00:00 2026-06-07T00:40:59+00:00

i am currently experiencing a problem were i get *** glibc detected *** ./efit:

  • 0

i am currently experiencing a problem were i get

*** glibc detected *** ./efit: free(): invalid next size (fast): 0x00000000006127f0 ***

with the usual memory map and backtrace information that comes with a glibc error. i am, however, unable to find the cause of this problem. it seems like (basically) my entire program is finished by the time this happens. one thing i read online is that this could be due to lack of deallocation.

now, i have been running the program without deallocating a few of my arrays (i was under the impression that deallocation can cause memory leaks but that this will only affect the performance and efficiency of the program while it runs). now, when i start the program fresh, i am running into this error.

is it possible that my previous executions of the program without deallocating my arrays is ‘coming back to haunt me’ in the sense that there is unfree memory from previous executions which i am trying to write to?

if not i am completely confused by this error. any clues on where i should begin to look and/or how i should debug to find it?

for what it is worth, i am using gfortran to compile

EDIT:
while the compilation options did not directly identify this problem at first, it helped me to whittle it away. i was using an integer variable iat for iat=1,natoms in a do loop, and then a few lines later, thought iat was describing a different integer within the bounds of 1,natoms. i was referencing an array outside the bounds of the array. when i corrected a few of the warnings listed by your compilation options, this error turned into a much clearer description of the error: Fortran runtime error: Index '7' of dimension 1 of array 'isnormed' above upper bound of 6.

What was it that kept this error from being produced the first time? the only reach changes i made which the compilation warnings told me about were changing read(fout, '(a)'), line100' toread(fout, ‘(a)’) line100′ (removing the comma) and changing old style character descriptions character*100 line100 to newer character(100) line100 descriptions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:41:02+00:00Added an answer on June 7, 2026 at 12:41 am

    An error from a previous run of your program cannot effect the next run. The OS loads a new version of the executable and provides it with memory. Only if you have the program write out info to a file and read it in on the next run can their be transfer of information.

    Memory is automatically deallocated by the OS when the program finishes. Additionally, for Fortran >=95, allocatable arrays that are local to a procedure are automatically deallocated by Fortran when the procedure returns.

    Most likely you have a memory usage problem that is corrupting the internal structures that describe memory that is used by your program. With Fortran this is possible by having argument mismatched between caller and callee, by indexing past the end of an array, or with pointers. Are you using pointers? If not, the first two are typically easy to guard against in this era. Place your procedures into modules and “use” those modules. This will allow the compiler to check argument consistency. Compile with the option for run-time checking of subscripts. This will find out if you are indexing past the end of an array and storing in other memory.

    With gfortran, try the following compiler options: -O2 -fimplicit-none -Wall -Wline-truncation -Wcharacter-truncation -Wsurprising -Waliasing -Wimplicit-interface -Wunused-parameter -fwhole-file -fcheck=all -std=f2008 -pedantic -fbacktrace. If some of these identify too many warnings, the important one for this issue is fcheck=all, or even narrower, fcheck=bounds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently experiencing a problem with 'hot code replace' not working on Eclipse Galileo
I'm currently experiencing click events intermittently not firing. Anyone else ever had this problem?
I hope someone can assist me with the problem I'm currently experiencing. We have
I am currently experiencing a weird caching problem it would seem. When I load
i'm currently experiencing a little problem. I'm using nhibernate with around 40 entities mapped
I'm currently experiencing a very strange problem with a CComboBox used within a CFormView
I'm currently experiencing a problem while trying to set up a project to deploy
I am currently experiencing a problem with sorting a result by a data column
I'm currently experiencing an interesting problem. My Situation: I am currently developing a web
I am currently experiencing a known problem with OpenSSL on Ubuntu 12.04. This problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.