1
1
openmpi/opal/mca/base
Jeff Squyres 6092b50ebb Fix the cases where the default values of MCA params were not always
handled properly when MCA parameters are re-registered and their types
change.  Specifically, this case was broken:

 1. Register an int MCA param with a non-zero default value
 1. Re-register the same MCA param as a string with a NULL default value

The 2nd step would cause a segv because the first int default value
wasn't being reset properly.  Here's sample code that shows the issue:

{{{
{
    int ibogus;
    char *sbogus;
    opal_init(&argc, &argv);
    mca_base_param_reg_int_name("type", "name", "help", false, false, 3, &ibogus);
    printf("Ibogus: %d\n", ibogus);
    mca_base_param_reg_string_name("type", "name", "help", false, false, NULL, &sbogus);
    printf("Sbogus: %s\n", (NULL == sbogus) ? "NULL" : sbogus);
    exit(0);
}
}}}

This commit fixes the problem from the sample code above as well as
the a similar issue for file-set MCA params and override values.  It
also resets default values for MCA params initially registered as a
string but then re-registered as an int.

This commit was SVN r25392.
2011-10-29 12:29:31 +00:00
..
base.h These don't belong in this file. 2010-04-12 20:50:23 +00:00
help-mca-base.txt Fixes trac:1338: Have the MCA base specifically check for all requested 2008-06-23 16:14:05 +00:00
help-mca-param.txt r24976 wasn't quite right -- you now actually get a warning if you 2011-08-10 17:24:36 +00:00
Makefile.am Fix mistake that came in via the ompi-agen tree in r23764. The mistake wasn't part of the core autogen upgrade; it was an additional 'bonus' cleanup. Oops. The mistake will always create a set of directories under installdir, even if you do not --with-devel-headers. The set of directories will be empty, but still -- they should not be there at all. This commit fixes that -- the directories are not created at all if you do not --with-devel-headers 2010-09-24 22:53:28 +00:00
mca_base_close.c Picky, picky, picky...the a-retentive amongst us wants the default value to show in ompi_info! Of all the nerve... 2009-12-08 17:32:22 +00:00
mca_base_cmd_line.c * Added 2 new MCA parameters 2007-03-01 13:39:20 +00:00
mca_base_component_compare.c Merge the ORTE devel branch into the main trunk. Details of what this means will be circulated separately. 2008-02-28 01:57:57 +00:00
mca_base_component_find.c At least on NetBSD 5.0_STABLE with Libtool 2.2.6b, lt_dlerror() can 2010-07-27 14:15:53 +00:00
mca_base_component_repository.c Add --with-libltdl option to allow building Open MPI with an external installation of libltdl. Fixes trac:2407 2010-05-20 22:42:02 +00:00
mca_base_component_repository.h - Replace combinations of 2009-08-20 11:42:18 +00:00
mca_base_components_close.c * don't close debugging stream if we're just closing the unused components in 2006-08-16 16:23:35 +00:00
mca_base_components_open.c Fix bugs where (OMPI_ERROR == *) checks cannot be converted to (OMPI_SUCCESS != *) since the return codes are overloaded to return an "index" on success. 2010-05-18 20:54:11 +00:00
mca_base_components_select.c Remove lingering references to opal_profile option 2011-05-18 18:27:29 +00:00
mca_base_list.c Next step in the project split, mainly source code re-arranging 2006-02-12 01:33:29 +00:00
mca_base_open.c Add a proper help message for the mca_verbose MCA param (and shuffle 2011-01-14 20:18:06 +00:00
mca_base_param_internal.h - Replace combinations of 2009-08-20 11:42:18 +00:00
mca_base_param.c Fix the cases where the default values of MCA params were not always 2011-10-29 12:29:31 +00:00
mca_base_param.h r24976 wasn't quite right -- you now actually get a warning if you 2011-08-10 17:24:36 +00:00
mca_base_parse_paramfile.c ... Delayed due to notifier commits earlier this day ... 2009-04-29 01:32:14 +00:00