swarm-support
[Top][All Lists]
Advanced

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

Re: Seized swarm application.


From: William S. Shu
Subject: Re: Seized swarm application.
Date: Tue, 11 May 1999 15:16:15 +0100


Discovered the error after a few days search!  Objects were being created in
the wrong order w.r.t. Mosquito (but not with Person), and in a
completely-separate-and-guaranteed-working piece of code!  Unfortunately,
stop signals were not implemented in [my installation? of cygnus B19] GDB,
and break signals simply exited the debugger!

Thanks

William.


-----Original Message-----
From: William S. Shu <address@hidden>
To: address@hidden <address@hidden>
Date: 11 May 1999 12:02
Subject: Seized swarm application.


>I have two classes: person and mosquito which have more or less the same
>methods.  For the time-being, I use a single file which is conditionally
>compiled for mosquito and person.  (It is originally written with person in
>mind, so I use #define to convert the Person class -- whereever used -- to
a
>Mosquito class.  The technique has worked with other closely related
classes
>used in this very simulation.)
>
>The trouble is that the program starts loading but continues by thrashing
>(busy but doing nothing).  It seems to have a lot of disk activity with no
>other visible action for indefinite periods -- left it for over 30 minutes
>once.
>
>However, the program runs well without the methods (appart from the step
>method, which does nothing.  step is needed for scheduling the mosquito
>swarm).  I thought the #define could be the problem.  So I removed them and
>copied manually all the needed methods, but the same thing happened.
>
>Under GDB, the offending level seems to be:
>66000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTCL80.DLL
>
>A curious thing is that even the Mosquito methods (all but one) used to be
>compiled and run with the Person methods with no problem, and still do.
>What could be wrong?  am I reaching some internal limit on possible (total)
>methods, say?
>
>
>I use Swarm-1.3.1, GNU gdb 4.16-B19,  cygwin B19 in a Windows 95
>environment.
>Excerpts of program behaviour under GDB is shown below.
>
>Thanks a lot
>
>William.
>
>
>Program behaviour:
>
>Current directory is c:/u/mosq/proto/
>GNU gdb 4.16-B19
>Copyright 1997 Free Software Foundation, Inc.
>GDB is free software [deleted GDB info]...
>(gdb) break 64
>Breakpoint 1 at 0x403a21: file PersonMain.m, line 64.
>(gdb) run
>Starting program: /u/mosq/proto/persons.exe
>7fe90000:/WINDOWS/SYSTEM/COMDLG32.DLL
>66300000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTK80.DLL
>bff30000:/WINDOWS/SYSTEM/GDI32.DLL
>bff60000:/WINDOWS/SYSTEM/USER32.DLL
>10000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGWINB19.DLL
>bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL
>bfed0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
>66000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTCL80.DLL
>7c6c0000:/WINDOWS/SYSTEM/WSOCK32.DLL
>bfb50000:/WINDOWS/SYSTEM/SHLWAPI.DLL
>70200000:/WINDOWS/SYSTEM/WININET.DLL
>
>Breakpoint 1, main (argc=1, argv=0x28dfc8c) at PersonMain.m:66
>(gdb) cont
>Continuing.
>
>**** program thrashes (makes hard disk access) until killed. ****
>
>Debugger exited abnormally with code 255
>
>
>
>
>
>
>Current directory is c:/u/mosq/proto/
>GNU gdb 4.16-B19
>Copyright 1997 Free Software Foundation, Inc.
>GDB is free software [deleted GDB info]...
>(gdb) break 64
>Breakpoint 1 at 0x403afb: file PersonMain.m, line 64.
>(gdb) run
>Starting program: /u/mosq/proto/persons.exe
>7fe90000:/WINDOWS/SYSTEM/COMDLG32.DLL
>66300000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTK80.DLL
>bff30000:/WINDOWS/SYSTEM/GDI32.DLL
>bff60000:/WINDOWS/SYSTEM/USER32.DLL
>10000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGWINB19.DLL
>bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL
>bfed0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
>66000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTCL80.DLL
>
>
>**** program thrashes (makes hard disk access) until killed. ****
>
>7c6c0000:/WINDOWS/SYSTEM/WSOCK32.DLL
>bfb50000:/WINDOWS/SYSTEM/SHLWAPI.DLL
>70200000:/WINDOWS/SYSTEM/WININET.DLL
>
>Program exited with code 0201000.
>(gdb) where
>No stack.
>(gdb) quit
>
>Debugger finished
>
>
>
>
>
>**** program WITHOUT the methods run now and is OKAY ****
>
>Current directory is c:/u/mosq/proto/
>GNU gdb 4.16-B19
>Copyright 1997 Free Software Foundation, Inc.
>GDB is free software [deleted GDB info]...
>(gdb) break 64
>Breakpoint 1 at 0x403afb: file PersonMain.m, line 64.
>(gdb) run
>Starting program: /u/mosq/proto/persons.exe
>7fe90000:/WINDOWS/SYSTEM/COMDLG32.DLL
>66300000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTK80.DLL
>bff30000:/WINDOWS/SYSTEM/GDI32.DLL
>bff60000:/WINDOWS/SYSTEM/USER32.DLL
>10000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGWINB19.DLL
>bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL
>bfed0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
>66000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTCL80.DLL
>7c6c0000:/WINDOWS/SYSTEM/WSOCK32.DLL
>bfb50000:/WINDOWS/SYSTEM/SHLWAPI.DLL
>70200000:/WINDOWS/SYSTEM/WININET.DLL
>
>Program exited normally.
>
>
>
>**** program *WITH* the methods run now and is *NOT* okay ****
>
>(gdb) run
>Starting program: /u/mosq/proto/persons.exe
>COMDLG32.DLL (symbols previously loaded)
>CYGTK80.DLL (symbols previously loaded)
>GDI32.DLL (symbols previously loaded)
>USER32.DLL (symbols previously loaded)
>CYGWINB19.DLL (symbols previously loaded)
>KERNEL32.DLL (symbols previously loaded)
>ADVAPI32.DLL (symbols previously loaded)
>CYGTCL80.DLL (symbols previously loaded)
>WSOCK32.DLL (symbols previously loaded)
>SHLWAPI.DLL (symbols previously loaded)
>WININET.DLL (symbols previously loaded)
>
>Program exited with code 0201000.
>(gdb) WSOCK32.DLL (symbols previously loaded)
>Undefined command: "WSOCK32".  Try "help".
>(gdb) quit
>
>Debugger finished
>
>
>
>
>**** program WITHOUT the methods run now and is OKAY ****
>
>Current directory is c:/u/mosq/proto/
>GNU gdb 4.16-B19
>Copyright 1997 Free Software Foundation, Inc.
>GDB is free software[deleted GDB info]...
>(gdb) break 64
>Breakpoint 1 at 0x403afb: file PersonMain.m, line 64.
>(gdb) run
>Starting program: /u/mosq/proto/persons.exe
>cont
>7fe90000:/WINDOWS/SYSTEM/COMDLG32.DLL
>66300000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTK80.DLL
>bff30000:/WINDOWS/SYSTEM/GDI32.DLL
>bff60000:/WINDOWS/SYSTEM/USER32.DLL
>10000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGWINB19.DLL
>bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL
>bfed0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
>66000000:/APPS/SWARM-1.3.1/PACKAGES/SWARM/BIN/CYGTCL80.DLL
>7c6c0000:/WINDOWS/SYSTEM/WSOCK32.DLL
>bfb50000:/WINDOWS/SYSTEM/SHLWAPI.DLL
>70200000:/WINDOWS/SYSTEM/WININET.DLL
>
>Breakpoint 1, main (argc=1, argv=0x28dfc8c) at PersonMain.m:65
>(gdb) Continuing.
>.... [deleted material] ...
>
>


                  ==================================
   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]