On Mon, Dec 20, 2010 at 13:50:17 +0100, Bastien wrote: > Sure. I also compiled the library without the -O flag, so I can look > at the value of any variable. > > I get this running the "simple" example. > > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff5f19163 in panel_applet_factory_main_closure > (iid=0x665d38 "OAFIID:SimplePA_Factory", applet_type=6682016, > closure=0x610170) at panel-applet.c:1773 > 1773 iid, DisplayString (gdk_display)); > > (gdb) bt > #0 0x00007ffff5f19163 in panel_applet_factory_main_closure > (iid=0x665d38 "OAFIID:SimplePA_Factory", applet_type=6682016, > closure=0x610170) at panel-applet.c:1773 > #1 0x00007ffff5f1924e in panel_applet_factory_main (iid=0x665d38 > "OAFIID:SimplePA_Factory", applet_type=6682016, callback= > 0x406c64 <Gnome::Panel::(anonymous > namespace)::SignalProxy_Factory::c_callback(PanelApplet*, gchar > const*, void*)>, > data=0x7fffffffded0) at panel-applet.c:1798 > #2 0x0000000000408942 in Gnome::Panel::factory_main<MyApplet> (iid=...) > at ../../libpanelapplet/libpanelappletmm/factory.h:99 > #3 0x0000000000408077 in main (argc=1, argv=0x7fffffffe078) at main.cc:138 > > (gdb) list > 1768 closure = bonobo_closure_store (closure, > panel_applet_marshal_BOOLEAN__STRING); > 1769 > 1770 data = panel_applet_callback_data_new (applet_type, closure); > 1771 > 1772 display_iid = bonobo_activation_make_registration_id ( > 1773 iid, DisplayString (gdk_display)); > 1774 retval = bonobo_generic_factory_main ( > 1775 display_iid, > 1776 (BonoboFactoryCallback) panel_applet_factory_callback, > 1777 data); > > (gdb) print gdk_display > $3 = (Display *) 0x0 > So the display doesn't ever get opened? Is that actually a bug in the library, or in the example program?
Cheers, Julien
signature.asc
Description: Digital signature