https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99385
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-03-04 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Thanks for the report and the analysis. The code should not segfault as we do: if (ptr != MAP_FAILED) { __gcov_kvp_dynamic_pool = ptr; __gcov_kvp_dynamic_pool_size = MMAP_CHUNK_SIZE / kvp_sizeof; __gcov_kvp_dynamic_pool_index = 0; } ... if (new_node == NULL) new_node = (struct gcov_kvp *)xcalloc (1, kvp_sizeof); can you please investigate why it crashes?