From: Arnaud Giersch Date: Thu, 2 Jul 2020 20:02:35 +0000 (+0200) Subject: Any idea on how to fix this? X-Git-Tag: v3.26~508 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2e168e2f82bd97b2b9785ee173d727fbf2644ffd Any idea on how to fix this? As a wild guess, tried to change the condition with 'message->state->routing_table[i][j] != -1' but got weird crash (double free detected). --- diff --git a/examples/c/dht-pastry/dht-pastry.c b/examples/c/dht-pastry/dht-pastry.c index c6e5947b91..e6d6919683 100644 --- a/examples/c/dht-pastry/dht-pastry.c +++ b/examples/c/dht-pastry/dht-pastry.c @@ -395,6 +395,7 @@ static void handle_message(node_t node, pastry_message_t message) /* Update routing table */ for (i = shl(node->id, message->state->id); i < LEVELS_COUNT; i++) { for (j = 0; j < LEVEL_SIZE; j++) { + // FIXME: this is a no-op! if (node->routing_table[i][j] == -1 && message->state->routing_table[i][j] == -1) node->routing_table[i][j] = message->state->routing_table[i][j]; }