CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Error glibc detected munmap_chunk invalid pointer

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 2, 2008, 08:15
Default Hello World. When trying to
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Hello World.

When trying to run this case I get this message.
I don't know what to do now.
Is this because I used some kind of wedge-boundaries?

http://therealsega.th.funpic.de/open...se2DAxi.tar.gz

/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : interFoam . .
Date : Jun 02 2008
Time : 14:10:25
Host : M1530
PID : 6469
Root : /home/sega/OpenFOAM/sega-1.4.1/run/rise2DAxi
Case : .
Nprocs : 1
Create time

Create mesh for time = 0


Reading environmentalProperties
Reading field pd

Reading field gamma

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Calculating field g.h

time step continuity errors : sum local = 0, global = 0, cumulative = 0
DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
*** glibc detected *** interFoam: munmap_chunk(): invalid pointer: 0x08f838d0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(cfree+0x1bb)[0xb6e5792b]
/home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7030a71]
/home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb7030acd]
interFoam(_ZN4Foam7PtrListINS_5FieldIdEEED2Ev+0x46 )[0x806de16]
interFoam(_ZN4Foam8fvMatrixIdED1Ev+0x59)[0x806dfd9]
interFoam[0x806163d]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb6e00050]
interFoam(_ZN4Foam11regIOobject14readIfModifiedEv+ 0x1f5)[0x805f501]
======= Memory map: ========
08048000-080de000 r-xp 00000000 08:01 459924 /home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/interFoam
080de000-080df000 r--p 00096000 08:01 459924 /home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/interFoam
080df000-080e0000 rw-p 00097000 08:01 459924 /home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/interFoam
080e0000-09040000 rw-p 080e0000 00:00 0 [heap]
b618e000-b6279000 rw-p b618e000 00:00 0
b6364000-b6786000 rw-p b6364000 00:00 0
b67fc000-b6824000 rw-p b67fc000 00:00 0
b684c000-b6a74000 rw-p b684c000 00:00 0
b6a74000-b6a7d000 r-xp 00000000 08:01 129878 /lib/tls/i686/cmov/libnss_files-2.6.1.so
b6a7d000-b6a7f000 rw-p 00008000 08:01 129878 /lib/tls/i686/cmov/libnss_files-2.6.1.so
b6a7f000-b6a87000 r-xp 00000000 08:01 129882 /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6a87000-b6a89000 rw-p 00007000 08:01 129882 /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6a97000-b6a99000 rw-p b6a97000 00:00 0
b6a99000-b6a9b000 r-xp 00000000 08:01 129931 /lib/tls/i686/cmov/libutil-2.6.1.so
b6a9b000-b6a9d000 rw-p 00001000 08:01 129931 /lib/tls/i686/cmov/libutil-2.6.1.so
b6a9d000-b6a9e000 rw-p b6a9d000 00:00 0
b6a9e000-b6ab2000 r-xp 00000000 08:01 129869 /lib/tls/i686/cmov/libnsl-2.6.1.so
b6ab2000-b6ab4000 rw-p 00013000 08:01 129869 /lib/tls/i686/cmov/libnsl-2.6.1.so
b6ab4000-b6ab6000 rw-p b6ab4000 00:00 0
b6ab6000-b6aea000 r-xp 00000000 08:01 438077 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-pal.so.0.0.0
b6aea000-b6aeb000 r--p 00033000 08:01 438077 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-pal.so.0.0.0
b6aeb000-b6aec000 rw-p 00034000 08:01 438077 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-pal.so.0.0.0
b6aec000-b6b0e000 rw-p b6aec000 00:00 0
b6b0e000-b6b5d000 r-xp 00000000 08:01 438079 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-rte.so.0.0.0
b6b5d000-b6b5e000 r--p 0004f000 08:01 438079 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-rte.so.0.0.0
b6b5e000-b6b60000 rw-p 00050000 08:01 438079 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libopen-rte.so.0.0.0
b6b60000-b6b62000 r-xp 00000000 08:01 359452 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/liblagrangian.so
b6b62000-b6b63000 r--p 00001000 08:01 359452 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/liblagrangian.so
b6b63000-b6b64000 rw-p 00002000 08:01 359452 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/liblagrangian.so
b6b64000-b6b65000 rw-p b6b64000 00:00 0
b6b65000-b6bd3000 r-xp 00000000 08:01 438070 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libmpi.so.0.0.0
b6bd3000-b6bd4000 r--p 0006d000 08:01 438070 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libmpi.so.0.0.0
b6bd4000-b6bdb000 rw-p 0006e000 08:01 438070 /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/openmpi-1.2.3/platforms/linuxGccDPOpt/lib /libmpi.so.0.0.0
b6bdb000-b6be1000 rw-p b6bdb000 00:00 0
b6be1000-b6bf3000 r-xp 00000000 08:01 359465 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libz.so
b6bf3000-b6bf4000 r--p 00011000 08:01 359465 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libz.so
b6bf4000-b6bf5000 rw-p 00012000 08:01 359465 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libz.so
b6bf5000-b6d5a000 r-xp 00000000 08:01 359464 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmeshTools.so
b6d5a000-b6d5c000 r--p 00164000 08:01 359464 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmeshTools.so
b6d5c000-b6d5e000 rw-p 00166000 08:01 359464 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmeshTools.so
b6d5e000-b6dde000 r-xp 00000000 08:01 359481 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libtriSurface.so
b6dde000-b6ddf000 r--p 00080000 08:01 359481 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libtriSurface.so
b6ddf000-b6de0000 rw-p 00081000 08:01 359481 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libtriSurface.so
b6de0000-b6de1000 rw-p b6de0000 00:00 0
b6de1000-b6de8000 r-xp 00000000 08:01 380245 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/openmpi-1.2.3/libPstream.so
b6de8000-b6de9000 r--p 00006000 08:01 380245 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/openmpi-1.2.3/libPstream.so
b6de9000-b6dea000 rw-p 00007000 08:01 380245 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/openmpi-1.2.3/libPstream.so
b6dea000-b6f2e000 r-xp 00000000 08:01 129819 /lib/tls/i686/cmov/libc-2.6.1.so
b6f2e000-b6f2f000 r--p 00143000 08:01 129819 /lib/tls/i686/cmov/libc-2.6.1.so
b6f2f000-b6f31000 rw-p 00144000 08:01 129819 /lib/tls/i686/cmov/libc-2.6.1.so
b6f31000-b6f34000 rw-p b6f31000 00:00 0
b6f34000-b6f48000 r-xp 00000000 08:01 129904 /lib/tls/i686/cmov/libpthread-2.6.1.so
b6f48000-b6f4a000 rw-p 00013000 08:01 129904 /lib/tls/i686/cmov/libpthread-2.6.1.so
b6f4a000-b6f4c000 rw-p b6f4a000 00:00 0
b6f4c000-b6f56000 r-xp 00000000 08:01 461672 /home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libgcc_s.so.1
b6f56000-b6f57000 rw-p 00009000 08:01 461672 /home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libgcc_s.so.1
b6f57000-b6f7a000 r-xp 00000000 08:01 129851 /lib/tls/i686/cmov/libm-2.6.1.so
b6f7a000-b6f7c000 rw-p 00023000 08:01 129851 /lib/tls/i686/cmov/libm-2.6.1.so
b6f7c000-b6f7d000 rw-p b6f7c000 00:00 0
b6f7d000-b705b000 r-xp 00000000 08:01 461682 /home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libstdc++.so.6.0.9
b705b000-b705f000 r--p 000dd000 08:01 461682 /home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libstdc++.so.6.0.9
b705f000-b7060000 rw-p 000e1000 08:01 461682 /home/sega/OpenFOAM/linux/gcc-4.2.1/lib/libstdc++.so.6.0.9
b7060000-b7066000 rw-p b7060000 00:00 0
b7066000-b7068000 r-xp 00000000 08:01 129844 /lib/tls/i686/cmov/libdl-2.6.1.so
b7068000-b706a000 rw-p 00001000 08:01 129844 /lib/tls/i686/cmov/libdl-2.6.1.so
b706e000-b7075000 r-xp 00000000 08:01 129874 /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b7075000-b7077000 rw-p 00006000 08:01 129874 /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b7077000-b7078000 rw-p b7077000 00:00 0
b7078000-b73e0000 r-xp 00000000 08:01 359500 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so
b73e0000-b73e8000 r--p 00367000 08:01 359500 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so
b73e8000-b73eb000 rw-p 0036f000 08:01 359500 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so
b73eb000-b73ef000 rw-p b73eb000 00:00 0
b73ef000-b7e9a000 r-xp 00000000 08:01 359456 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libfiniteVolume.so
b7e9a000-b7eb2000 r--p 00aaa000 08:01 359456 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libfiniteVolume.so
b7eb2000-b7eb6000 rw-p 00ac2000 08:01 359456 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libfiniteVolume.so
b7eb6000-b7eb9000 rw-p b7eb6000 00:00 0
b7eb9000-b7f06000 r-xp 00000000 08:01 359453 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libincompressibleTransportM odels.so
b7f06000-b7f07000 r--p 0004c000 08:01 359453 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libincompressibleTransportM odels.so
b7f07000-b7f08000 rw-p 0004d000 08:01 359453 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libincompressibleTransportM odels.so
b7f08000-b7f09000 rw-p b7f08000 00:00 0
b7f09000-b7f71000 r-xp 00000000 08:01 359485 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libinterfaceProperties.so
b7f71000-b7f72000 r--p 00068000 08:01 359485 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libinterfaceProperties.so
b7f72000-b7f73000 rw-p 00069000 08:01 359485 /home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libinterfaceProperties.so
b7f73000-b7f75000 rw-p b7f73000 00:00 0
b7f75000-b7f8f000 r-xp 00000000 08:01 136012 /lib/ld-2.6.1.so
b7f8f000-b7f91000 rw-p 00019000 08:01 136012 /lib/ld-2.6.1.so
bfd22000-bfd39000 rw-p bfd22000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted (core dumped)
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 2, 2008, 14:22
Default Split your wedge into two, one
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Split your wedge into two, one for front and one for back. Have a look at one of the wedge cases in the tutorials (in $FOAM_TUTORIALS)
mattijs is offline   Reply With Quote

