develooper Front page | perl.perl5.porters | Postings from November 2005

Tk compatibility

Thread Next
From:
Gisle Aas
Date:
November 23, 2005 00:13
Subject:
Tk compatibility
Message ID:
lr8xvfye6m.fsf@caliper.activestate.com
Tk programs segfault when I try them with blead.  Any idea why this is
or when blead stopped working with Tk?

BTW, for the perl-5.8.x branch you need to apply change 25613 to be
able to compile Tk and change 25751 to make it run.

--Gisle


gisle@ask ~/Tk-804.027 $ perl -V | head -n 1
Summary of my perl5 (revision 5 version 9 subversion 3 patch 26189) configuration:
gisle@ask ~/Tk-804.027 $ perl -Mblib t/create.t
1..528
# Running under perl version 5.009003 for linux
# Current time local: Wed Nov 23 09:06:39 2005
# Current time GMT:   Wed Nov 23 08:06:39 2005
# Using Test.pm version 1.25
ok 1
Segmentation fault (core dumped)
gisle@ask ~/Tk-804.027 $ gdb perl core
GNU gdb 6.3
Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `perl -Mblib t/create.t'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /opt/perl/26189/lib/5.9.3/i686-linux/auto/Cwd/Cwd.so...done.
Loaded symbols for /opt/perl/26189/lib/5.9.3/i686-linux/auto/Cwd/Cwd.so
Reading symbols from /home/gisle/Tk-804.027/blib/arch/auto/Tk/Event/Event.so...done.
Loaded symbols for /home/gisle/Tk-804.027/blib/arch/auto/Tk/Event/Event.so
Reading symbols from /opt/perl/26189/lib/5.9.3/i686-linux/auto/Encode/Encode.so...done.
Loaded symbols for /opt/perl/26189/lib/5.9.3/i686-linux/auto/Encode/Encode.so
Reading symbols from /home/gisle/Tk-804.027/blib/arch/auto/Tk/Tk.so...done.
Loaded symbols for /home/gisle/Tk-804.027/blib/arch/auto/Tk/Tk.so
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /usr/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /opt/perl/26189/lib/5.9.3/i686-linux/auto/Encode/Unicode/Unicode.so...done.
Loaded symbols for /opt/perl/26189/lib/5.9.3/i686-linux/auto/Encode/Unicode/Unicode.so
#0  0xb7cd302b in Tcl_ObjMagic (obj=0x1, add=0) at objGlue.c:1431
1431     MAGIC *mg = (SvTYPE(obj) >= SVt_PVMG) ? mg_find(obj,PERL_MAGIC_ext) : NULL;
(gdb) bt
#0  0xb7cd302b in Tcl_ObjMagic (obj=0x1, add=0) at objGlue.c:1431
#1  0xb7cd358c in TclObjGetType (obj=0x1) at objGlue.c:1558
#2  0xb7d6d2c6 in GetOptionFromObj (interp=0x82b8548, objPtr=0x1, tablePtr=0x81a47f8) at tkConfig.c:1213
#3  0xb7d6d5dc in Tk_SetOptions (interp=0x82b8548,
    recordPtr=0x83e2ac8 "\030|<\b°\2244\bH\205+\b@+>\bøG\032\bèÜ=\b\001", optionTable=0x81a47f8, objc=2,
    objv=0x81950fc, tkwin=0x83c7c18, savePtr=0xbfb3f000, maskPtr=0x0) at tkConfig.c:1413
#4  0xb7d0f901 in ConfigureFrame (interp=0x82b8548, framePtr=0x83e2ac8, objc=4, objv=0x81950f4) at tkFrame.c:962
#5  0xb7d0f252 in CreateFrame (clientData=0x0, interp=0x82b8548, objc=6, objv=0x81950ec, type=TYPE_TOPLEVEL,
    appName=0x82b6c80 "create") at tkFrame.c:692
#6  0xb7d0eb33 in TkCreateFrame (clientData=0x0, interp=0x82b8548, argc=6, objv=0x81950ec, toplevel=1,
    appName=0x82b6c80 "create") at tkFrame.c:466
#7  0xb7cd93f0 in XS_Tk__MainWindow_Create (cv=0x82dae38) at tkGlue.c:2401
#8  0x080e0b30 in Perl_pp_entersub () at pp_hot.c:2812
#9  0x080bf371 in Perl_runops_debug () at dump.c:1597
#10 0x080635f5 in S_run_body (oldscope=1) at perl.c:2305
#11 0x08063150 in perl_run (my_perl=0x8190050) at perl.c:2232
#12 0x0805e9ae in main (argc=3, argv=0xbfb3f394, env=0xbfb3f3a4) at perlmain.c:103
(gdb) 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About