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

Sage 3.1.2.alpha3: matrix_mod2_dense.pyx doctest failure on 32 bits #4027

Closed
sagetrac-mabshoff mannequin opened this issue Sep 1, 2008 · 6 comments
Closed

Sage 3.1.2.alpha3: matrix_mod2_dense.pyx doctest failure on 32 bits #4027

sagetrac-mabshoff mannequin opened this issue Sep 1, 2008 · 6 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Sep 1, 2008

bash-3.2$ ./sage -t devel/sage/sage/matrix/matrix_mod2_dense.pyx
sage -t  devel/sage/sage/matrix/matrix_mod2_dense.pyx       sh: line 1: 19961 Abort trap              /Users/mabshoff/sage-3.1.2.alpha3/local/bin/python /Users/mabshoff/sage-3.1.2.alpha3/tmp/.doct
est_matrix_mod2_dense.py > /var/folders/uO/uOBV9ZyXHvWiSlU9K+3AE++++UE/-Tmp-/tmpqHbQOr 2> /var/folders/uO/uOBV9ZyXHvWiSlU9K+3AE++++UE/-Tmp-/tmpBMZa3v
**********************************************************************
File "/Users/mabshoff/sage-3.1.2.alpha3/tmp/matrix_mod2_dense.py", line 1496:
    sage: print A.str()
Expected:
    [1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    [0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    [1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]
    [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
Got:
    [1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    [0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]
    [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
**********************************************************************
File "/Users/mabshoff/sage-3.1.2.alpha3/tmp/matrix_mod2_dense.py", line 1501:
    sage: ZZ(sage.matrix.matrix_mod2_dense._read_bits(A,2,0,64))
Expected:
    13835058055282163713
Got:
    1
**********************************************************************
File "/Users/mabshoff/sage-3.1.2.alpha3/tmp/matrix_mod2_dense.py", line 1505:
    sage: print A.str()
Expected:
    [1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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2.alpha3/tmp/matrix_mod2_dense.py", line 1510:
    sage: ZZ(sage.matrix.matrix_mod2_dense._read_bits(A,3,1,64))
Expected:
    13835058055282163713
Got:
    1
For whitespace errors, see the file /Users/mabshoff/sage-3.1.2.alpha3/tmp/.doctest_matrix_mod2_dense.pym4ri_mm_calloc: calloc returned NULL

A mysterious error (perphaps a memory error?) occurred, which may have crashed doctest.
  [10.2 s]
exit code: 768

Component: doctest coverage

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

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.1.2 milestone Sep 1, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned malb Sep 1, 2008
@malb
Copy link
Member

malb commented Sep 1, 2008

Attachment: m4ri_3_1_2_failures.patch.gz

@malb
Copy link
Member

malb commented Sep 1, 2008

comment:1

The doctest failures can easily be fixed by disabling the respective code (it is just there for testing purposes and that code isn't used by anything in production use yet)

I'll have to come up with a second patch for the CALLOC issue.

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Sep 1, 2008

comment:2

Patch looks good to me. The calloc issue might or might not be solved by the new upstream spkg. If it is still a problem I will open a new ticket for it.

Cheers,

Michael

@malb
Copy link
Member

malb commented Sep 1, 2008

comment:3

A new SPKG is up at:

http://sage.math.washington.edu/home/malb/spkgs/libm4ri-20080901.spkg

With that SPKG and a touch on matrix_mod2_dense.pxd + sage -b all tests pass on BSD:

Sage subshell$ sage -t ~/sage-3.1.2.alpha3/devel/sage/sage/matrix/matrix_mod2_dense.pyx
sage -t  devel/sage/sage/matrix/matrix_mod2_dense.pyx
         [4.4 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 4.4 seconds

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Sep 1, 2008

comment:5

The spkg has been reviewed at #4024, so I am giving the patch a positive review since it makes the doctest work on OSX 32 bit again.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Sep 1, 2008

comment:6

Merged in Sage 3.1.2.alpha4

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Sep 1, 2008
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