OpenSolaris

Printable Version Enter a New Search
Bug ID 6671097
Synopsis libshare can dump core when plugin initialization fails
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:filesystem
Keywords
Responsible Engineer Doug Mccallum
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_86
Fixed In snv_86
Release Fixed solaris_nevada(snv_86) , solaris_10u6(s10u6_03) (Bug ID:2163726)
Related Bugs 6671182
Submit Date 4-March-2008
Last Update Date 9-May-2008
Description
In proto_plugin_init(), line 143:

                        for (i = 0, tmp = sap_proto_list;
                            i < num_protos;
                            tmp = tmp->plugin_next) {
                                err = 0;
                                if (tmp->plugin_ops->sa_init != NULL)
                                        err = tmp->plugin_ops->sa_init();
                                if (err == SA_OK) {
                                        /*
                                         * Only include if the init
                                         * succeeded or was NULL
                                         */
                                        sa_proto_handle.sa_num_proto++;
                                        sa_proto_handle.sa_ops[i] =
                                            tmp->plugin_ops;
                                        sa_proto_handle.sa_proto[i] =
                                            tmp->plugin_ops->sa_protocol;
                                        i++; 
                                }
                        }

If sa_init() fails for a given protocol, i will not be incremented, and the for loop will walk off the end of the list.

I'll upload a core to /net/zion.sfbay/cores/<bug ID>.
Work Around
N/A
Comments
N/A