Am Donnerstag, 13. Februar 2014 17:49:54 UTC+1 schrieb Volker Braun:
>
> The following seems to run pretty much forever without running out of
> memory:
>
> for k in range(100000):
> g = G.random_element()
> g^k
>
Ok I tried to extract the essentail part and finally found an example that
reproduced the crash.
The following example crashed on my local sage installation (Version 5.10)
G=DihedralGroup(6)
for k in range(10000):
for kkk in range(6):
c=G.character(G.character_table()[kkk])
for g in G.list():
for kk in range(10):
x=c(g^kk)
with the following error message:
Traceback (most recent call last): x=c(g^kk)
File "", line 1, in <module>
File "/tmp/tmpMOTAUE/___code___.py", line 4, in <module>
exec compile(u'for k in range(_sage_const_10000 ):\n for g in
G.list():\n for kk in range(_sage_const_10 ):\n for kkk in
range(_sage_const_6 ):\n
c=G.character(G.character_table()[kkk])\n x=c(g**kk)
File "", line 5, in <module>
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/groups/perm_gps/permgroup.py",
line 2577, in character_table
ct = [[irrG[i+1, j+1] for j in range(n)] for i in range(n)]
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/gap.py",
line 1524, in __getitem__
return self.parent().new('%s%s'%(self._name, ''.join(['[%s]'%x for x in
n])))
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/interface.py",
line 264, in new
return self(code)
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/interface.py",
line 199, in __call__
return cls(self, x, name=name)
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/expect.py",
line 1291, in __init__
self._name = parent._create(value, name=name)
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/interface.py",
line 389, in _create
self.set(name, value)
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/gap.py",
line 1314, in set
out = self._eval_line(cmd, allow_use_file=True)
File
"/usr/local/sage-5.8/local/lib/python2.7/site-packages/sage/interfaces/gap.py",
line 771, in _eval_line
raise RuntimeError, message
TypeError: Gap produced error output
Error, exceeded the permitted memory (`-o' command line option)
executing $sage65:=$sage29[3][2];;
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.