swarm-support
[Top][All Lists]
Advanced

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

RE: error


From: Fred Wan
Subject: RE: error
Date: Thu, 26 Sep 2002 17:59:21 +0200

Hi Paul, thanks for your reply. Just at the moment it came in, I was
compiling ExperBug in Objective C, and while doing so I seem to have fixed
most of the problem. I didn't even notice that until I was replying to you
with a rather extensive report... :) As you may remember, I have been using
and installing swarm for a couple of years (about a year ago we had an
elaborate discussion about nesting swarms), and the 'easier' problems like
missing or incorrect paths do usually nog pose a problem anymore. Also, I
leave the system I'm developing swarm sims on alone as much as I can,
exactly to prevent messing up the swarm installation.

Therefore, I still don't understand how this problem could have occurred
overnight (there were no earthquakes and no thunderstorms). Anyway, because
of the output generated by gdb, java was working OK, and the fact that the
sim crashed at a very early stage (swarm initialization), it was not my own
code that was the problem. The question was whether it was something in the
swarm installation or something in my W2K system. I could find no clues for
either cause. While compiling ExperBug in Objective C I had to make some
fixes such as modifying makefiles and copying missing files. It's always
hard to retrace your steps after such an elaborate operation, but I'm sure
copying some of the following files from older swarm installations to
Swarm-2.2/lib was essential:

libshell32.a
libkernel32.a
libuser32.a
libgdi32.a
libadvapi32.a

Swarm still generates odd messages it didn't before, but most of the sims
and demo's work again now.

Thanks for your help,
Fred.

PS Since Swarm has been phased out of our research group (and I'm the only
one who's stubborn enough to go on with it), there is not much enthousiasm
to join the SDG, but I'll make it a demand with my future employer... :)

Below are some fragments from the original message I intended to send, maybe
there's someone who can benefit from it.

Messages from experBug in Objective C (even after compiling it still didn't
work, so the copying was certainly not the only thing) for an OLD version of
swarm:

Fred address@hidden/cygdrive/h/objcswarm/simpleExperBug] $ ./bug.exe
*** event raised for error: InvalidArgument
*** function: _i_LispArchiver_c__lispLoadArchiver_(), file:
/src/Swarm/swarm/src/defobj/LispArchiver.m, line: 218
argument to Archiver lispIn not a list*** execution terminating due to error
/src/Swarm/swarm/src/defobj/Symbol.m:173 -[Error(c) _raiseEvent:]
Aborted (core dumped)
Fred address@hidden/cygdrive/h/objcswarm/simpleExperBug] $

Then I tried it with the latest version (pretest 6). Now the GUI appeared
and the sim seemed to start, but then crashed with the following message:

Fred address@hidden/cygdrive/h/objcswarm/simpleExperBug] $ ./bug.exe
creating Actions

Starting model 1
Model 1 is done
Length of this run = 2051
HDF5-DIAG: Error detected in HDF5 library version: 1.4.2-patch1 thread 0.
Back trace follows.
  #000: /src/hdf5-1.4.2-patch1/src/H5S.c line 515 in H5Sclose(): not a data
space
    major(01): Function arguments
    minor(03): Inappropriate type
*** event raised for error: SaveError
*** function: _i_HDF5_c__drop(), file:
/src/Swarm/swarm/src/defobj/HDF5Object.m, line: 2274
Failed to close vector space*** execution terminating due to error
/src/Swarm/swarm/src/defobj/Symbol.m:173 -[Error(c) _raiseEvent:]
Aborted (core dumped)
Fred address@hidden/cygdrive/h/objcswarm/simpleExperBug] $

At least this seems to be a meaningful message. Then I installed the swarm
demos package which should bypass any errors in my own swarm installation.
Some of them worked, some didn't. Here's which did and didn't:

antsort NO
arborgames NO
asm YES
bank YES
dynamicGraph YES
heatBugs YES
market YES
moustrap YES
sss YES
tipsyBugs YES
turmites YES
vila4 NO

...

I both use Visual Cafe as IDE and debug with that most of the time. If I set
a breakpoint on Global.env.initSwarm(...) and I step into that line it
brings me to a Visual Cafe piece of code called 'ClassLoader.java', if I
then continue the crash occurs. This is the output from gdb:

(gdb) bt
#0  main (argc=2, argv=0xa0118d8) at /src/kaffe/kaffe/kaffe/main.c:83
#1  0x61003fa2 in _libkernel32_a_iname ()
#2  0x610041b9 in _libkernel32_a_iname ()
#3  0x610041f9 in _libkernel32_a_iname ()
#4  0x004557d7 in cygwin_crt0 ()

(gdb) continue
Continuing.
gdb: unknown target exception 0xc0000008 at 0x77fa038c

Program received signal ?, Unknown signal.
0x77fa038c in ?? ()

(gdb) continue
Continuing.
gdb: unknown target exception 0xc0000008 at 0x77fa038c

Program received signal ?, Unknown signal.
0x77fa038c in ?? ()

