capplets segv (orb->root_poa == NULL)
- From: Martin Baulig <martin home-of-linux org>
- To: Gnome Mailing List <gnome-list gnome org>
- Subject: capplets segv (orb->root_poa == NULL)
- Date: Mon, 30 Nov 1998 22:41:38 +0100 (CET)
I get this error both with latest ORBit and with the FOR_PANEL version,
latest gnome-libs and gnome-core.
Seems this is some CORBA problem where it fails to set up the root_poa:
CORBA_exception_init(&ev);
gnomelib_register_popt_table(cap_options, "capplet options");
orb = gnome_CORBA_init_with_popt_table (app_id, app_version,
argc, argv, options,
flags, return_ctx,
GNORBA_INIT_SERVER_FUNC, &ev);
/* setup CORBA fully */
POA_GNOME_capplet__init(&poa_capplet_servant, &ev);
poa = orb->root_poa;
/* setup CORBA fully */
POA_GNOME_capplet__init(&poa_capplet_servant, &ev);
poa = orb->root_poa;
^^^^^^^^^^^^^^^^^^^
This is NULL.
PortableServer_POAManager_activate
(PortableServer_POA__get_the_POAManager(poa,&ev), &ev);
PortableServer_POA_activate_object_with_id(poa,
&objid,
&poa_capplet_servant, &ev);
capplet = PortableServer_POA_servant_to_reference
((PortableServer_POA)orb->root_poa,
&poa_capplet_servant, &ev);
And here segfaults.
Any ideas how to fix this ?
Martin
==========================================================================
Program received signal SIGSEGV, Segmentation fault.
0x280ba48f in PortableServer_POA_servant_to_reference (obj=0x0,
p_servant=0x2808524c, ev=0x28085568) at poa.c:787
787 retval = PortableServer_POA_id_to_reference(obj,
(gdb) bt
#0 0x280ba48f in PortableServer_POA_servant_to_reference (obj=0x0,
p_servant=0x2808524c, ev=0x28085568) at poa.c:787
#1 0x28080f86 in capplet_widget_corba_init (
app_id=0x80659b2 "background-properties", app_version=0x80659ad "0.30",
argc=0xefbfd3ec, argv=0xefbfd450, options=0x0, flags=0, return_ctx=0x0)
at /home/martin/gnomecvs/gnome-core/control-center/capplet-widget-libs.c:223
#2 0x2808065d in gnome_capplet_init (
app_id=0x80659b2 "background-properties", app_version=0x80659ad "0.30",
argc=4, argv=0xefbfd450, options=0x0, flags=0, return_ctx=0x0)
at /home/martin/gnomecvs/gnome-core/control-center/capplet-widget.c:176
#3 0x804f260 in main (argc=4, argv=0xefbfd450)
at /home/martin/gnomecvs/gnome-core/capplets/background-properties/app-background.c:42
#4 0x804b245 in _start ()
(gdb) frame
#0 0x280ba48f in PortableServer_POA_servant_to_reference (obj=0x0,
p_servant=0x2808524c, ev=0x28085568) at poa.c:787
787 retval = PortableServer_POA_id_to_reference(obj,
(gdb) up
#1 0x28080f86 in capplet_widget_corba_init (
app_id=0x80659b2 "background-properties", app_version=0x80659ad "0.30",
argc=0xefbfd3ec, argv=0xefbfd450, options=0x0, flags=0, return_ctx=0x0)
at /home/martin/gnomecvs/gnome-core/control-center/capplet-widget-libs.c:223
223 capplet = PortableServer_POA_servant_to_reference((PortableServer_POA)orb->root_poa,
(gdb) print orb
$1 = 0x807a240
(gdb) print orb->root_poa
$2 = 0x0
(gdb) print *orb
$3 = {parent = {parent = {interface = 0x280ca300,
is_pseudo_object = 1 '\001', refs = 2},
pseudo_object_type = ORBIT_PSEUDO_ORB},
orb_identifier = 0x8079100 "orbit-local-orb", repoid = 0x0,
use_poa = 1 '\001', imr = 0x0, ir = 0x0, naming = 0x0, root_poa = 0x0,
cnx = {ipv4 = 0x807d000, ipv6 = 0x0, usock = 0x807d100},
objrefs = 0x80780c0, poas = 0x807bc24}
(gdb) frame
#1 0x28080f86 in capplet_widget_corba_init (
app_id=0x80659b2 "background-properties", app_version=0x80659ad "0.30",
argc=0xefbfd3ec, argv=0xefbfd450, options=0x0, flags=0, return_ctx=0x0)
at /home/martin/gnomecvs/gnome-core/control-center/capplet-widget-libs.c:223
223 capplet = PortableServer_POA_servant_to_reference((PortableServer_POA)orb->root_poa,
(gdb) up
#2 0x2808065d in gnome_capplet_init (
app_id=0x80659b2 "background-properties", app_version=0x80659ad "0.30",
argc=4, argv=0xefbfd450, options=0x0, flags=0, return_ctx=0x0)
at /home/martin/gnomecvs/gnome-core/control-center/capplet-widget.c:176
176 return capplet_widget_corba_init (app_id, app_version, &argc,
(gdb) up
#3 0x804f260 in main (argc=4, argv=0xefbfd450)
at /home/martin/gnomecvs/gnome-core/capplets/background-properties/app-background.c:42
42 gnome_capplet_init("background-properties", VERSION, argc, argv, NULL, 0, NULL);
(gdb) q
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /home/martin/INSTALL/bin/background-properties-capplet process 20803
-----------------------------------------------------------------
Martin Baulig - Angewandte Mathematik - Universitaet Trier
martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]