Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix from Matrix_integer_dense() blows up #779

Closed
RalphieBoy mannequin opened this issue Oct 2, 2007 · 1 comment
Closed

Matrix from Matrix_integer_dense() blows up #779

RalphieBoy mannequin opened this issue Oct 2, 2007 · 1 comment

Comments

@RalphieBoy
Copy link
Mannequin

RalphieBoy mannequin commented Oct 2, 2007

If I create a matrix with Matrix_integer_dense(), and try to display it, sage blows chunks. It appears to happen inside the gmp library. This is with 2.8.5.1 on a Core 2 Duo (Mac OS X, 10.4.10).

sage: from sage.matrix.matrix_integer_dense import Matrix_integer_dense
sage: a = Matrix_integer_dense.new(Matrix_integer_dense, Mat(ZZ,3), 0,0,0)
sage: a.ncols()
3
sage: a.nrows()
3
sage: a

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x013af000
0x00777991 in __gmpn_copyi ()
(gdb) bt
#0 0x00777991 in __gmpn_copyi ()
#1 0x0075c4a0 in __gmpz_set ()
Previous frame inner to this frame (corrupt stack?)

Then, there is

sage: from sage.matrix.matrix_integer_dense import Matrix_integer_dense
sage: a = Matrix_integer_dense.new(Matrix_integer_dense, Mat(ZZ,3), 0,0,0)
sage: for i in range(a.nrows()):
...: for j in range(a.ncols()):
...: print a[i,j]
...:
0
python(16613) malloc: *** vm_allocate(size=1680302080) failed (error code=3)
python(16613) malloc: *** error: can't allocate region
python(16613) malloc: *** set a breakpoint in szone_error to debug

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0076a0b7 in __gmpn_sqr_basecase ()
(gdb)

Component: linear algebra

Issue created by migration from https://trac.sagemath.org/ticket/779

@RalphieBoy
Copy link
Mannequin Author

RalphieBoy mannequin commented Oct 2, 2007

comment:1

I closed this because the formatting really sucks. The new
Trac# is 781.

@RalphieBoy RalphieBoy mannequin closed this as completed Oct 2, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin reopened this Oct 4, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Oct 4, 2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant