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

mistake after nparcels increased, dieselFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2009, 04:45
Default mistake after nparcels increased, dieselFoam
  #1
New Member
 
Yejun Gong
Join Date: Mar 2009
Posts: 21
Rep Power: 18
yejungong is on a distinguished road
Hi,

I am running my version of dieselFoam using osx system. and my code works fine when nparcels=5000.

but after I increased the number of parcels, nparcels, to 20000, I got the following error messages, attached in the bottom.

I have installed binutils which includes gaddr2line.

is it happened because of osx system?

Any help is highly appreciated!

Yejun



-----------------------
Evolving Spray
#0 Foam::error:rintStack(Foam::Ostream&)unable to read unknown load command 0x1b
unable to read unknown load command 0x1e
in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libOpenFOAM.dylib"
#1 Foam::sigSegv::sigSegvHandler(int)unable to read unknown load command 0x1b
unable to read unknown load command 0x1e
in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libOpenFOAM.dylib"
#2 _sigtrampgaddr2line: /usr/lib/libSystem.B.dylib: cannot get addresses from archive addr2line failed
#3 _sigtrampgaddr2line: /usr/lib/libSystem.B.dylib: cannot get addresses from archive
addr2line failed#4 void Foam::Cloud<Foam:arcel>::move<Foam::spray>(Foam: :spray&)unable to read unknown load command 0x1b
unable to read unknown load command 0x1e in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/yegong-1.5/lib/darwinIntelDPOpt/libmydieselSpray.dylib"
#5 Foam::spray::move()unable to read unknown load command 0x1b
unable to read unknown load command 0x1e in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/yegong-1.5/lib/darwinIntelDPOpt/libmydieselSpray.dylib"
#6 Foam::spray::evolve()unable to read unknown load command 0x1b
yejungong is offline   Reply With Quote

Old   July 9, 2009, 05:31
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by yejungong View Post
Hi,

I am running my version of dieselFoam using osx system. and my code works fine when nparcels=5000.

but after I increased the number of parcels, nparcels, to 20000, I got the following error messages, attached in the bottom.
I doubt, that the extra 15k particles pushed it over the edge memory-wise, but have you checked how much memory the 5k-case needed?

BTW: is this the first time-step with particles?

Quote:
Originally Posted by yejungong View Post
I have installed binutils which includes gaddr2line.

is it happened because of osx system?
I doubt it. The "unable to read unknown load command 0x1b" is an OS X-problem. But it was not the cause of the catastrophe.

Quote:
Originally Posted by yejungong View Post
Any help is highly appreciated!

Yejun



-----------------------
Evolving Spray
#0 Foam::error:rintStack(Foam::Ostream&)unable to read unknown load command 0x1b
unable to read unknown load command 0x1e
in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libOpenFOAM.dylib"
#1 Foam::sigSegv::sigSegvHandler(int)unable to read unknown load command 0x1b
unable to read unknown load command 0x1e
in "/Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libOpenFOAM.dylib"
0x1b
sigSev points to a "I accessed an address outside of an array"-problem. Which leads to the usual mantra: "have you got a debug-version handy"

Bernhard
gschaider is offline   Reply With Quote

Old   July 9, 2009, 05:44
Default
  #3
New Member
 
Yejun Gong
Join Date: Mar 2009
Posts: 21
Rep Power: 18
yejungong is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I doubt, that the extra 15k particles pushed it over the edge memory-wise, but have you checked how much memory the 5k-case needed?

BTW: is this the first time-step with particles?
thanks, Bennard,

this error message happened after the injected parcels accessed 8000, not the first time step. and if I use nparcels=8000, my code works.

the 8000 case needs around 120M memory. and I have 8GB of memory. it should be enough.

Yejun
yejungong is offline   Reply With Quote

Old   July 9, 2009, 05:53
Default
  #4
New Member
 
Yejun Gong
Join Date: Mar 2009
Posts: 21
Rep Power: 18
yejungong is on a distinguished road
Quote:
Originally Posted by gschaider View Post

sigSev points to a "I accessed an address outside of an array"-problem. Which leads to the usual mantra: "have you got a debug-version handy"

Bernhard
sorry, what's "debug-version handy"?

I do defined some new variables in my code, but they are all pointers or scalars. no one is array.
yejungong is offline   Reply With Quote

Old   July 9, 2009, 10:47
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by yejungong View Post
sorry, what's "debug-version handy"?
What I meant to say was: compile yourself a debug-version of OF (see for instructions elsewhere on the forum) and run your program in that. Most causes for segmentation-faults ("array out of bounds" basically) are checked for in the debug-version

Quote:
Originally Posted by yejungong View Post
I do defined some new variables in my code, but they are all pointers or scalars. no one is array.
No matter what you do: as soon as you start developing you should have a debug-version. It saves you a lot of time
gschaider is offline   Reply With Quote

Old   July 10, 2009, 03:17
Default
  #6
New Member
 
Yejun Gong
Join Date: Mar 2009
Posts: 21
Rep Power: 18
yejungong is on a distinguished road
Quote:
Originally Posted by gschaider View Post
What I meant to say was: compile yourself a debug-version of OF (see for instructions elsewhere on the forum) and run your program in that. Most causes for segmentation-faults ("array out of bounds" basically) are checked for in the debug-version
thanks a lot, Bernhard.

I have compiled the debug version, and I will learn how to use it first.

Yejun
yejungong is offline   Reply With Quote

Old   March 6, 2017, 08:39
Default
  #7
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 11
zhangyan is on a distinguished road
Hi Yejun,
I met the same problem.
Did you solve this problem eventually
?
zhangyan 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
gasoline spray simulation using dieselFoam qhdgj OpenFOAM Running, Solving & CFD 10 July 10, 2016 01:55
Running dieselFoam error adorean OpenFOAM Running, Solving & CFD 119 February 1, 2016 14:41
axi-symmetric mesh of dieselFoam az1362f OpenFOAM Running, Solving & CFD 2 June 27, 2009 11:32
DieselFoam does not restart from latestTime lord_kossity OpenFOAM Bugs 8 February 21, 2009 13:54
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 16:41.