#0 MatDensePlaceArray (mat=0xda5c50, array=0xd15e60)
at /home/hongsu/soft/petsc/src/mat/impls/dense/mpi/mpidense.c:2047
#1 0x00007fa0d13bf4f7 in MatDenseGetSubMatrix_SeqDense (A=0xcfb2b0, cbegin=0,
cend=0, v=0xd90370)
at /home/hongsu/soft/petsc/src/mat/impls/dense/seq/dense.c:2997
#2 0x00007fa0d13c574e in MatDenseGetSubMatrix (A=0xcfb2b0, cbegin=0, cend=0,
v=0xd90370) at /home/hongsu/soft/petsc/src/mat/impls/dense/seq/dense.c:3371
#3 0x00007fa0d13db5ce in MatDenseGetSubMatrix_MPIDense (A=0xca5250, cbegin=0,
cend=0, v=0x7ffe87d41de0)
at /home/hongsu/soft/petsc/src/mat/impls/dense/mpi/mpidense.c:1835
#4 0x00007fa0d13c574e in MatDenseGetSubMatrix (A=0xca5250, cbegin=0, cend=0,
v=0x7ffe87d41de0)
at /home/hongsu/soft/petsc/src/mat/impls/dense/seq/dense.c:3371
#5 0x00007fa0d179c2fa in MatMatMultNumeric_MPIAIJ_MPIDense (A=0xc55490,
B=0xca5250, C=0xd282b0)
at /home/hongsu/soft/petsc/src/mat/impls/aij/mpi/mpimatmatmult.c:593
#6 0x00007fa0d1181331 in MatProductNumeric_AB (mat=0xd282b0)
at /home/hongsu/soft/petsc/src/mat/interface/matproduct.c:567
#7 0x00007fa0d1182c14 in MatProductNumeric (mat=0xd282b0)
at /home/hongsu/soft/petsc/src/mat/interface/matproduct.c:679
#8 0x00007fa0d115ef69 in MatProduct_Private (A=0xc55490, B=0xca5250,
scall=MAT_INITIAL_MATRIX, fill=-2, ptype=MATPRODUCT_AB, C=0x7ffe87d42018)
at /home/hongsu/soft/petsc/src/mat/interface/matrix.c:9405
---Type <return> to continue, or q <return> to quit---
#9 0x00007fa0d115f274 in MatMatMult (A=0xc55490, B=0xca5250, scall=MAT_INITIAL_MATRIX, fill=-2,
C=0x7ffe87d42018) at /home/hongsu/soft/petsc/src/mat/interface/matrix.c:9445
#10 0x000000000040130a in main (argc=2, argv=0x7ffe87d42108) at ex1.c:20
I'll try to figure out what is going on. If anyone has a clue, please help. The above stack comes from 'release' branch.