CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

corrupted double-linked list

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2014, 11:06
Default corrupted double-linked list
  #1
New Member
 
Will
Join Date: Dec 2011
Posts: 17
Rep Power: 14
willzyba is on a distinguished road
Hi,

Can anyone help me to understand why I get this error.
Code:
*** glibc detected *** waveFoamLPT: corrupted double-linked list: 0x0000000000c02a50 ***
I've joined Lagrangian Particle Tracking with classical volume of fluid method. Our solution actually runs very nicely and produces the results we expect, but when the program finished and is closing down we get this error.

I've tried recompiling all of OpenFOAM incase I had some old out of date library. We've also tried this on another comptuer, with a similar setup.

What we've essentially done now, is copy our working copy of WaveFoam (which is really just icoFoam)

and added to the Make/options these two line
Code:
    -llagrangian \
    -lsolidParticle
giving us
Code:
EXE_INC = \
    -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/transportModels/incompressible/lnInclude \
    -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
    -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
    -I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/fvOptions/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude \
    -DOFVERSION=220 \
    -DEXTBRANCH=0 \
    -DXVERSION=$(WAVES_XVERSION) \
    -I$(WAVES_SRC)/waves2Foam/lnInclude \
    -I$(WAVES_SRC)/waves2FoamSampling/lnInclude \
    -I$(LIB_SRC)/lagrangian/basic/lnInclude 

EXE_LIBS = \
    -limmiscibleIncompressibleTwoPhaseMixture \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
    -lfiniteVolume \
    -lfvOptions \
    -lmeshTools \
    -lsampling \
    -L$(WAVES_LIBBIN) \
    -lwaves2Foam \
    -lwaves2FoamSampling \
    -llagrangian \
    -lsolidParticle
After a lot of experimentation, it appear this arises as soon as I link to
Code:
    -llagrangian \
    -lsolidParticle
We have changed nothing else in the code.

Will

Last edited by willzyba; September 17, 2014 at 13:05.
willzyba is offline   Reply With Quote

Old   September 18, 2014, 13:15
Default Soved
  #2
New Member
 
Will
Join Date: Dec 2011
Posts: 17
Rep Power: 14
willzyba is on a distinguished road
Linking with -lsolidParticle caused this.

As we were replacing many of the functionality in solidParticle with out own, then I guess the final executable ended up with two versions of similar code. For some reason this got through linking, but crashed the program on exit.
willzyba is offline   Reply With Quote

Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Continuing User Defined Real Gas Model issues aeroman FLUENT 6 April 8, 2016 04:34
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 07:09
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23


All times are GMT -4. The time now is 06:08.