When I create a very large matrix (the threshold may be 2^32 entries) from a list of vectors, the elements are not copied over correctly.
Here is a "small" example:
FF = GF(next_prime(1000000))
M = 70000
N = 80000
v1 = vector(FF, [FF(k) for k in range(N)])
v2 = vector(FF, [N] * N)
vecs = [v1 + v2*FF(i) for i in range(M)]
mat = matrix(FF, M, N, vecs)
mat[0] == vecs[0]
the last line returns "false".
I understand the bug is not so easy to reproduce: the code above runs for about 40 minutes and needs about 50G of RAM. In fact, it is also strange that it takes so long: all the lines until "mat = matrix(FF, M, N, vecs)" take only about a minute. It shouldn't take so much more time to simply copy a bunch of vectors than it took to compute them.
Sage version: 9.3 running on a 64 bit linux system