swarm-support
[Top][All Lists]
Advanced

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

RE: Memory exhaustion


From: Fred Wan
Subject: RE: Memory exhaustion
Date: Fri, 21 Dec 2001 15:27:31 +0100

Thanks for the response.

> Here is how the code could be changed to use FAction instead of

I remember we had a discussion about FAction a while ago. I find the
language construction difficult to understand, yet I appreciate that it is
important to use it. Especially the argument of type FArguments to FCall is
puzzling.


>          try{
> !         Selector sel =
> !            new Selector(Class.forName("TargetBug"),
> "uniformMotion", false);
> !
> !         FArguments fa = new FArgumentsImpl (getZone (), sel);
> !         FCall fc = new FCallImpl (getZone (),
> targetList.getFirst (), sel, fa);

The 'Object' argument seems strange... Why an object and not a class (I am
aware that this is a rhetorical question)?
I've changed my code to this, it crashes here, and the debugging output
isn't very informative either (see below). I've tried to pop another object
from the list and also to cast it to TargetBug but that doesn't help.

The last thing that happens in buildActions is creating the action for the
schedule to produce new TargetBugs. I've tried to find a way to do this with
FActionCreating, but I was unsuccessful (didn't find a version of 'at' for a
schedule).


       try {
        createSchedule.at$createActionTo$message
        (1, this, new Selector(this.getClass(), "createAgents", false));
       } catch (Exception e) {
       System.err.println("Exception in createAgents: " + e.getMessage());
       System.exit(1);
       }


Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
#1  0x416950 in callMethodV (meth=0xa25b04c, func=0x0, obj=0xa70af78,
    args=0x25aeb24, ret=0x25ae640) at /src/kaffe/config/i386/common.h:38
#2  0x41980c in Kaffe_CallVoidMethodV (env=0x4573a4, obj=0xa70af78,
    meth=0xa25b04c, args=0x25aeb24) at /src/kaffe/kaffe/kaffevm/jni.c:1068
#3  0x41987b in Kaffe_CallVoidMethod (env=0x4573a4, obj=0xa70af78,
    meth=0xa25b04c) at /src/kaffe/kaffe/kaffevm/jni.c:1082
#4  0x143c331f in __builtin_avcall ()
#5  0x142af38b in java_call (fa=0xa732098)
    at /src/Swarm/swarm/src/defobj/_fcall.m:185
#6  0x14297eec in _i_FCall_c__performCall (self=0xa732a90, _cmd=0x143fe738)
    at /src/Swarm/swarm/src/defobj/FCall.m:710
#7  0x14277b55 in _i_FAction_c___performAction__ (self=0xa6d40e8,
    _cmd=0x14403950, anActivity=0xa6d4060)
    at /src/Swarm/swarm/src/activity/Action.m:167
#8  0x142854d9 in _i_Activity_c___run_ (self=0xa6d4060, _cmd=0x14403930)
    at /src/Swarm/swarm/src/activity/XActivity.m:239
#9  0x142853e2 in _i_Activity_c___run_ (self=0xa73a080, _cmd=0x14403930)
    at /src/Swarm/swarm/src/activity/XActivity.m:189
#10 0x142853e2 in _i_Activity_c___run_ (self=0xa73a150, _cmd=0x14403930)
    at /src/Swarm/swarm/src/activity/XActivity.m:189
#11 0x142853e2 in _i_Activity_c___run_ (self=0xa739f18, _cmd=0x14403930)
    at /src/Swarm/swarm/src/activity/XActivity.m:189
---Type <return> to continue, or q <return> to quit---
#12 0x142853e2 in _i_Activity_c___run_ (self=0xa73a6d8, _cmd=0x14403930)
    at /src/Swarm/swarm/src/activity/XActivity.m:189
#13 0x142853e2 in _i_Activity_c___run_ (self=0xa738da8, _cmd=0x144038e8)
    at /src/Swarm/swarm/src/activity/XActivity.m:189
#14 0x142851ab in _i_Activity_c__run (self=0xa738da8, _cmd=0x14403978)
    at /src/Swarm/swarm/src/activity/XActivity.m:76
#15 0x14285770 in _i_Activity_c__nextAction (self=0xa738da8,
_cmd=0x14401b18)
    at /src/Swarm/swarm/src/activity/XActivity.m:398
#16 0x14280e86 in _i_ScheduleActivity_c__stepUntil_ (self=0xa738da8,
    _cmd=0x143d0968, tVal=1) at
/src/Swarm/swarm/src/activity/Schedule.m:1056
#17 0x141fd916 in _i_ControlPanel__startInActivity_ (self=0xa6d2a58,
    _cmd=0x143d1188, activityID=0xa738da8)
    at /src/Swarm/swarm/src/simtoolsgui/ControlPanel.m:97
#18 0x141fe968 in _i_GUISwarm__go (self=0xa6cab90, _cmd=0xa73a6a8)
    at /src/Swarm/swarm/src/simtoolsgui/GUISwarm.m:56
#19 0x141c8200 in Java_swarm_simtoolsgui_GUISwarmImpl_go (env=0x4573a4,
    jobj=0xa206a20) at simtoolsgui_stubs.m:151
#20 0xa3caaab in ?? ()
#21 0xa1ec569 in ?? ()
#22 0x416950 in callMethodV (meth=0xa17aec0, func=0xa1ce8c8, obj=0x0,
    args=0x25af8f8, ret=0x25af6fc) at /src/kaffe/config/i386/common.h:38
#23 0x41d68d in Kaffe_CallStaticVoidMethodV (env=0x4573a4, cls=0xa161648,
    meth=0xa17aec0, args=0x25af8f8) at /src/kaffe/kaffe/kaffevm/jni.c:2343
---Type <return> to continue, or q <return> to quit---
#24 0x41d6fb in Kaffe_CallStaticVoidMethod (env=0x4573a4, cls=0xa161648,
    meth=0xa17aec0) at /src/kaffe/kaffe/kaffevm/jni.c:2356
#25 0x401303 in main2 (env=0x4573a4, argv=0xa040fd0, farg=2, argc=0)
    at /src/kaffe/kaffe/kaffe/main.c:193
#26 0x401198 in main (argc=2, argv=0xa040fd0)
    at /src/kaffe/kaffe/kaffe/main.c:113
#27 0x610022c5 in libtk80_a_iname ()
#28 0x61002855 in libtk80_a_iname ()
#29 0x45667f in cygwin_crt0 ()
#30 0x40103b in mainCRTStartup ()
#31 0x77f1ba06 in ?? ()
(gdb) q


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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