[GAP Forum] Repeating workspace save/load

Shunsuke Tsuchioka tshun at kurims.kyoto-u.ac.jp
Fri Oct 1 13:39:57 BST 2010


Hi, 

Thank you for your reply.

I tried your patch on another Linux machine :

(kirin/student/tshun/GAP)28 uname -a
Linux kirin 2.6.24-24-server #1 SMP Fri Sep 18 16:47:05 UTC 2009 x86_64 GNU/Linux

and obtained the same error as follows:

(kirin/student/tshun/GAP)29 ./test.sh 7
-rw------- 1 tshun 653 25560586 Oct  1 21:30 6.ws

(kirin/student/tshun/GAP)30 ./test.sh 8
./test.sh: line 3:  7792 Done                    echo "x$i := $i;; SaveWorkspace(\"$i.ws\");; quit;"
      7793 Segmentation fault      | /usr/local/opt/gap -q -L $((i-1)).ws
ls: cannot access 7.ws: No such file or directory

I encountered exactly the same error in my laptop (Core2, 32bit, FreeBSD 8.1-STABLE).
I installed GAP in FreeBSD via ports.

As summarize, I encountered the same error at 4 different machine 
with 3 different OSs (Linux, FreeBSD and Solaris) or CPUs (Xeon, Core2, Sparc).
I don't think it's due to something specific to my environment.

Best,
Shunsuke

From: Keshav Rao Kini <krkini at ntu.edu.sg>
Subject: Re: [GAP Forum] Repeating workspace save/load
Date: Fri, 1 Oct 2010 19:17:36 +0800

> 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:
> 
> keshav at 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
> 
> keshav at 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
> keshav at 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 <tshun at kurims.kyoto-u.ac.jp<mailto:tshun at kurims.kyoto-u.ac.jp>> 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
> Forum at mail.gap-system.org<mailto:Forum at mail.gap-system.org>
> 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



More information about the Forum mailing list