Re: Bug in ORBit? (Was: Can't get applets into panel)



Robin Ericsson wrote:
#0  0x4042fc65 in __kill ()
#1  0x403feae5 in raise ()
#2  0x4005fc0a in g_log (log_domain=0x400695ca "GLib",
    log_level=G_LOG_LEVEL_ERROR,
    format=0x4006949d "could not allocate %ld bytes") at gmessages.c:327
#3  0x4005ed3b in g_malloc (size=134580748) at gmem.c:135
#4  0x40029fb8 in ORBit_alloc (block_size=134580736, freefunc=0, func_data=0x0)
    at allocators.c:75
#5  0x400425ed in CORBA_octet_allocbuf (len=134580736) at sequences.c:18
#6  0x400413fe in ORBit_POA_allocate_oid (poa=0x8058a00,
    basis=0x40019178 "IDL:GNOME/Applet:1.0") at orbit_poa.c:503
#7  0x4003fe40 in PortableServer_POA_activate_object (obj=0x8058a00,
    p_servant=0x4001a1d0, ev=0x4001a9cc) at poa.c:576
#8  0x4000ff83 in gnome_panel_applet_register (widget=0x8058c80, applet_id=2)
    at orbit-applet-lib.c:493
#9  0x400117ab in applet_widget_add (applet=0x8058c80, widget=0x8058880)
    at applet-widget.c:407
#10 0x804a6ae in create_widget () at webcontrol.c:145
#11 0x804aba6 in main (argc=1, argv=0xbffff948) at webcontrol.c:277
#12 0x804a18e in ___crt_dummy__ ()

  Looking at this it seems that ORBit_POA_allocate_oid is that one setting
how much memory to allocate. Checking that functions leeds to an
conclusion from my side. It defines int len; but never sets an value and
when callsCORBA_octet_allocbuf with that.

  I might be alot wrong here, but shouldn't len be set to something here
before using it?

Sorry I can't post a diff because I'm at work (Solaris and CDE :-( ) but I've
inserted after the the line where buf got set the following :

len=strlen(buf)+1;

and now everything seems to be working.

Greetings,
--
Gert Dewit : Gert.Dewit@lin.vlaanderen.be
http://users.skynet.be/hobbiton
 



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