swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] possible memory problem on mac g5


From: Bill Northcott
Subject: Re: [Swarm-Support] possible memory problem on mac g5
Date: Tue, 6 Apr 2004 06:20:00 +1000

Hi Paul

Have you tried the code on a G4 Mac?

Which compiler are you using?

The crash is happening within the Objective-C runtime and as far as I know this has not been used on a G5 before. You are close to the bleeding edge on this.

Bill
On 06/04/2004, at 2:24 AM, Paul Box wrote:

Hello world

I have just set up a G5 mac, and installed swarm (Thanks again Bill!). I have tried running some of my favorite swarm programs, and found that I am getting segmentation faults when too many agents are added to the system. The
problem originally seemed to be memory: the program runs and eventually
crashes with the following message:

Program received signal EXC_BAD_ACCESS, Could not access memory.
objc_msg_lookup (receiver=0x29007265, op=0xf860) at
../../../libobjc/objc/sarray.h:232
232     ../../../libobjc/objc/sarray.h: No such file or directory.

A backtrace gives the following:

(gdb) bt
#0  objc_msg_lookup (receiver=0x29007265, op=0xf860) at
../../../libobjc/objc/sarray.h:232
#1  0x0095691c in objc_msg_lookup (receiver=0x29007265, op=0xf860) at
../../../libobjc/sendmsg.c:150
#2 0x0000c024 in -[Plant colonize].48 (self=0x11800a48, _cmd=0xf860) at
Plant.m:107
#3 0x0000bf68 in -[Plant grow].47 (self=0xf860, _cmd=0xf860) at Plant.m:77 #4 0x00004978 in -[Cell step].45 (self=0x29007265, _cmd=0xf860) at Cell.m:73 #5 0x0099586c in -[Collection_any forEach:].57 (self=0xb36fec, _cmd=0xf860,
aSelector=0xf464) at ../../../../src/collections/Collection.m:216

..... rest deleted....

The [Plant colonize] method is a plant trying to create a new plant somewhere
in the landscape.

The machine has 2.5G of memory. When I run the system profiler, I find that the swarm application is using just under 130M, so memory is apparently not the culprit. I do not have this problem running the same program with the
same parameters on linux or solaris.

Any ideas?

////////////////////////////////////////
// Paul Box
// Aquatic, Watershed, and Earth Resources
// Utah State University

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support




reply via email to

[Prev in Thread] Current Thread [Next in Thread]