Opened 11 years ago

Closed 9 years ago

#470 closed bug (fixed)

memory(0); gives negative output

Reported by: steenpass Owned by: somebody
Priority: minor Milestone: 3-2-0 and higher
Component: dontKnow Version: 3-1-6
Keywords: Cc:

Description

// let's create some big ideal first:
> ring r = 0,x(1..360),dp;
> matrix m[3][120] = x(1..360);
> memory(0); memory(1); memory(2);
539168
2371584
2371584
> ideal I = minor(m, 3);
// now I is approx. 1.3 GB in size
> memory(0); memory(1); memory(2);
1366682080
1391048440
2768919872
// duplicate I
> ideal J = I, I, I, I, I;
// J should be about 6.5 GB big
> memory(0); memory(1); memory(2);
-392885488
8311386608
8311386608
> 

Change History (5)

comment:1 Changed 11 years ago by hannes

Resolution: fixed
Status: newclosed

fixed.

comment:2 Changed 11 years ago by steenpass

Resolution: fixed
Status: closedreopened

Sorry, but now it's actually worse than before:

steenpas@wawa:~$ Singular-n -v
Singular for x86_64-Linux version 3-1-6 (3160)  Jan  7 2013 06:11:56
[...]
> ring r = 0,x(1..360),dp;
> matrix m[3][120] = x(1..360);
> memory(0); memory(1); memory(2);
541616
2363392
2363392
> ideal I = minor(m, 3);
> memory(0); memory(1); memory(2);
1366683448
1391047360
-1526048504
> ideal J = I, I, I, I, I;
> memory(0); memory(1); memory(2);
-392882920
-278547864
-278547864
> 

comment:3 Changed 11 years ago by hannes

Resolution: fixed
Status: reopenedclosed

fixed with rev 15572

comment:4 Changed 9 years ago by steenpass

Resolution: fixed
Status: closedreopened

The problem still persists in Singular 4.0.1. Executing the same code as above in a recent development version, I get:

> memory(0); memory(1); memory(2);
-406455760
-292090304
-289843576
> 

comment:5 Changed 9 years ago by hannes

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.