swarm-support
[Top][All Lists]
Advanced

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

[Swarm-Support] Re: Enquiry on SFI- ASM Open Source Code on http://sourc


From: Paul Johnson
Subject: [Swarm-Support] Re: Enquiry on SFI- ASM Open Source Code on http://sourceforge.net/projects/artstkmkt/
Date: Tue, 26 Feb 2008 10:06:22 -0600
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

Neo Kai Chiat wrote:
Dear Professor Johnson,
Thank you so much for your prompt reply. The version of source code is the one on <http://sourceforge.net/projects/artstkmkt/> http://sourceforge.net/projects/artstkmkt/. The Version is ASM-2.4.tar.gz and the version of swarm I used was Swarm-2.2.3, I'm also using Debian 4.0 on a Virtual Machine Platform running on Windows XP. I have also attached the screenshot I arrived at when I started to run the source code. Basically, when I clicked on the start button: <Start> to run the simulation with the default parameters, the segmentation error occured. David
I don't see same problem here on Fedora Linux with Swarm-2.2.4. (See below for evidence: there are a few of the warnings that the newer gcc gives, but no show stoppers. And it runs.).

I'm a little puzzled that you are not trying the last ASM I posted, this one:

http://artstkmkt.sourceforge.net/updates/ASM-2.4.1.tar.gz

There was some seg fault with newish swarms, and that had a fix.

If you do build Swarm again, I urge you to use version 2.2.4, which I have upload here:

http://pj.freefaculty.org/Swarm/swarm-2.2.4.tar.gz

I had not realized I forgot to post RPMS for Fedora 8, I'm doing that right now. It is a little bit of a hassle because every time hdf5 updates on Fedora, we need new Swarm RPM. Also, as I recall, there was a defect in some versions of blt and a file name was changed. Blt should have a file "bltGraph.tcl" but that was renamed in some blt, and so you need a symbolic link like

bltGraph.tcl -> /usr/lib/blt2.4/graph.tcl

The blt RPM I supply adds that link for you. Until recently, the blt package in the Fedora stream was incomplete and I had to offer a completely different set of packages, but that packager has relented to pressure and now offers the development components needed. So this rpm I provide is standard Fedora 8, except for adding that link.

I have no experience with running Swarm in a VM, maybe other people can testify if that causes trouble. I'm copying this to swarm-support email. I suggest you join swarm-support where you will find people who run all different kinds of systems.

Did you build Swarm with support for hdf5 data formats? If not, that could be the cause of your crash. I'm sorry I don't have a Debian package to give you for Swarm, as a result I have no way of knowing if you installed it correctly.

I have some vague recollection that there was hdf5 trouble in some systems, so double check which version you have. If you don't have hdf5 at all, I think in the ASM code you will see where you can turn off hdf5 data output.

Lets do some diagnostics. Can you run the Swarm apps that come in the swarmapps-objc package. Run Heatbugs, or Mousetrap? I don't recall a newer package than this one

http://pj.freefaculty.org/Swarm/swarmapps-objc-2.2-2.tar.gz

If those run, but ASM does not, then we have to find out the particular cause of your segmentation fault.

Run "gdb name_of_your_program" and then in the gdb session type "run" and when the crash happens, type "bt" to see where the crash is happening in the code. From that, we can figure which element is malfunctioning.



pj

