Commit 4e4a16d1 authored by Pavel Vainerman's avatar Pavel Vainerman

fixed bug: SIGSIEGV!!!

parent deeab0b1
...@@ -262,7 +262,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv ) ...@@ -262,7 +262,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
// default init... // default init...
transientIOR = false; transientIOR = false;
localIOR = false; localIOR = false;
initParameters(); initParameters();
...@@ -325,8 +325,13 @@ void Configuration::initConfiguration( int argc, const char* const* argv ) ...@@ -325,8 +325,13 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
if( unideb.debugging(Debug::INFO) ) if( unideb.debugging(Debug::INFO) )
unideb[Debug::INFO] << "(Configuration): " << param.str() << endl; unideb[Debug::INFO] << "(Configuration): " << param.str() << endl;
i+=2; i+=2;
assert( i < _argc ); assert( i < _argc );
} }
// .. _argc , _argv
// getArgParam SIGSEGV
_argv = new_argv;
// NameService (+2) // NameService (+2)
xmlNode* nsnode = getNode("NameService"); xmlNode* nsnode = getNode("NameService");
...@@ -339,8 +344,8 @@ void Configuration::initConfiguration( int argc, const char* const* argv ) ...@@ -339,8 +344,8 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
else else
{ {
new_argv[i] = "-ORBInitRef"; new_argv[i] = "-ORBInitRef";
new_argv[i+1] = ""; // (.. getArgParam) new_argv[i+1] = ""; // (.. getArgParam)
string defPort( getPort( getProp(nsnode,"port") ) ); // getArgParam! _argv string defPort( getPort( getProp(nsnode,"port") ) ); // getArgParam! _argv
ostringstream param; ostringstream param;
...@@ -349,7 +354,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv ) ...@@ -349,7 +354,7 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
if( unideb.debugging(Debug::INFO) ) if( unideb.debugging(Debug::INFO) )
unideb[Debug::INFO] << "(Configuration): " << param.str() << endl; unideb[Debug::INFO] << "(Configuration): " << param.str() << endl;
} }
_argv = new_argv; _argv = new_argv;
// ------------- CORBA INIT ------------- // ------------- CORBA INIT -------------
// orb init // orb init
...@@ -662,7 +667,7 @@ void Configuration::createNodesList() ...@@ -662,7 +667,7 @@ void Configuration::createNodesList()
} }
} }
tmp = getProp(it,"dbserver"); tmp = it.getProp("dbserver");
if( tmp.empty() ) if( tmp.empty() )
ninf.dbserver = UniSetTypes::DefaultObjectId; ninf.dbserver = UniSetTypes::DefaultObjectId;
...@@ -693,7 +698,7 @@ void Configuration::createNodesList() ...@@ -693,7 +698,7 @@ void Configuration::createNodesList()
} }
if( unideb.debugging(Debug::INFO) ) if( unideb.debugging(Debug::INFO) )
unideb[Debug::INFO] << "Configuration(createNodesList): " << lnodes.size() << endl; unideb[Debug::INFO] << "Configuration(createNodesList): " << lnodes.size() << endl;
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
void Configuration::initNode( UniSetTypes::NodeInfo& ninfo, UniXML_iterator& it ) void Configuration::initNode( UniSetTypes::NodeInfo& ninfo, UniXML_iterator& it )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment