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

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Jan 15 19:55:57 CST 2008


Hi Hans,

   Thanks for using the PRF.

>      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;
> }

Could you please send us the "backtrace" that shows the runtime stack
when the segfault occurs?

Thanks,

        Doug



More information about the Ace-users mailing list