Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : use abort() instead of a hack for core dump
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 3 Jul 2012 21:02:04 +0000 (23:02 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 3 Jul 2012 21:02:04 +0000 (23:02 +0200)
src/mc/mc_liveness.c

index fbbd221..6c35380 100644 (file)
@@ -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: