Weird duplicated entries with different values in SparseMatrixCSC

I still don’t get why you are calling this a bug. Again, SparseMatrixCSC is not meant to be used directly, so there are no guarantees. As its docstring says, use sparse.