X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0c5cc5a4f87a98928093830eab689dcdd0dd603..2cc294d3e6a633bd4a76a41ce98f053290b41623:/src/mc/mc_global.c diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index ae9f437c1d..edc9339637 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -913,8 +913,10 @@ xbt_dict_t MC_get_location_list(const char *elf_file){ FILE *fp = popen(command, "r"); - if(fp == NULL) + if(fp == NULL){ perror("popen for objdump failed"); + xbt_abort(); + } int debug = 0; /*Detect if the program has been compiled with -g */ @@ -1013,8 +1015,11 @@ char *get_libsimgrid_path(){ char *command = bprintf("ldd %s", xbt_binary_name); FILE *fp = popen(command, "r"); - if(fp == NULL) + + if(fp == NULL){ perror("popen for ldd failed"); + xbt_abort(); + } char *line; ssize_t read;