From: Pierre Veyre Date: Mon, 19 Aug 2013 07:46:59 +0000 (+0200) Subject: Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid X-Git-Tag: v3_9_90~127 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f6b0d23eaea9e39da091df3e74149c7e1e1ff4f6?hp=ee52f84fe512219acf534c4d4654c3df56659e91 Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid --- diff --git a/examples/java/async/async.tesh b/examples/java/async/async.tesh index bc6b11ce3e..6083344065 100644 --- a/examples/java/async/async.tesh +++ b/examples/java/async/async.tesh @@ -1,7 +1,7 @@ #! tesh ! output sort -! timeout 15 +! timeout 30 $ java -cp ${classpath:=.} async/AsyncTest ${srcdir:=.}/platform.xml ${srcdir:=.}/async/asyncDeployment.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (10:async.Slave@Robert) Receiving on 'slave_8' > [ 0.000000] (11:async.Slave@Sirois) Receiving on 'slave_9' diff --git a/examples/msg/mc/bugged1_liveness.c b/examples/msg/mc/bugged1_liveness.c index 90dd58a2b0..19f8d613a9 100644 --- a/examples/msg/mc/bugged1_liveness.c +++ b/examples/msg/mc/bugged1_liveness.c @@ -1,6 +1,6 @@ /***************** Centralized Mutual Exclusion Algorithm *********************/ /* This example implements a centralized mutual exclusion algorithm. */ -/* CS requests of client 1 not satisfied */ +/* Bug : CS requests of client 1 not satisfied */ /* LTL property checked : G(r->F(cs)); (r=request of CS, cs=CS ok) */ /******************************************************************************/ @@ -27,7 +27,8 @@ int coordinator(int argc, char *argv[]) { int CS_used = 0; - msg_task_t task = NULL, answer = NULL; + msg_task_t task = NULL, answer = NULL; + xbt_dynar_t requests = xbt_dynar_new(sizeof(char *), NULL); while(1){ MSG_task_receive(&task, "coordinator"); @@ -35,7 +36,8 @@ int coordinator(int argc, char *argv[]) if (!strcmp(kind, "request")) { char *req = MSG_task_get_data(task); if (CS_used) { - XBT_INFO("CS already used."); + XBT_INFO("CS already used. Queue the request."); + xbt_dynar_push(requests, &req); } else { if(strcmp(req, "1") != 0){ XBT_INFO("CS idle. Grant immediatly"); @@ -45,9 +47,20 @@ int coordinator(int argc, char *argv[]) answer = NULL; } } - } else { - XBT_INFO("CS release. resource now idle"); - CS_used = 0; + } else { + if (!xbt_dynar_is_empty(requests)) { + XBT_INFO("CS release. Grant to queued requests (queue size: %lu)", xbt_dynar_length(requests)); + char *req; + xbt_dynar_pop(requests, &req); + if(strcmp(req, "1") != 0){ + MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); + }else{ + xbt_dynar_push(requests, &req); + } + }else{ + XBT_INFO("CS release. resource now idle"); + CS_used = 0; + } } MSG_task_destroy(task); task = NULL; diff --git a/examples/smpi/mc/bugged1_liveness.c b/examples/smpi/mc/bugged1_liveness.c index f0f5219787..f7dab1be1b 100644 --- a/examples/smpi/mc/bugged1_liveness.c +++ b/examples/smpi/mc/bugged1_liveness.c @@ -1,3 +1,9 @@ +/***************** Centralized Mutual Exclusion Algorithm *********************/ +/* This example implements a centralized mutual exclusion algorithm. */ +/* Bug : CS requests of process 1 not satisfied */ +/* LTL property checked : G(r->F(cs)); (r=request of CS, cs=CS ok) */ +/******************************************************************************/ + #include #include #include @@ -19,11 +25,11 @@ static int predCS(){ int main(int argc, char **argv){ - //int i; int err, size, rank; int recv_buff; MPI_Status status; int CS_used = 0; + xbt_dynar_t requests = xbt_dynar_new(sizeof(int), NULL); /* Initialize MPI */ err = MPI_Init(&argc, &argv); @@ -43,12 +49,12 @@ int main(int argc, char **argv){ err = MPI_Comm_rank(MPI_COMM_WORLD, &rank); if(rank == 0){ /* Coordinator */ - //for(i=0; i [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9' diff --git a/src/include/mc/datatypes.h b/src/include/mc/datatypes.h index 9be94cc804..67cc1fc622 100644 --- a/src/include/mc/datatypes.h +++ b/src/include/mc/datatypes.h @@ -33,8 +33,6 @@ typedef struct s_stack_region{ int block; }s_stack_region_t, *stack_region_t; -void stack_region_free_voidp(void *s); - void heap_ignore_region_free(mc_heap_ignore_region_t r); void heap_ignore_region_free_voidp(void *r); diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 5e65143767..7b3646974e 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -29,8 +29,7 @@ void *start_text_binary; static void MC_snapshot_stack_free(mc_snapshot_stack_t s){ if(s){ - xbt_free(s->local_variables->data); - xbt_free(s->local_variables); + xbt_dynar_free(&(s->local_variables)); xbt_free(s); } } @@ -50,6 +49,23 @@ static void local_variable_free_voidp(void *v){ local_variable_free((local_variable_t) * (void **) v); } +static void MC_region_destroy(mc_mem_region_t reg) +{ + xbt_free(reg->data); + xbt_free(reg); +} + +void MC_free_snapshot(mc_snapshot_t snapshot){ + unsigned int i; + for(i=0; i < NB_REGIONS; i++) + MC_region_destroy(snapshot->regions[i]); + + xbt_free(snapshot->stack_sizes); + xbt_dynar_free(&(snapshot->stacks)); + xbt_dynar_free(&(snapshot->to_ignore)); + xbt_free(snapshot); +} + /******************************* Snapshot regions ********************************/ /*********************************************************************************/ @@ -73,16 +89,9 @@ static void MC_region_restore(mc_mem_region_t reg) before copying the data */ memcpy(reg->start_addr, reg->data, reg->size); - return; } -static void MC_region_destroy(mc_mem_region_t reg) -{ - xbt_free(reg->data); - xbt_free(reg); -} - static void MC_snapshot_add_region(mc_snapshot_t snapshot, int type, void *start_addr, size_t size) { mc_mem_region_t new_reg = MC_region_new(type, start_addr, size); @@ -492,16 +501,20 @@ static xbt_dynar_t MC_get_local_variables_values(void *stack_context){ int frame_found = 0, region_type; void *frame_pointer_address = NULL; long true_ip, value; + int stop; xbt_dynar_t variables = xbt_dynar_new(sizeof(local_variable_t), local_variable_free_voidp); - while(ret >= 0){ + while(ret >= 0 && !stop){ unw_get_reg(&c, UNW_REG_IP, &ip); unw_get_reg(&c, UNW_REG_SP, &sp); unw_get_proc_name(&c, frame_name, sizeof (frame_name), &off); + if(!strcmp(frame_name, "smx_ctx_sysv_wrapper")) /* Stop before context switch with maestro */ + stop = 1; + if((long)ip > (long)start_text_libsimgrid) frame = xbt_dict_get_or_null(mc_local_variables_libsimgrid, frame_name); else @@ -750,17 +763,6 @@ void MC_restore_snapshot(mc_snapshot_t snapshot){ } -void MC_free_snapshot(mc_snapshot_t snapshot){ - unsigned int i; - for(i=0; i < NB_REGIONS; i++) - MC_region_destroy(snapshot->regions[i]); - - xbt_free(snapshot->stack_sizes); - xbt_dynar_free(&(snapshot->stacks)); - xbt_dynar_free(&(snapshot->to_ignore)); - xbt_free(snapshot); -} - mc_snapshot_t SIMIX_pre_mc_snapshot(smx_simcall_t simcall){ return MC_take_snapshot(); } diff --git a/src/mc/mc_compare.c b/src/mc/mc_compare.c index 1037bf8efd..2422ad6567 100644 --- a/src/mc/mc_compare.c +++ b/src/mc/mc_compare.c @@ -17,14 +17,30 @@ typedef struct s_pointers_pair{ xbt_dynar_t compared_pointers; -static int heap_region_compare(void *d1, void *d2, size_t size); +/************************** Free functions ****************************/ +/********************************************************************/ -static void stack_region_free(stack_region_t s); +static void stack_region_free(stack_region_t s){ + if(s){ + xbt_free(s->process_name); + xbt_free(s); + } +} + +static void stack_region_free_voidp(void *s){ + stack_region_free((stack_region_t) * (void **) s); +} + +static void pointers_pair_free(pointers_pair_t p){ + xbt_free(p); +} + +static void pointers_pair_free_voidp(void *p){ + pointers_pair_free((pointers_pair_t) * (void **)p); +} -static int compare_local_variables(mc_snapshot_stack_t stack1, mc_snapshot_stack_t stack2, void *heap1, void *heap2); -static int compare_global_variables(int region_type, mc_mem_region_t r1, mc_mem_region_t r2); -static int compare_pointer(char *pointer_type, void *addr_pointed1, void *addr_pointed2, int region_size, int region_type); -static int compare_areas_with_type(void *area1, void *area2, xbt_dict_t types, xbt_dict_t other_types, char *type_id, int region_size, int region_type, void *start_data, int pointer_level); +/************************** Snapshot comparison *******************************/ +/******************************************************************************/ static int already_compared_pointers(void *p1, void *p2){ @@ -77,9 +93,10 @@ static void add_compared_pointers(void *p1, void *p2){ cursor = (start + end) / 2; pair = (pointers_pair_t)xbt_dynar_get_as(compared_pointers, cursor, pointers_pair_t); if(pair->p1 == p1){ - if(pair->p2 == p2) + if(pair->p2 == p2){ + pointers_pair_free(new_pair); return; - else if(pair->p2 < p2) + }else if(pair->p2 < p2) start = cursor + 1; else end = cursor - 1; @@ -220,7 +237,7 @@ static int compare_areas_with_type(void *area1, void *area2, xbt_dict_t types, x static int compare_global_variables(int region_type, mc_mem_region_t r1, mc_mem_region_t r2){ if(!compared_pointers){ - compared_pointers = xbt_dynar_new(sizeof(pointers_pair_t), NULL); + compared_pointers = xbt_dynar_new(sizeof(pointers_pair_t), pointers_pair_free_voidp); MC_ignore_global_variable("compared_pointers"); }else{ xbt_dynar_reset(compared_pointers); @@ -257,11 +274,15 @@ static int compare_global_variables(int region_type, mc_mem_region_t r1, mc_mem_ if(res == -1){ xbt_dynar_cursor_rm(variables, &cursor); }else if(res == 1){ - XBT_VERB("Global variable %s is different between snapshots", current_var->name); + XBT_VERB("Global variable %s (%p - %p) is different between snapshots", current_var->name, (char *)r1->data + offset, (char *)r2->data + offset); + xbt_dynar_free(&compared_pointers); return 1; } } + + xbt_dynar_free(&compared_pointers); + return 0; } @@ -269,7 +290,7 @@ static int compare_global_variables(int region_type, mc_mem_region_t r1, mc_mem_ static int compare_local_variables(mc_snapshot_stack_t stack1, mc_snapshot_stack_t stack2, void *heap1, void *heap2){ if(!compared_pointers){ - compared_pointers = xbt_dynar_new(sizeof(pointers_pair_t), NULL); + compared_pointers = xbt_dynar_new(sizeof(pointers_pair_t), pointers_pair_free_voidp); MC_ignore_global_variable("compared_pointers"); }else{ xbt_dynar_reset(compared_pointers); @@ -277,6 +298,7 @@ static int compare_local_variables(mc_snapshot_stack_t stack1, mc_snapshot_stack if(xbt_dynar_length(stack1->local_variables) != xbt_dynar_length(stack2->local_variables)){ XBT_VERB("Different number of local variables"); + xbt_dynar_free(&compared_pointers); return 1; }else{ unsigned int cursor = 0; @@ -285,8 +307,10 @@ static int compare_local_variables(mc_snapshot_stack_t stack1, mc_snapshot_stack while(cursor < xbt_dynar_length(stack1->local_variables)){ current_var1 = (local_variable_t)xbt_dynar_get_as(stack1->local_variables, cursor, local_variable_t); current_var2 = (local_variable_t)xbt_dynar_get_as(stack2->local_variables, cursor, local_variable_t); - if(strcmp(current_var1->name, current_var2->name) != 0 || strcmp(current_var1->frame, current_var2->frame) != 0 || current_var1->ip != current_var2->ip) + if(strcmp(current_var1->name, current_var2->name) != 0 || strcmp(current_var1->frame, current_var2->frame) != 0 || current_var1->ip != current_var2->ip){ + xbt_dynar_free(&compared_pointers); return 1; + } offset1 = (char *)current_var1->address - (char *)std_heap; offset2 = (char *)current_var2->address - (char *)std_heap; if(current_var1->region == 1) @@ -295,47 +319,16 @@ static int compare_local_variables(mc_snapshot_stack_t stack1, mc_snapshot_stack res = compare_areas_with_type( (char *)heap1 + offset1, (char *)heap2 + offset2, mc_variables_type_binary, mc_variables_type_libsimgrid, current_var1->type, 0, 2, start_data_binary, 0l); if(res == 1){ XBT_VERB("Local variable %s (%p - %p) in frame %s is different between snapshots", current_var1->name, (char *)heap1 + offset1, (char *)heap2 + offset2, current_var1->frame); + xbt_dynar_free(&compared_pointers); return res; } cursor++; } + xbt_dynar_free(&compared_pointers); return 0; } } - -static int heap_region_compare(void *d1, void *d2, size_t size){ - - size_t i = 0; - - for(i=0; iprocess_name); - xbt_free(s); - } -} - -void stack_region_free_voidp(void *s){ - stack_region_free((stack_region_t) * (void **) s); -} - -int SIMIX_pre_mc_compare_snapshots(smx_simcall_t simcall, - mc_snapshot_t s1, mc_snapshot_t s2){ - return snapshot_compare(s1, s2); -} - int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ int raw_mem = (mmalloc_get_current_heap() == raw_heap); @@ -374,6 +367,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ XBT_VERB("Different size used in stacks : %zu - %zu", size_used1, size_used2); #endif + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); @@ -407,11 +401,12 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ XBT_VERB("Different hash of global variables : %s - %s", s1->hash_global, s2->hash_global); #endif + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); xbt_os_timer_free(global_timer); - + if(!raw_mem) MC_UNSET_RAW_MEM; @@ -437,11 +432,12 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ XBT_VERB("Different hash of local variables : %s - %s", s1->hash_local, s2->hash_local); #endif + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); xbt_os_timer_free(global_timer); - + if(!raw_mem) MC_UNSET_RAW_MEM; @@ -483,6 +479,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ #endif reset_heap_information(); + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); @@ -517,6 +514,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ #endif reset_heap_information(); + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); @@ -549,6 +547,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ #endif reset_heap_information(); + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); @@ -574,14 +573,14 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ XBT_DEBUG("Different heap (mmalloc_compare)"); errors++; #else - - xbt_os_timer_free(timer); #ifdef MC_VERBOSE XBT_VERB("Different heap (mmalloc_compare)"); #endif reset_heap_information(); + xbt_os_walltimer_stop(timer); + xbt_os_timer_free(timer); xbt_os_walltimer_stop(global_timer); mc_snapshot_comparison_time = xbt_os_timer_elapsed(global_timer); xbt_os_timer_free(global_timer); @@ -598,7 +597,8 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ } reset_heap_information(); - + + xbt_os_walltimer_stop(timer); xbt_os_timer_free(timer); #ifdef MC_VERBOSE @@ -619,13 +619,8 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ } -int MC_compare_snapshots(void *s1, void *s2){ - - MC_ignore_local_variable("self", "simcall_BODY_mc_snapshot"); - - return simcall_mc_compare_snapshots(s1, s2); - -} +/***************************** Statistics *****************************/ +/*******************************************************************/ void print_comparison_times(){ XBT_DEBUG("*** Comparison times ***"); @@ -637,3 +632,18 @@ void print_comparison_times(){ XBT_DEBUG("- Heap : %f", mc_comp_times->heap_comparison_time); XBT_DEBUG("- Stacks : %f", mc_comp_times->stacks_comparison_time); } + +/**************************** MC snapshot compare simcall **************************/ +/***********************************************************************************/ + +int SIMIX_pre_mc_compare_snapshots(smx_simcall_t simcall, + mc_snapshot_t s1, mc_snapshot_t s2){ + return snapshot_compare(s1, s2); +} + +int MC_compare_snapshots(void *s1, void *s2){ + + MC_ignore_local_variable("self", "simcall_BODY_mc_snapshot"); + return simcall_mc_compare_snapshots(s1, s2); + +} diff --git a/src/mc/mc_pair.c b/src/mc/mc_pair.c index f25394abbf..f14e6c493e 100644 --- a/src/mc/mc_pair.c +++ b/src/mc/mc_pair.c @@ -25,3 +25,7 @@ void MC_pair_delete(mc_pair_t p){ xbt_free(p); p = NULL; } + +void mc_pair_free_voidp(void *p){ + MC_pair_delete((mc_pair_t) * (void **)p); +} diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index 52d70449fc..d9663d0587 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -311,6 +311,7 @@ typedef struct s_mc_pair{ mc_pair_t MC_pair_new(void); void MC_pair_delete(mc_pair_t); +void mc_pair_free_voidp(void *p); void MC_ddfs_init(void); void MC_ddfs(void); diff --git a/src/xbt/mmalloc/mfree.c b/src/xbt/mmalloc/mfree.c index ad5e05e45e..2472c91bf2 100644 --- a/src/xbt/mmalloc/mfree.c +++ b/src/xbt/mmalloc/mfree.c @@ -168,7 +168,9 @@ void mfree(struct mdesc *mdp, void *ptr) /* Set size used in the fragment to -1 */ mdp->heapinfo[block].busy_frag.frag_size[frag_nb] = -1; - + mdp->heapinfo[block].busy_frag.ignore[frag_nb] = 0; + mdp->heapinfo[block].busy_frag.equal_to[frag_nb] = NULL; + // fprintf(stderr,"nfree:%zu capa:%d\n", mdp->heapinfo[block].busy_frag.nfree,(BLOCKSIZE >> type)); if (mdp->heapinfo[block].busy_frag.nfree == (BLOCKSIZE >> type) - 1) { @@ -179,6 +181,7 @@ void mfree(struct mdesc *mdp, void *ptr) mdp->heapinfo[block].type = 0; mdp->heapinfo[block].busy_block.size = 1; mdp->heapinfo[block].busy_block.busy_size = 0; + mdp->heapinfo[block].busy_block.equal_to = NULL; /* Keep the statistics accurate. */ mdp -> heapstats.chunks_used++; diff --git a/src/xbt/mmalloc/mm_diff.c b/src/xbt/mmalloc/mm_diff.c index d1f021a0a8..6d0f265ef9 100644 --- a/src/xbt/mmalloc/mm_diff.c +++ b/src/xbt/mmalloc/mm_diff.c @@ -347,8 +347,7 @@ void reset_heap_information(){ if(heapinfo1[i].type == 0){ heap_area_free(heapinfo1[i].busy_block.equal_to); heapinfo1[i].busy_block.equal_to = NULL; - } - if(heapinfo1[i].type > 0){ + }else if(heapinfo1[i].type > 0){ for(j=0; j < (size_t) (BLOCKSIZE >> heapinfo1[i].type); j++){ heap_area_free(heapinfo1[i].busy_frag.equal_to[j]); heapinfo1[i].busy_frag.equal_to[j] = NULL; @@ -363,8 +362,7 @@ void reset_heap_information(){ if(heapinfo2[i].type == 0){ heap_area_free(heapinfo2[i].busy_block.equal_to); heapinfo2[i].busy_block.equal_to = NULL; - } - if(heapinfo2[i].type > 0){ + }else if(heapinfo2[i].type > 0){ for(j=0; j < (size_t) (BLOCKSIZE >> heapinfo2[i].type); j++){ heap_area_free(heapinfo2[i].busy_frag.equal_to[j]); heapinfo2[i].busy_frag.equal_to[j] = NULL; diff --git a/src/xbt/mmalloc/mmalloc.c b/src/xbt/mmalloc/mmalloc.c index 04f6731c58..9e94017cde 100644 --- a/src/xbt/mmalloc/mmalloc.c +++ b/src/xbt/mmalloc/mmalloc.c @@ -117,13 +117,14 @@ static void *register_morecore(struct mdesc *mdp, size_t size) /* mark the space previously occupied by the block info as free by first marking it * as occupied in the regular way, and then freing it */ - for (it=0; itheapsize * sizeof(malloc_info)); it++) + for (it=0; itheapsize * sizeof(malloc_info)); it++){ newinfo[BLOCK(oldinfo)+it].type = 0; + newinfo[BLOCK(oldinfo)+it].busy_block.ignore = 0; + newinfo[BLOCK(oldinfo+it)].busy_block.equal_to = NULL; + } newinfo[BLOCK(oldinfo)].busy_block.size = BLOCKIFY(mdp->heapsize * sizeof(malloc_info)); newinfo[BLOCK(oldinfo)].busy_block.busy_size = size; - newinfo[BLOCK(oldinfo)].busy_block.ignore = 0; - newinfo[BLOCK(oldinfo)].busy_block.equal_to = NULL; //newinfo[BLOCK(oldinfo)].busy_block.bt_size = 0;// FIXME setup the backtrace mfree(mdp, (void *) oldinfo); mdp->heapsize = newsize; diff --git a/src/xbt/mmalloc/mrealloc.c b/src/xbt/mmalloc/mrealloc.c index dc31fa19e2..7cbe32c6dd 100644 --- a/src/xbt/mmalloc/mrealloc.c +++ b/src/xbt/mmalloc/mrealloc.c @@ -82,8 +82,11 @@ void *mrealloc(xbt_mheap_t mdp, void *ptr, size_t size) int it; /* The new size is smaller; return excess memory to the free list. */ //printf("(%s) return excess memory...",xbt_thread_self_name()); - for (it= block+blocks; it< mdp->heapinfo[block].busy_block.size ; it++) + for (it= block+blocks; it< mdp->heapinfo[block].busy_block.size ; it++){ mdp->heapinfo[it].type = 0; // FIXME that should be useless, type should already be 0 here + mdp->heapinfo[it].busy_block.ignore = 0; + mdp->heapinfo[it].busy_block.equal_to = NULL; + } mdp->heapinfo[block + blocks].busy_block.size = mdp->heapinfo[block].busy_block.size - blocks; diff --git a/teshsuite/smpi/gather_coll.tesh b/teshsuite/smpi/gather_coll.tesh index c4b40fe684..6243654ced 100644 --- a/teshsuite/smpi/gather_coll.tesh +++ b/teshsuite/smpi/gather_coll.tesh @@ -1,6 +1,7 @@ # Smpi Alltoall collectives tests ! setenv LD_LIBRARY_PATH=../../lib ! output sort +! timeout 30 p Test all to all $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../../examples/msg/small_platform.xml -np 16 --log=xbt_cfg.thres:critical ./gather_coll