Old   June 2, 2008, 15:06
Default I split the wedge in two (fron
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
I split the wedge in two (front & back) but the problem is persistent.

Any other ideas?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 3, 2008, 03:23
Default I think I made a mistake with
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
I think I made a mistake with the pressure reference (PISO) in fvSolution.

I fixed it an now its working.
Maybe that was the problem.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 3, 2008, 04:53
Default Problem seems to be in Foam
  #5
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Problem seems to be in

Foam::PtrList<foam::field<double> >::~PtrList()

which gets called from the destructor of fvMatrix. Is this stock 1.4.1? Can you repost corrected case?
mattijs is offline   Reply With Quote

Old   June 3, 2008, 07:36
Default Here is the case: http://th
  #6
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Here is the case:

http://therealsega.th.funpic.de/open...AxiSend.tar.gz

As you will see, I have uncommented the pdRefCell and Value entry in fvSolution and put a pressure boundary into 0/pd

The case is running and the results look good.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 3, 2008, 18:30
Default Thanks. Ran it in valgrind and
  #7
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Thanks. Ran it in valgrind and all is ok. Only memory leak is from the getpwuid system call.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OF15 glibc error upon successful completion of icoFoam run aunola OpenFOAM Bugs 10 April 24, 2009 03:27
Application sample with glibc error matthias OpenFOAM Post-Processing 1 March 29, 2008 16:24
glibc error Jaishree CD-adapco 0 September 14, 2007 21:23
Invalid pointer handling in tmp%2360T class mbeaudoin OpenFOAM 1 April 24, 2007 12:57
null pointer error Virag FLUENT 0 March 3, 2007 03:12


All times are GMT -4. The time now is 05:59.