[Ace-users] [tao-bugs] segfault on _validate_connection

Hans Utz hans.utz at nasa.gov
Tue Jan 15 16:50:36 CST 2008


Hi,

     TAO VERSION: 1.6.2
     ACE VERSION: 5.6.2

     HOST MACHINE and OPERATING SYSTEM: Linux (RH EL 5)
     COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc 4.1.2-14

     THE $ACE_ROOT/ace/config.h: config-linux.h
     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
       platform_linux.GNU

     AREA/CLASS/EXAMPLE AFFECTED: TAO Core
     DOES THE PROBLEM AFFECT: EXECUTION

     SYNOPSIS:
	_validate_connection segfaults, when called on a transient ior.

     DESCRIPTION:

The attached code snippet creates a segfault for me, when called with a 
transient ior (e.g. the ior of a formerly running name service). It 
works fine, while the ior is valid.

     TEST CASE:

#include <tao/ORB.h>
#include <tao/PolicyC.h>

#include <iostream>

int main (int argc, char * argv[])
{
   CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);

   try {
     CORBA::Object_var obj = orb->string_to_object(argv[1]);
     CORBA::PolicyList_var pl;
     obj->_validate_connection(pl);
   }
   catch(CORBA::Exception const& e) {
     std::cerr << "Exception: " << e << std::endl;
   }
   return 0;
}






More information about the Ace-users mailing list