(gdb) bt
#0  0x77fa038c in ?? ()
#1  0x77f8376e in ?? ()
#2  0x6105230b in _libwinspool_a_iname ()
#3  0x61004579 in _libwinspool_a_iname ()
#4  0x610045d3 in _libwinspool_a_iname ()
#5  0x6108282a in _libwinspool_a_iname ()
#6  0x1a7e09fd in debugabort () at /src/Swarm/swarm/src/misc/debugabort.c:9
#7  0x1a7ad1e3 in _i_Error_c__raiseEvent_ () at
/src/Swarm/swarm/src/defobj/Symbol.m:173
#8  0x1a7b583a in nil_method (receiver=0x0, op=0x1a934758) at
/src/Swarm/swarm/src/defobj/internal.m:637
#9  0x1a7d89b5 in archiver_list_p (obj=0x0) at
/src/Swarm/swarm/src/collections/predicates.m:30
#10 0x1a7aa5a8 in _i_LispArchiver_c__lispLoadArchiver_ (self=0xa639da0,
_cmd=0x1a9140e8, stream=0xa63a260) at
/src/Swarm/swarm/src/defobj/LispArchiver.m:217
#11 0x1a7aa892 in _i_LispArchiver_c___load_ (self=0xa639da0,
_cmd=0x1a914038) at /src/Swarm/swarm/src/defobj/LispArchiver.m:255
#12 0x1a7aa34f in _i_LispArchiver_c__createEnd (self=0xa639da0,
_cmd=0x1a915ce8) at /src/Swarm/swarm/src/defobj/LispArchiver.m:184
#13 0x1a7b050b in initDefobj (_arguments=0xa620cb0) at
/src/Swarm/swarm/src/defobj/defobj.m:169
#14 0x1a6e9f84 in _i_SwarmEnvironment__createEnd (self=0xa60ae88,
_cmd=0x1a8cf880) at /src/Swarm/swarm/src/SwarmEnvironment.m:89
#15 0x1a6ea1d2 in
_i_SwarmEnvironment___init__version_bugAddress_argCount_args_
(self=0xa60ae88, _cmd=0x1a8cf888, appName=0xa620848 "SimpleBug",
version=0xa620860 "2.1", bugAddress=0xa620870 "address@hidden",
argc=0, args=0xa620898) at /src/Swarm/swarm/src/SwarmEnvironment.m:149
#16 0x1a6ea22f in
_i_SwarmEnvironment__initSwarmUsing_version_bugAddress_args_
(self=0xa60ae88, _cmd=0x1a8cf358, appName=0xa620848 "SimpleBug",
version=0xa620860 "2.1", bugAddress=0xa620870 "address@hidden",
args=0xa620898) at /src/Swarm/swarm/src/SwarmEnvironment.m:160
#17 0x1a6e93b1 in
Java_swarm_SwarmEnvironmentImpl__initSwarm___Ljava_lang_String_2Ljava_lang_S
tring_2Ljava_lang_String_2_3Ljava_lang_String_2 (env=0x4563b8,
jobj=0xa1d6490, appName=0xa196af8, version=0xa196b20, bugAddress=0xa196b48,
args=0xa15f370) at SwarmEnvironment.m:254
#18 0x1a6e8c1d in Java_swarm_SwarmEnvironmentImpl_initSwarm (env=0x4563b8,
obj=0xa1a0040, appName=0xa196af8, version=0xa196b20, bugAddress=0xa196b48,
args=0xa15f370) at /src/Swarm/swarm/java/c/SwarmEnvironmentExtra.m:47
#19 0x0a1c5a3b in ?? ()
#20 0x0a19b891 in ?? ()
#21 0x00417012 in callMethodV (meth=0xa18d66c, func=0xa15f2f8, obj=0x0,
args=0x22f8fc, ret=0x22f6f8) at /src/kaffe/config/i386/common.h:38
#22 0x0041ee96 in Kaffe_CallStaticVoidMethodV (env=0x4563b8, cls=0xa199900,
meth=0xa18d66c, args=0x22f8fc) at /src/kaffe/kaffe/kaffevm/jni.c:2343
#23 0x0041ef45 in Kaffe_CallStaticVoidMethod (env=0x4563b8, cls=0xa199900,
meth=0xa18d66c) at /src/kaffe/kaffe/kaffevm/jni.c:2356
#24 0x00401354 in main2 (env=0x4563b8, argv=0xa0118d8, farg=2, argc=0) at
/src/kaffe/kaffe/kaffe/main.c:232
#25 0x00401170 in main (argc=2, argv=0xa0118d8) at
/src/kaffe/kaffe/kaffe/main.c:145
#26 0x61003fa2 in _libwinspool_a_iname ()
#27 0x610041b9 in _libwinspool_a_iname ()
#28 0x610041f9 in _libwinspool_a_iname ()
#29 0x004557d7 in cygwin_crt0 ()

