Re: Segfault in _this()



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Some more clues from DDD: see attached jpg.


Johan


On Monday 04 August 2003 15:11, Johan Cronje wrote:
> On Friday 01 August 2003 01:47, Bowie Owens wrote:
> > Hi Johan,
> >
> > As for where to look, please try and determine which memory reference
> > caused the seg. fault. Was the rootPOA pointer null? Was the method
> > invoked on a null pointer (null this pointer)? Was the object the method
> > was invoked on deleted prior to the method call? Was the seg. fault
> > inside one the calls to activate_object or servant_to_id?
>
> This is the new generated _this() method that 1.3.6 gives me
> (-cpp-skels.cpp file). I have added the cout statements for debugging
> purposes.
>
> 1 ::sdr_corba::sdr_subcontroller_ptr
> POA_sdr_corba::sdr_subcontroller::_this() 2 {
> 3    cout << "blah\n";
> 4    PortableServer::POA_var rootPOA = _default_POA ();
> 5    cout << "blah 1\n";
> 6    CORBA::Object_var object = rootPOA->servant_to_reference (this);
> 7    cout << "blah 2\n";
> 8    return ::_orbitcpp::stub::sdr_corba::sdr_subcontroller::_orbitcpp_wrap
> 9    (object->_orbitcpp_cobj (), true);
> 10 }
>
> Now, the program segfaults between blah1 and blah2, indicating an error in
> line 6. The output of gdb is as follows:
>
> (gdb) run
> Starting program: /home/jcronje/SDR/devel/corbasdr/sdr_corba
> [New Thread 16384 (LWP 29450)]
> ORB_init
> orb->resolve_initial_references
> _narrow
> rootPOA->the_POAManager
> mgr->activate
> POA_sdr_corba_sdr_subcontroller__init (Called by
>
> ::POA_sdr_corba::sdr_subcontroller::sdr_subcontroller)
>
> servant created
> Test Class
> blah
> blah 1
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 16384 (LWP 29450)]
> 0x4006d346 in ORBit_POA_activate_object () from /usr/lib/libORBit-2.so.0
>
> Does this mean that my rootPOA pointer is null? If so, how do I fix it?
>
> Also find attached my main server implementation file, sdr_corba.cpp.
>
> Any help or direction will be greatly appreciated.
>
> Thank you
>
> Johan

- -- 

- ---------------------------------------------------------------
"There is beauty in simplicity"		-- Johan Cronje
- ---------------------------------------------------------------
Johan Cronje
Digital Signal Processing / Telecommunications Group
Electrical and Electronic Engineering Department
University of Stellenbosch
http://www.dsp.sun.ac.za/~jcronje
GNUPG Key: http://www.dsp.sun.ac.za/~jcronje/jcronje.asc
- ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iQEVAwUBPy5pBuEeclgONaRbAQI+8QgAg0yOzMxYADNOWu6dAaBjbAl8M5qhkhto
OWW4QzNOQ/tV9156VoTcgMLQ6KmPmE5rFLaekD1Wi0bj7OoQoYypQyjNgU5mtPon
OY0psWy2KImr6VM2OITvPQgxd0oGAEk201ao+yaYylwfiYbCFAgzjP3WAb2/ESOv
PMvVDINWEbICBwhkPtMvQfXJqXFR5U1bZQdbo/eYoTtZuhQrlXaDwXm5au2c5lAY
gX+k4btr13oZv4jd7siFpihSiWmObtga8QzchSRK0zrWP9cGVIVtyzUAGVw45S2u
gvhT4AfXn9NdUB1GrClguAPuTuxfCdSiT7Ozz6bvsOCp17wG59iWXw==
=Ojux
-----END PGP SIGNATURE-----

Attachment: screen1.jpg
Description: JPEG image



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]