X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0d59f5fddb48acb3ce7315d3a992c8d3669afcd..85b57706cd8138c99dcf423530de1c99ea74720a:/src/mc/mc_liveness.c diff --git a/src/mc/mc_liveness.c b/src/mc/mc_liveness.c index c841a9663b..6c35380468 100644 --- a/src/mc/mc_liveness.c +++ b/src/mc/mc_liveness.c @@ -48,7 +48,7 @@ int create_dump(int pair) switch(fork()){ case 0: // We are the child process -- run the actual program - *(int *)1 = 2; // segfault + abort(); break; case -1: @@ -63,7 +63,7 @@ int create_dump(int pair) printf("child exited with status %d\n", status); if(WIFSIGNALED(status) && WCOREDUMP(status)){ printf("got a core dump\n"); - char *core_name = malloc(20);; + char *core_name = malloc(20); sprintf(core_name,"mv core core_%d", pair); system((char *)core_name); free(core_name);