KarypisLab / METIS

METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
Other
707 stars 139 forks source link

Heap corruption with METIS_NodeND #26

Open LSNUDT opened 3 years ago

LSNUDT commented 3 years ago

I've encountered error (heap corruption detected) in gk_free() while reordering sparse matrix with METIS_NodeND. My development environment: windows 10 + visual studio 2017. How can I get pass? Any suggestion will be appreciated.

Here are the matrix data: nvtxs: 30 xadj: 0 8 13 21 32 37 48 55 61 62 63 67 71 83 84 91 101 102 108 113 125 130 135 136 141 153 158 166 170 171 178 adjncy: 0 3 5 10 17 26 27 29 1 4 18 20 25 2 6 7 12 14 15 19 24 0 3 5 11 12 15 17 19 24 26 29 1 4 18 20 25 0 3 5 11 12 15 17 19 24 26 29 2 6 12 14 15 19 24 2 7 12 15 19 24 8 9 0 10 26 27 3 5 11 29 2 3 5 6 7 12 14 15 19 21 23 24 13 2 6 12 14 15 19 24 2 3 5 6 7 12 14 15 19 24 16 0 3 5 17 26 29 1 4 18 20 25 2 3 5 6 7 12 14 15 19 21 23 24 1 4 18 20 25 12 19 21 23 24 22 12 19 21 23 24 2 3 5 6 7 12 14 15 19 21 23 24 1 4 18 20 25 0 3 5 10 17 26 27 29 0 10 26 27 28 0 3 5 11 17 26 29

Hyiker commented 7 months ago

Same problem encoutered here when using METIS_PartGraphKway. Metis failed to free memory using gk_free, heap corruption error was trigger at the same time. Using commit id e0f1b88b8efcb24ffa0ec55eabb78fbe61e58ae7 with small modified cmake configurations. Dev environment: windows 10 and Visual Studio cl 19.38.33133. Rolling back to 5.1.0 solves it as described in this issue.