address@hidden tmp]$ tar xzvf ASM-2.4.1.tar.gz
ASM-2.4.1/
ASM-2.4.1/Output.h
ASM-2.4.1/Dividend.m
ASM-2.4.1/Agent.h
ASM-2.4.1/BFagent.m
ASM-2.4.1/World.m
ASM-2.4.1/.libs/
ASM-2.4.1/Parameters.m
ASM-2.4.1/ASMBatchSwarm.m
ASM-2.4.1/ASMModelParams.h
ASM-2.4.1/BitVector.h
ASM-2.4.1/BFParams.m
ASM-2.4.1/Makefile
ASM-2.4.1/BitVector.m
ASM-2.4.1/Specialist.h
ASM-2.4.1/ASMModelSwarm.m
ASM-2.4.1/World.h
ASM-2.4.1/MovingAverage.m
ASM-2.4.1/ASMModelSwarm.h
ASM-2.4.1/BFagent.h
ASM-2.4.1/Agent.m
ASM-2.4.1/MovingAverage.h
ASM-2.4.1/ASMObserverSwarm.h
ASM-2.4.1/Specialist.m
ASM-2.4.1/ChangeLog
ASM-2.4.1/Output.m
ASM-2.4.1/BFParams.h
ASM-2.4.1/BFCast.h
ASM-2.4.1/BFCast.m
ASM-2.4.1/Parameters.h
ASM-2.4.1/ASMObserverSwarm.m
ASM-2.4.1/asm.scm
ASM-2.4.1/ASMBatchSwarm.h
ASM-2.4.1/main.m
ASM-2.4.1/Dividend.h
ASM-2.4.1/README
ASM-2.4.1/ASMModelParams.m
address@hidden tmp]$ cd ASM-2.4.1
address@hidden ASM-2.4.1]$ make
gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm Agent.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm Dividend.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm World.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm Specialist.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm Output.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm BFParams.m
BFParams.m: In function ‘-[BFParams lispOutDeep:]’:
BFParams.m:329: warning: pointer targets in passing argument 4 of ‘lispStoreIntegerArray:Keyword:Rank:Dims:Stream:’ differ in signedness BFParams.m:331: warning: pointer targets in passing argument 4 of ‘lispStoreDoubleArray:Keyword:Rank:Dims:Stream:’ differ in signedness gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm ASMModelSwarm.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm ASMObserverSwarm.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm ASMBatchSwarm.m
ASMBatchSwarm.m: In function ‘-[ASMBatchSwarm buildObjects]’:
ASMBatchSwarm.m:23: warning: unused variable ‘modelZone’
gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm main.m
main.m: In function ‘main’:
main.m:37: warning: type 'id <Activity>' does not conform to the 'SwarmActivity' protocol gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm BFCast.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm BFagent.m
BFagent.m: In function ‘-[BFagent bitDistribution:cumulative:]’:
BFagent.m:932: warning: pointer targets in assignment differ in signedness
BFagent.m: In function ‘-[BFagent MakePool:From:]’:
BFagent.m:1346: warning: conflicting types for ‘-(void)MakePool:(id)rejects From:(id)list’ BFagent.h:60: warning: previous declaration of ‘-(void)MakePool:(id <List>)rejects From:(id <Array>)list’
BFagent.m: In function ‘-[BFagent Tournament:]’:
BFagent.m:1386: warning: conflicting types for ‘-(BFCast *)Tournament:(id)list’ BFagent.h:66: warning: previous declaration of ‘-(BFCast *)Tournament:(id <Array>)list’
BFagent.m: In function ‘-[BFagent GetMort:Rejects:]’:
BFagent.m:1716: warning: conflicting types for ‘-(BFCast *)GetMort:(BFCast *)new Rejects:(id)rejects’ BFagent.h:64: warning: previous declaration of ‘-(BFCast *)GetMort:(BFCast *)new Rejects:(id <List>)rejects’
BFagent.m:1739: warning: pointer targets in assignment differ in signedness
BFagent.m:1740: warning: pointer targets in assignment differ in signedness
BFagent.m:1742: warning: pointer targets in assignment differ in signedness
gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm BitVector.m
BitVector.m: In function ‘-[BitVector getConditions]’:
BitVector.m:150: warning: pointer targets in return differ in signedness
BitVector.m: In function ‘-[BitVector lispOutDeep:]’:
BitVector.m:290: warning: pointer targets in passing argument 4 of ‘lispStoreUnsignedArray:Keyword:Rank:Dims:Stream:’ differ in signedness gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm ASMModelParams.m gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm Parameters.m
Parameters.m: In function ‘-[Parameters parseKey:arg:]’:
Parameters.m:58: warning: implicit declaration of function ‘atoi’
gcc -c -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -D_GNU_SOURCE -DAPPNAME=asm -DAPPVERSION=2.1.1 address@hidden -I/usr/include/swarm MovingAverage.m
MovingAverage.m: In function ‘-[MovingAverage lispOutDeep:]’:
MovingAverage.m:122: warning: pointer targets in passing argument 4 of ‘lispStoreDoubleArray:Keyword:Rank:Dims:Stream:’ differ in signedness /bin/sh /usr/bin/libtool-swarm --mode link gcc -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/lib/swarm -rpath /usr/lib/swarm -o asm Agent.o Dividend.o World.o Specialist.o Output.o ASMModelSwarm.o ASMObserverSwarm.o ASMBatchSwarm.o main.o BFParams.o BFCast.o BFagent.o BitVector.o ASMModelParams.o Parameters.o MovingAverage.o -lswarm gcc -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -o asm Agent.o Dividend.o World.o Specialist.o Output.o ASMModelSwarm.o ASMObserverSwarm.o ASMBatchSwarm.o main.o BFParams.o BFCast.o BFagent.o BitVector.o ASMModelParams.o Parameters.o MovingAverage.o -L/usr/lib/swarm /usr/lib/swarm/libswarm.so -L/usr/lib/blt2.4 -lpthread -lieee -lBLT24 -L/usr/lib -ltk8.4 -ltcl8.4 -lXpm -lpng -lhdf5 -lz -lX11 -lm -ldl -Wl,--rpath -Wl,/usr/lib/swarm -Wl,--rpath -Wl,/usr/lib/swarm
address@hidden ASM-2.4.1]$ ./asm
Param object 25

at time Tue Feb 26 09:58:23 2008
0 runs complete


_____
From: Paul Johnson [mailto:address@hidden
Sent: Tue 2/26/2008 6:48 AM
To: Neo Kai Chiat
Subject: Re: Enquiry on SFI- ASM Open Source Code on 
http://sourceforge.net/projects/artstkmkt/



Neo Kai Chiat wrote:
Dear Mr Johnson,
I am a third year finance student from National University of Singapore working 
on a project investigating how people have modeled the stock market over recent 
years. I tried to replicate and verify the results of the SFI- Artificial Stock 
market using your the open source code from 
http://sourceforge.net/projects/artstkmkt/. I ran it on Debian Linux but i 
encountered this error : [param object 25 , Segmentation fault] when I started 
to run the simulation with the default parameters. Are there any errors in the 
code at that website?

Thank you very much.

Regards,
David


<http://sourceforge.net/projects/artstkmkt/>
You don't mention which version of Swarm you are using or which version
of ASM.  I don't see a crash like that, but if you send version numbers
and the output of a gdb backtrace, I will look into it.

pj

--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science http://pj.freefaculty.org <http://pj.freefaculty.org/> 1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700



--
Paul E. Johnson                       email: address@hidden
Professor, Political Science          http://pj.freefaculty.org
1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700



reply via email to

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