*** glibc detected *** free(): invalid pointer
Hello,
I working on a coding a utility, it completes, and when it ends I get this less than graceful exit: Code:
ExecutionTime = 52.25 s ClockTime = 54 s thanks, James |
Greetings James,
That's usually due to freeing an object from memory more than once... usually crashes on the second attempt to delete the object. Also happens if you have two libraries loaded into memory, which manipulate the same object name. Or even worst, two libraries of the same file name (or similar), using identically named classes... Best regards, Bruno |
Thanks Bruno
Bruno,
Thanks for the pointers...ha ha. :D Jim |
Hi
I'm trying to create a pointer list of matrices by adding following lines to icoFoam (OpenFOAM 2.3.0, Ubuntu 14.04, gcc version: 4.8.2), the code compiles with out error but I get the following run time error, How ever I tried I couldn't find the solution. Please help: Code:
... Code:
Create time Merry Christmas Bests Bahram |
any ideas?!
|
Greetings Bahram,
Quote:
If you had spent the time to lay out the ideas you've tried out, it would have been easier to try and point out what you might be doing wrong. Since you didn't, it took me around 25 minutes to test, research and write this post with the answers. That might not look like a lot of time, but now multiply that by the number of posts I have on my to-do list :( I'm not the only one who answers questions here on the forum, but to me it seems we are too few to be able to answer to everyone... Anyway, when it comes to OpenFOAM, it's best to search for similar/identical situations in its source code. I've used the following command: Code:
find $FOAM_SOLVERS -name "*.[CH]" -type f | xargs grep PtrList And then I looked into the file "multiphase/compressibleMultiphaseInterFoam/pEqn.H". It seems that there are two things you're doing wrong:
Code:
PtrList<fvScalarMatrix> PEqns(1); Bruno |
Dear Bruno
Thanks a lot for your nice reply and also all the time which you spend for answering our questions :). I'll give it a try. Bests Bahram |
Hi there,
I am getting a similar error when I try to run the addSwirlAndRotation function, from the Turbomachinery course (see below). The error output begins: *** Error in `addSwirlAndRotation': free(): invalid pointer: 0x00007ffe48afc1c8 *** I managed to compile the function without any errors but I get this error when I execute it. (running OF3.0 on ubuntu) I am not sure how this relates to previous comments by wyldckat or Bahram. Any help would be much appreciated. Best wishes, Graham Turbomachinery course: http://openfoamwiki.net/index.php/Si...nical_diffuser |
Never mind, I have figured it out now. I updated to OF5.0 and now it works.
|
Quote:
Which version of ubuntu are you using? I have similar problem with OpenFOAM-2.3.1. My solver worked well that this error happened when I tried to do some fixing with paraView. I have Ubuntu-16.04 and I am wondering if I can get rid of the error by upgrading my OpenFOAM? Regards, Elham |
Hi there,
My Ubuntu version is 16.04. I think it should work if you upgrade to OF 5.0 Best wishes, Graham |
All times are GMT -4. The time now is 03:15. |