[mvapich-discuss] likely bug in clear_kvc in src/pm/mpirun/pmi_tree.c

Sayantan Sur surs at cse.ohio-state.edu
Fri Jun 4 10:18:29 EDT 2010


Hi Chris,

Good catch. We will fix it. Thanks.

On Fri, Jun 4, 2010 at 9:34 AM, TJC Ward <tjcw at us.ibm.com> wrote:

> In this function
> int clear_kvc (void)
> {
>         int i;
>         kv_cache_t *iter, *tmp;
>
>         for (i = 0; i < KVC_HASH_SIZE; i++) {
>                 iter = kv_cache[i];
>                 while (iter) {
>                         tmp = iter;
>                         iter = iter->kvc_hash_next;
>                         free (tmp->kvc_key);
>                         free (tmp->kvc_val);
>                         free (tmp);
>                 }
>                 kv_cache[1] = 0;
>         }
>         return 0;
> }
>
> it looks as if you should have "kv_cache[i] = 0;" , i.e. letter i instead
> of number 1 . This doesn't account for my problem, but would probably bite
> someone else another day if not fixed
>  *T J (Chris) Ward, IBM Research
> Scalable Data-Centric Computing - Active Storage Fabrics - IBM System
> BlueGene
> IBM United Kingdom Ltd., Hursley Park, Winchester, Hants, SO21 2JN
> 011-44-1962-818679
> IBM Intranet **http://hurgsa.ibm.com/~tjcw/*<http://hurgsa.ibm.com/~tjcw/>
> *
> **
> **IBM System BlueGene Research* <http://www.research.ibm.com/bluegene/>* *
> *
> **IBM System BlueGene Marketing*<http://www-03.ibm.com/systems/deepcomputing/bluegene/>
> *
> **
> **IBM Resources for Global Servants*<http://hurgsa.ibm.com/~tjcw/Compete/>
> * **
> **IBM Branded Products* <http://www.ibm.com/shop>* **IBM Branded Swag*<http://logogear.americanid.com/>
> * *
> <http://www.ibm.com/developerworks/linux/library/l-bluegene/index.html>
>
>  UNIX in the Cloud - Find A Place Where There's Room To Grow, with the
> original Open Standard. *Free Trial Here Today*<http://sdf.lonestar.org/index.cgi?telnet>  New
> Lamps For Old - *Diskless Remote Boot Linux*<http://drbl.sourceforge.net/>from
> *National Center for High-Performance Computing, Taiwan*<http://www.nchc.org.tw/en/>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>


-- 
Sayantan Sur

Research Scientist
Department of Computer Science
The Ohio State University.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20100604/3d64e09c/attachment.html


More information about the mvapich-discuss mailing list