Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't try to compute the backtrace if we have no process name (only occure with ...
[simgrid.git] / src / xbt / ex.c
index cd6d584..1b141a4 100644 (file)
@@ -153,6 +153,10 @@ void xbt_ex_display(xbt_ex_t * e)
   {
     int i;
 
+    if (!xbt_binary_name) {
+      fprintf(stderr, "variable 'xbt_binary_name' set to NULL. Cannot compute the backtrace\n");
+      return;
+    }
     fprintf(stderr, "\n");
     for (i = 0; i < e->used; i++)
       fprintf(stderr, "%s\n", e->bt_strings[i]);