Hello all,
I'd like to apologize for the hyperlinks that I seem to have sent within the
terminal output in my previous mail. If you are reading your mail in a terminal
or some reader which attempts to convert HTML mail to plaintext, there may be
garbage inside the script - I have uploaded the correct script to the following
URL: http://pastebin.ca/1953162 .
Please note that on OS X you may need to replace "seq" with "jot" as the
operating system doesn't come with GNU coreutils (thanks to Dr. Dmitrii
Pasechnik for pointing this out to me).
Yours,
Keshav
On Fri, Oct 1, 2010 at 19:17, Keshav Rao Kini
<[email protected]<mailto:[email protected]>> wrote:
Hello,
I am not maintainer of GAP, but I thought I would try to confirm your report.
Unfortunately, I cannot seem to duplicate this error. I wrote a small test
script, and with it I managed to save and load a workspace 257 times without
GAP segfaulting. See below for output:
kes...@banana ~ $ cat test.sh
#!/bin/bash
echo "x0 := 0;; SaveWorkspace(\"0.ws<http://0.ws>\");; quit;" | gap -q
for i in `seq $(($1-1))`
do
echo "x$i := $i;; SaveWorkspace(\"$i.ws<http://i.ws>\");; quit;" | gap
-q -L $((i-1)).ws
rm $((i-1)).ws
done
ls -l $(($1-1)).ws
kes...@banana ~ $ time ./test.sh 257
-rw-r--r-- 1 keshav keshav 25705844 Oct 1 19:01 256.ws<http://256.ws>
real 2m12.342s
user 1m9.868s
sys 0m33.966s
kes...@banana ~ $ uname -a
Linux banana 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Maybe the error is caused by something specific to your two environments? Feel
free to try out my script for yourself as well, though I suspect your own
result will not change (unless it was caused by running out of disk space, or
something). Perhaps someone from the GAP Support Group can speculate further...
Yours,
Keshav
On Fri, Oct 1, 2010 at 16:43, Shunsuke Tsuchioka
<[email protected]<mailto:[email protected]>> wrote:
Hi,
I want to ask about a possibility of
repeating workspace save and load.
It seems impossible more than 5 times as shown below.
The error occurs on Linux in x86(64bit) machine,
but exactly the same error occurrs in my solaris environment
(GAP4, Version: 4.4.9 of 6-Nov-2006, sparc-sun-solaris2.10-gcc, sparc 32bit).
Is the behavior by design or a bug?
Sincerely,
Shunsuke Tsuchioka
cherry05:~/GAP/nG2> /home/tshun/math/gap -b
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> a:=1;
1
gap> SaveWorkspace("a");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L a
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> b:=2;
2
gap> SaveWorkspace("b");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L b
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> c:=3;
3
gap> SaveWorkspace("c");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L c
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> d:=1;
1
gap> SaveWorkspace("d");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L d
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> e:=1;
1
gap> SaveWorkspace("e");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L e
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> f:=1;
1
gap> SaveWorkspace("f");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L f
GAP4, Version: 4.4.12 of 17-Dec-2008, x86_64-unknown-linux-gnu-gcc
gap> g:=1;
1
gap> SaveWorkspace("g");
true
gap> quit;
cherry05:~/GAP/nG2> /home/tshun/math/gap -b -L g
Segmentation fault
_______________________________________________
Forum mailing list
[email protected]<mailto:[email protected]>
http://mail.gap-system.org/mailman/listinfo/forum
________________________________
CONFIDENTIALITY: This email is intended solely for the person(s) named and may
be confidential and/or privileged. If you are not the intended recipient,
please delete it, notify us and do not copy, use, or disclose its content.
Thank you.
Towards A Sustainable Earth: Print Only When Necessary
_______________________________________________
Forum mailing list
[email protected]
http://mail.gap-system.org/mailman/listinfo/forum