Re: [gtk-list] Re: GtkPerl, Gnome and libglade



>>>>> "Paolo" == Paolo Molaro <lupus@lettere.unipd.it> writes:

    Paolo> On Fri, Oct 01, 1999 at 11:11:11AM -0400, bilko@onebabyzebra.com
    Paolo> wrote:
    >> I installed imlib 1.9.7. Recompiled gtk, glib, gnome-libs, libglade and
    >> GtkPerl. Still the same problem.

    Paolo> Try to run the script in a debugger: install the debug version of
    Paolo> perl (in debian it's perl-debug for slink and perl-5.00[45]-debug
    Paolo> for potato).  run gdb /usr/bin/debugperl in the gdb shell type: set
    Paolo> args your_perl_script run

    Paolo> When it crashes type: bt

    Paolo> Send back the result.  It may be useful also the output of the ldd
    Paolo> command on the Gtk.so module.

Sure. Also, with perl > 5.005, I believe that the following does the same as
gdb debugperl:

gdb perl
set args -d script.pl
run

The bt and the output of ldd are below:

beej{cracker}~/projects/project3> gdb perl     
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
(gdb) set args -d foo.pl
(gdb) run
Starting program: /usr/local/bin/perl -d foo.pl
Linux thread target has modified Unknown signal handling

Loading DB routines from perl5db.pl version 1.0401
Emacs support available.

Enter h or `h h' for help.

main::(foo.pl:8):	init Gtk;
  DB<1> n
main::(foo.pl:9):	init Gnome "foo.pl";
  DB<1> n
main::(foo.pl:10):	init Gtk::GladeXML;
  DB<1> n
main::(foo.pl:12):	$g = new Gtk::GladeXML("test.glade", "about");
  DB<1> n
IMLIB ERROR: Cannot allocate XImage buffer
Mon Oct  4 13:52:55 1999 Gdk-LOG **: file gdkwindow.c: line 1401 (gdk_window_get_visual): assertion `window != NULL' failed. at foo.pl line 12.

Program received signal SIGSEGV, Segmentation fault.
gnome_stock_paint (stock=0x843fd78, pixmap=0x843fde8) at gnome-stock.c:363
363			gpixmap->pixmap = gdk_pixmap_new(pixmap->pixmap,
(gdb) bt
#0  gnome_stock_paint (stock=0x843fd78, pixmap=0x843fde8) at gnome-stock.c:363
#1  0x403e276d in gnome_stock_state_changed (widget=0x843fd78, 
    prev_state=GTK_STATE_NORMAL) at gnome-stock.c:458
#2  0x403e2a7e in gnome_stock_set_icon (stock=0x843fd78, 
    icon=0x403f159c "Button_Ok") at gnome-stock.c:601
#3  0x403e2afb in gnome_stock_new_with_icon (icon=0x403f159c "Button_Ok")
    at gnome-stock.c:619
#4  0x403e386a in gnome_stock_pixmap_widget (window=0x0, 
    icon=0x403f159c "Button_Ok") at gnome-stock.c:1274
#5  0x403e3d2c in stock_button_from_entry (type=0x403f159c "Button_Ok", 
    entry=0x843ddc0) at gnome-stock.c:1430
#6  0x403e3de7 in gnome_stock_or_ordinary_button (type=0x403f159c "Button_Ok")
    at gnome-stock.c:1475
#7  0x403ae7bc in gnome_dialog_append_button (dialog=0x8434d78, 
    button_name=0x403f159c "Button_Ok") at gnome-dialog.c:465
#8  0x40389e9f in gnome_about_construct (about=0x8434d78, title=0x403f150e "", 
    version=0x403f150e "", 
    copyright=0x8430318 "Copyright (c) 1999 BrYan P. Johnson", 
    authors=0x8433b50, comments=0x8430380 "Test", logo=0x0)
    at gnome-about.c:652
#9  0x40389bda in gnome_about_new (title=0x403f150e "", version=0x403f150e "", 
    copyright=0x8430318 "Copyright (c) 1999 BrYan P. Johnson", 
    authors=0x8433b50, comments=0x8430380 "Test", logo=0x0)
    at gnome-about.c:543
#10 0x40313f91 in about_new (xml=0x842fd40, info=0x8430208)
    at glade-gnome.c:1682
#11 0x4032c87a in glade_xml_build_widget (self=0x842fd40, info=0x8430208, 
    parent_long=0x0) at glade-xml.c:976
#12 0x4032c6bd in glade_xml_build_interface (self=0x842fd40, tree=0x8430188, 
    root=0x82cd298 "about") at glade-xml.c:851
#13 0x4032bbf0 in glade_xml_construct (self=0x842fd40, 
    fname=0x82d38b8 "test.glade", root=0x82cd298 "about", domain=0x0)
    at glade-xml.c:194
#14 0x4032bac9 in glade_xml_new (fname=0x82d38b8 "test.glade", 
    root=0x82cd298 "about") at glade-xml.c:130
#15 0x4020482e in XS_Gtk__GladeXML_new ()
#16 0x808b784 in Perl_pp_entersub ()
#17 0x80b7371 in Perl_runops_standard ()
#18 0x8058668 in perl_run ()
#19 0x805642b in main ()
(gdb) 



beej{cracker}~/projects/project3> ldd /usr/lib/perl5/site_perl/5.005/i386-linux-thread/auto/Gtk/Gtk.so                                                        
        /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40104000)
	libpanel_applet.so.0 => /usr/lib/libpanel_applet.so.0 (0x40107000)
	libgnorba.so.27 => /usr/lib/libgnorba.so.27 (0x40115000)
	libORBitCosNaming.so.0 => /usr/lib/libORBitCosNaming.so.0 (0x40120000)
	libORBit.so.0 => /usr/lib/libORBit.so.0 (0x40128000)
	libIIOP.so.0 => /usr/lib/libIIOP.so.0 (0x40165000)
	libORBitutil.so.0 => /usr/lib/libORBitutil.so.0 (0x40174000)
	libglade-gnome.so.0 => /usr/local/lib/libglade-gnome.so.0 (0x40177000)
	libglade.so.0 => /usr/local/lib/libglade.so.0 (0x4018f000)
	libxml.so.1 => /usr/local/lib/libxml.so.1 (0x401ae000)
	libgnomeui.so.32 => /usr/local/lib/libgnomeui.so.32 (0x401d9000)
	libart_lgpl.so.2 => /usr/lib/libart_lgpl.so.2 (0x40297000)
	libgdk_imlib.so.1 => /usr/lib/libgdk_imlib.so.1 (0x402a3000)
	libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x402c8000)
	libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x402d0000)
	libgtk-1.2.so.0 => /usr/local/lib/libgtk-1.2.so.0 (0x402e4000)
	libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x403f1000)
	libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40423000)
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40426000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40432000)
	libgnome.so.32 => /usr/local/lib/libgnome.so.32 (0x404c9000)
	libgnomesupport.so.0 => /usr/local/lib/libgnomesupport.so.0 (0x404dd000)	libesd.so.0 => /usr/lib/libesd.so.0 (0x404e2000)
	libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x404e7000)
	libm.so.6 => /lib/libm.so.6 (0x404fd000)
	libdb.so.2 => /lib/libdb.so.2 (0x4051a000)
	libglib-1.2.so.0 => /usr/local/lib/libglib-1.2.so.0 (0x40528000)
	libdl.so.2 => /lib/libdl.so.2 (0x40548000)
	libc.so.6 => /lib/libc.so.6 (0x4054b000)
	libz.so.1 => /usr/lib/libz.so.1 (0x4063e000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)






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