Opened 14 years ago

Closed 14 years ago

#779 closed defect (duplicate)

Matrix from Matrix_integer_dense() blows up

Reported by: justin Owned by: was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: linear algebra Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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)

Change History (4)

comment:1 Changed 14 years ago by justin

  • Resolution set to invalid
  • Status changed from new to closed

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

comment:2 Changed 14 years ago by mabshoff

  • Milestone set to sage-duplicate

comment:3 Changed 14 years ago by mabshoff

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:4 Changed 14 years ago by mabshoff

  • Resolution set to duplicate
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.