[omniORB] bug: duplication of a nil reference
Shawn Bisgrove
shawn_bisgrove@yahoo.com
Thu, 20 Apr 2000 06:37:39 -0700 (PDT)
Hello,
I am under the impression that one should be able to
duplicate a nil reference. If this is wrong let me
know. This problem would arise in the copying of a
struct containing a nil reference to an object.
Build: 4/17/00 OmniOrb 3
Platform: Solaris 2.6 (GNU Compiler 2.95.2)
Problem: cannot duplicate a nil reference.
= problem.idl ========================================
module TEST
{
interface Product { };
struct ProductStructure
{
Product pInterface;
};
};
= test.cc ============================================
#include "problem.hh"
void main ()
{
TEST::ProductStructure ps;
ps.pInterface = TEST::Product::_nil();
TEST::ProductStructure other;
ps = other; // error occurs here
}
======================================================
backtrace:
(gdb) backtrace
#0 0xef2f66b8 in _pthread_mutex_lock ()
#1 0xef783404 in omni_mutex::lock ()
#2 0x18e04 in omni_mutex_lock::omni_mutex_lock ()
at /usr/local/omni/include/omnithread.h:519
#3 0xef6eebfc in omni_tracedmutex::lock (this=0x0) at
../tracedthread.cc:103
#4 0xef6bba48 in omni::duplicateObjRef
(objref=0x2d6ac)
at ../omniInternal.cc:315
#5 0x1790c in TEST::Product_Helper::duplicate
(p=0x2d698) at problemSK.cc:24
#6 0x195c0 in
_CORBA_ObjRef_Member<TEST::_objref_Product,
TEST::Product_Helper>
::operator= (this=0xeffffb88, p=@0xeffffb78)
at
/usr/local/omni/include/omniORB3/templatedecls.h:449
#7 0x19494 in TEST::ProductStructure::operator=
(this=0xeffffb88,
_ctor_arg=@0xeffffb78) at test.cc:9
#8 0x18b48 in main () at test.cc:9
======================================================
thanks,
s.
=====
________________________________________
|shawn_bisgrove@partech.com
|http://www.geocities.com/shawn_bisgrove
__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com