Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not do useless and potentially harmful debug messages in datadesc_postexit
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Sep 2012 11:41:01 +0000 (13:41 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Sep 2012 11:41:01 +0000 (13:41 +0200)
It may happen that xbt_log already exited at this point, leading to
erratic segfaults. At least we saw such behavior with the coroutine
factory of the Java world, where MSG_process_get_pid was segfaulting
when called from here.

Better safe than sorry.

src/xbt/datadesc/datadesc.c

index 8c2328f..40856a5 100644 (file)
@@ -170,10 +170,8 @@ void xbt_datadesc_preinit(void)
  **/
 void xbt_datadesc_postexit(void)
 {
-  XBT_VERB("Exiting DataDesc");
   xbt_set_free(&xbt_datadesc_set_local);
   xbt_dict_free(&xbt_dd_constants);
-  XBT_DEBUG("Exited DataDesc");
 }
 
 /** This is mainly to debug */