Dear group members,
Until now, I never saw any bugs in Singular, just errors (in earlier versions) when memory ran out.
Sorry I could not test this under the latest version, which I only recently saw -- using the latest Ubuntu, the 4th step in the installation failed (maybe this also is a bug, but I can only do sudo and do not have full root permissions). Later, I will try some other method. The command and error messages were: sudo dpkg -i Singular-release.deb; apt-get update
Selecting previously deselected package singular-release. (Reading database ... 135970 files and directories currently installed.) Unpacking singular-release (from Singular-release.deb) ... Setting up singular-release (3.1.1-1) ... E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock the list directory
The real bug is in the code that follows: Singular writes to a file but finds an error when reading what it just wrote. In my experience, this bug appears only rarely. Sorry that the file below showing this problem is a ittle long. By the way, this comes from trying to find new knot invariants.
I have also encountered strange behaviour where a file can be read but differs from (and can be much larger than) what was written to it, but this could have been a side effect of other things done during busy sessions and at the moment I cannot supply an example.
Greetings, Peter Johnson Recife, Brazil
==================================================================
/* SINGULAR v3-1-0 (interactive) under Ubuntu (Karmic) on a PC (c2009); /* See ERROR after ideal rez. */
option(redSB);
ring rr = 0,(o,j,k,l,m,n,p,q,r,s,t,u,v,w,x,y,z, J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z),dp;
ideal rez = /* 94 */ xX-1,sS-1,sR+uR-rS+uS-rU-sU,rR+xR-rS-rU-sU+rX, nP-qP-sP+xP+pR-pS-pU+pX,qN+sN-nQ-sQ-nS+qS, pN+rP-sP-uP+xP-pQ-pS+pX,nN+xN-nQ-sQ-nS+nX,oNX-oQX+oRX-oUX, onX+orX,NRU+NSU-QSU+RSU-QU2-SU2,oQU+oU2+oQX+oUX, oNU+oRU+oQX+oUX,orU,oqU,opU+nU+uU+xU+uX, RS2-R2U-S2U+RU2,QS2+RSU-S2U-QU2+RU2-SU2, QRS+QRU+R2U-QSU+RSU-QU2-RU2-SU2,NRS+NS2+R2U-QSU+RSU-S2U-QU2-SU2, Q2S+Q2U-RSU-RU2,PQS+PRU-PSU-PU2, NQS+NS2+NQU+NSU-QSU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2xQ+o2xU-o2qX-o2uX+uN-rQ+qR-nU, o2qQ+o2uU+o2qX+o2uX-uN-qQ-xQ-qR-uU-xU-qX-uX, o2S2X+oPS2+2oPSX+S3+NQU-R2U+NSU+3QSU-2RSU+2S2U+2QU2+2SU2+NQX +NSX+QSX+RSX+RUX+SUX+SX2,o3rQ+o3nU+o3qX+o3uX-ouN-orQ-oxQ-oqR -onU-oxU-oqX-ouX,o3uN+o3qR+o3qX+o3uX-2ouN-oxQ-2oqR-oxU-oqX-ouX;
write("rez","ideal rz = ",rez,";"); < "rez"; interred(rez-rz); /* OK, can write this ideal to a file and then read it. BUT why not .. */
ideal grez = groebner(rez); size(grez); /* 166, takes about 10 minutes */ write("grez","ideal grez = ",grez,";"); /* file size only 4K */ < "grez"; /* **** ERROR **** when reading this ideal ?! */
/* I have, only in recent months, had a few other similar errors. */
|
|