Tkx::package_require("Tktable") Memory error

[email protected] (jeff)
Newsgroups perl.tcltk
Message-ID <[email protected]>
On Linux. Download Activestate 5.8. Just mucking around with Tkx
tutorial - part with tktable example - gets this memory error on exit:  

*** glibc detected *** perl: munmap_chunk(): invalid pointer: 0x08bb11c0
***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1bb)[0x9d2ceb]
perl(perl_destruct+0xdd4)[0x8086384]
perl(main+0xb3)[0x8060d23]
/lib/libc.so.6(__libc_start_main+0xdc)[0x97be8c]
perl(chroot+0x35)[0x8060bd1]
======= Memory map: ========
00110000-00310000 r-xp 00000000 08:02
2816942    /usr/lib/locale/locale-archive
00310000-00315000 r-xp 00000000 08:02
2844868    /usr/lib/libXdmcp.so.6.0.0
00315000-00316000 rwxp 00004000 08:02
2844868    /usr/lib/libXdmcp.so.6.0.0
00316000-00318000 r-xs 00000000 08:05
191814     /var/cache/fontconfig/e3ead4b767b8819993a6fa3ae306afa9-x86.cache-2
00319000-0031a000 r-xp 00319000 00:00 0          [vdso]
0031a000-00491000 r-xp 00000000 08:07
20612049   /home/jeff/Activestate/perl58/lib/auto/Tcl/tkkit.so
00491000-004ac000 rwxp 00176000 08:07
20612049   /home/jeff/Activestate/perl58/lib/auto/Tcl/tkkit.so
004ac000-004b0000 rwxp 004ac000 00:00 0
004b0000-004b5000 r-xs 00000000 08:05
191863     /var/cache/fontconfig/beeeeb3dfe132a8a0633a017c99ce0c0-x86.cache-2
004b5000-004bd000 r-xs 00000000 08:05
191853     /var/cache/fontconfig/e19de935dec46bbf3ed114ee4965548a-x86.cache-2
004bd000-004c3000 r-xs 00000000 08:05
191858     /var/cache/fontconfig/7ddba6133ef499da58de5e8c586d3b75-x86.cache-2
004c3000-004c6000 r-xs 00000000 08:05
191855     /var/cache/fontconfig/b67b32625a2bb51b023d3814a918f351-x86.cache-2
004ca000-004d3000 r-xp 00000000 08:02
6050280    /lib/libnss_files-2.5.so
004d3000-004d4000 r-xp 00008000 08:02
6050280    /lib/libnss_files-2.5.so
004d4000-004d5000 rwxp 00009000 08:02
6050280    /lib/libnss_files-2.5.so
004d5000-004e7000 r-xp 00000000 08:02
2845108    /usr/lib/libXft.so.2.1.2
004e7000-004e8000 rwxp 00012000 08:02
2845108    /usr/lib/libXft.so.2.1.2
005a4000-005a5000 rwxp 005a4000 00:00 0
005a5000-006aa000 r-xp 00000000 08:06 38         /tmp/tclBSG5tt
(deleted)
006aa000-006bb000 rwxp 00105000 08:06 38         /tmp/tclBSG5tt
(deleted)
006bb000-007ba000 r-xp 00000000 08:02
2844869    /usr/lib/libX11.so.6.2.0
007ba000-007be000 rwxp 000ff000 08:02
2844869    /usr/lib/libX11.so.6.2.0
0085f000-00872000 r-xp 00000000 08:02 6052173    /lib/libnsl-2.5.so
00872000-00873000 r-xp 00012000 08:02 6052173    /lib/libnsl-2.5.so
00873000-00874000 rwxp 00013000 08:02 6052173    /lib/libnsl-2.5.so
00874000-00876000 rwxp 00874000 00:00 0
00943000-0095d000 r-xp 00000000 08:02 6052157    /lib/ld-2.5.so
0095d000-0095e000 r-xp 00019000 08:02 6052157    /lib/ld-2.5.so
0095e000-0095f000 rwxp 0001a000 08:02 6052157    /lib/ld-2.5.so
00961000-00963000 r-xp 00000000 08:02
2843969    /usr/lib/libXau.so.6.0.0
00963000-00964000 rwxp 00001000 08:02
2843969    /usr/lib/libXau.so.6.0.0
00966000-00aa4000 r-xp 00000000 08:02 6052158    /lib/libc-2.5.so
00aa4000-00aa6000 r-xp 0013e000 08:02 6052158    /lib/libc-2.5.so
00aa6000-00aa7000 rwxp 00140000 08:02 6052158    /lib/libc-2.5.so
00aa7000-00aaa000 rwxp 00aa7000 00:00 0
00aac000-00ad1000 r-xp 00000000 08:02 6052165    /lib/libm-2.5.so
00ad1000-00ad2000 r-xp 00024000 08:02 6052165    /lib/libm-2.5.so
00ad2000-00ad3000 rwxp 00025000 08:02 6052165    /lib/libm-2.5.so
00ad5000-00ad7000 r-xp 00000000 08:02 6052159    /lib/libdl-2.5.so
00ad7000-00ad8000 r-xp 00001000 08:02 6052159    /lib/libdl-2.5.so
00ad8000-00ad9000 rwxp 00002000 08:02 6052159    /lib/libdl-2.5.so
00adb000-00aee000 r-xp 00000000 08:02 6052160    /lib/libpthread-2.5.so
00aee000-00aef000 r-xp 00012000 08:02 6052160    /lib/libpthread-2.5.so
00aef000-00af0000 rwxp 00013000 08:02 6052160    /lib/libpthread-2.5.so
00af0000-00af2000 rwxp 00af0000 00:00 0
00afb000-00b1c000 rwxp 00afb000 00:00 0
00be2000-00be3000 rwxp 00be2000 00:00 0
00c03000-00c04000 rwxp 00c03000 00:00 0
00c16000-00c25000 r-xp 00000000 08:02
2844874    /usr/lib/libXext.so.6.4.0
00c25000-00c26000 rwxp 0000e000 08:02
2844874    /usr/lib/libXext.so.6.4.0
00c28000-00c47000 r-xp 00000000 08:02 6052166    /lib/libexpat.so.0.5.0
00c47000-00c49000 rwxp 0001e000 08:02 6052166    /lib/libexpat.so.0.5.0
00c4bAbort

Reduced the code down to:
#########################################
use Tkx;
     Tkx::package_require("Tktable");
 	my $b = $mw->new_button(
        -text => "Exit",
        -command => sub { 
		$mw->g_destroy; 
		}
    );
    $b->g_pack;
	
    Tkx::MainLoop();
#########################################

Still get error on exit;

Comment out this:

#########################################
# Tkx::package_require("Tktable");
#########################################

And errors goes away.

Perl:  ActivePerl-5.8.9.827-i686-linux-glibc-2.3.2-291969/
System: Linux maine 2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:39:56 EDT
2009 i686 i686 i386 GNU/Linux

Any thoughts?  Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.