Community
Participate
Working Groups
The Topology::init method sets agentPath to the result of SysUtil::get_path_name in certain situations, however get_path_name returns NULL if the argument is not found. Assigning a NULL value to a string is illegal in C++. The code should check the result of get_path_name and report the error condition to the user correctly.
It is the same issue as the third issues traced in 'Bug 333492': 3. Fix an coredump issue when scia is not found. I have attached the patch in 'Bug 333492'. Pls have a try after the patch is committed. We have added a check in 'topology.cpp'. If the NULL is returned, it will return with an error code 'SCI_ERR_AGENT_NOTFOUND'. Otherwise, it will assign the value to a string.
So this bug should have been resolved.
Closing as fixed.