Thank you Jed ! The problem was the 0 in the diagonal, which confirmed a matlab spy plot. I introduced this error because i'm actually converting an old fortran code to PETSc. Thanks again for your help :)