(gdb) bt
#0  0x77fa038c in ?? ()
#1  0x77f8376e in ?? ()
#2  0x6105230b in _libwinspool_a_iname ()
#3  0x61004579 in _libwinspool_a_iname ()
#4  0x610045d3 in _libwinspool_a_iname ()
#5  0x6108282a in _libwinspool_a_iname ()
#6  0x1a7e09fd in debugabort () at /src/Swarm/swarm/src/misc/debugabort.c:9
#7  0x1a7ad1e3 in _i_Error_c__raiseEvent_ () at
/src/Swarm/swarm/src/defobj/Symbol.m:173
#8  0x1a7b583a in nil_method (receiver=0x0, op=0x1a934758) at
/src/Swarm/swarm/src/defobj/internal.m:637
#9  0x1a7d89b5 in archiver_list_p (obj=0x0) at
/src/Swarm/swarm/src/collections/predicates.m:30
#10 0x1a7aa5a8 in _i_LispArchiver_c__lispLoadArchiver_ (self=0xa639da0,
_cmd=0x1a9140e8, stream=0xa63a260) at
/src/Swarm/swarm/src/defobj/LispArchiver.m:217
#11 0x1a7aa892 in _i_LispArchiver_c___load_ (self=0xa639da0,
_cmd=0x1a914038) at /src/Swarm/swarm/src/defobj/LispArchiver.m:255
#12 0x1a7aa34f in _i_LispArchiver_c__createEnd (self=0xa639da0,
_cmd=0x1a915ce8) at /src/Swarm/swarm/src/defobj/LispArchiver.m:184
#13 0x1a7b050b in initDefobj (_arguments=0xa620cb0) at
/src/Swarm/swarm/src/defobj/defobj.m:169
#14 0x1a6e9f84 in _i_SwarmEnvironment__createEnd (self=0xa60ae88,
_cmd=0x1a8cf880) at /src/Swarm/swarm/src/SwarmEnvironment.m:89
#15 0x1a6ea1d2 in
_i_SwarmEnvironment___init__version_bugAddress_argCount_args_
(self=0xa60ae88, _cmd=0x1a8cf888, appName=0xa620848 "SimpleBug",
version=0xa620860 "2.1", bugAddress=0xa620870 "address@hidden",
argc=0, args=0xa620898) at /src/Swarm/swarm/src/SwarmEnvironment.m:149
#16 0x1a6ea22f in
_i_SwarmEnvironment__initSwarmUsing_version_bugAddress_args_
(self=0xa60ae88, _cmd=0x1a8cf358, appName=0xa620848 "SimpleBug",
version=0xa620860 "2.1", bugAddress=0xa620870 "address@hidden",
args=0xa620898) at /src/Swarm/swarm/src/SwarmEnvironment.m:160
#17 0x1a6e93b1 in
Java_swarm_SwarmEnvironmentImpl__initSwarm___Ljava_lang_String_2Ljava_lang_S
tring_2Ljava_lang_String_2_3Ljava_lang_String_2 (env=0x4563b8,
jobj=0xa1d6490, appName=0xa196af8, version=0xa196b20, bugAddress=0xa196b48,
args=0xa15f370) at SwarmEnvironment.m:254
#18 0x1a6e8c1d in Java_swarm_SwarmEnvironmentImpl_initSwarm (env=0x4563b8,
obj=0xa1a0040, appName=0xa196af8, version=0xa196b20, bugAddress=0xa196b48,
args=0xa15f370) at /src/Swarm/swarm/java/c/SwarmEnvironmentExtra.m:47
#19 0x0a1c5a3b in ?? ()
#20 0x0a19b891 in ?? ()
#21 0x00417012 in callMethodV (meth=0xa18d66c, func=0xa15f2f8, obj=0x0,
args=0x22f8fc, ret=0x22f6f8) at /src/kaffe/config/i386/common.h:38
#22 0x0041ee96 in Kaffe_CallStaticVoidMethodV (env=0x4563b8, cls=0xa199900,
meth=0xa18d66c, args=0x22f8fc) at /src/kaffe/kaffe/kaffevm/jni.c:2343
#23 0x0041ef45 in Kaffe_CallStaticVoidMethod (env=0x4563b8, cls=0xa199900,
meth=0xa18d66c) at /src/kaffe/kaffe/kaffevm/jni.c:2356
#24 0x00401354 in main2 (env=0x4563b8, argv=0xa0118d8, farg=2, argc=0) at
/src/kaffe/kaffe/kaffe/main.c:232
#25 0x00401170 in main (argc=2, argv=0xa0118d8) at
/src/kaffe/kaffe/kaffe/main.c:145
#26 0x61003fa2 in _libwinspool_a_iname ()
#27 0x610041b9 in _libwinspool_a_iname ()
#28 0x610041f9 in _libwinspool_a_iname ()
#29 0x004557d7 in cygwin_crt0 ()

(gdb) continue
Continuing.
gdb: unknown target exception 0xc0000008 at 0x77fa038c

Program received signal ?, Unknown signal.
[Switching to thread 1832.0x734]
0x77fa038c in ?? ()

(gdb) continue
Continuing.

Program exited with code 0303000.

(gdb)



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