You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I was running a program and wanted to set is_outputting_averaged_fields = yes for my simulation. I received an error message and the program was killed. I checked to see if the same thing happened when I ran the original benchmark code oedometer-2d.cfg. When the option was set to no, it ran fine. When I changed it to yes, then I got the same error message.
Checking it with valgrind (shown below), it seems that there is leakage occurring. Could someone check their own fork and see if they have the same problem?
Hi Lam,
A quick confirmation, what is the revision id of the code you are using?
You can check it with the following command:
git log -1 HEAD
The most recent revision is:
commit 5420830
Sorry, I cannot reproduce the Invalid free() / delete / delete[] / realloc() in commit tan2/DynEarthSol@b380249 with valgrind.
Can you provide the commands you are using to compile and debug? And what the compiler do you use?
For instance, my comiler version is: g++ (GCC) 4.8.5 .
I am using following commands to
Compile
make ndims=2 BOOST_ROOT_DIR=/path/to/boost/62 -j4 opt=0
Chase, thanks for looking into this. When I last re-ran the same problem using valgrind, it was stuck and didn't give any outputs (just constantly reiteratively trying to do output 1 maybe); when I ran it without valgrind, it gave the same error and killed itself immediately. It's possible the change is because Nefertiti might have had a compiler update between when I submitted the bug and when I checked the compiler versions. How should I approach the issue again? I was thinking to ask someone else on Nefertiti to try running it so I can see if the error is on my version only and I've somehow messed with something (and need to git pull the original all over) or we can see if it's related to Nefertiti's set-up. What do you think? Is there something else I need to check?
Activity
tan2 commentedon Dec 6, 2023
rclam commentedon Dec 6, 2023
`commit b380249 (HEAD, EhTan/master)
Merge: ac1a328 b071cc6
Author: Eunseo Choi echoi@users.noreply.github.com
Date: Mon Oct 23 08:25:07 2023 -0500
chaseshyu commentedon Dec 7, 2023
Hi @rclam,
Sorry, I cannot reproduce the Invalid free() / delete / delete[] / realloc() in commit tan2/DynEarthSol@b380249 with valgrind.
Can you provide the commands you are using to compile and debug? And what the compiler do you use?
For instance, my comiler version is: g++ (GCC) 4.8.5 .
I am using following commands to
Compile
Debug
valgrind --leak-check=full --show-leak-kinds=all --log-file="valgrind-out.txt" ./dynearthsol2d oedometer-2d.cfgchaseshyu commentedon Jan 4, 2024
Hi @rclam,
With
max_steps = 200is_outputting_averaged_fields = yesquality_check_step_interval = 40I have run commit tan2/DynEarthSol@b380249 and commit tan2/DynEarthSol@0d20bd9 (the commit before merge).
b380249


0d20bd9
Debug of commits both do not have invaild free() memory access.
rclam commentedon Jan 12, 2024
Chase, thanks for looking into this. When I last re-ran the same problem using valgrind, it was stuck and didn't give any outputs (just constantly reiteratively trying to do output 1 maybe); when I ran it without valgrind, it gave the same error and killed itself immediately. It's possible the change is because Nefertiti might have had a compiler update between when I submitted the bug and when I checked the compiler versions. How should I approach the issue again? I was thinking to ask someone else on Nefertiti to try running it so I can see if the error is on my version only and I've somehow messed with something (and need to git pull the original all over) or we can see if it's related to Nefertiti's set-up. What do you think? Is there something else I need to check?