perl-unicode

Re: Tk804 + Encode-1.50 :-) again

2002-04-19 14:39:47

While (on the other machine) Tk804 seems happy-ish, on 
this laptop I am attempting to catch up on my mail 
using bleadperl + UTF8-aware tkmail but non Unicode Tk800.

It seems to be discovering a snag.

When I try and read Autrijus Tang's latest posting to 
perl-unicode with that I get a malloc related segfault:

Program received signal SIGSEGV, Segmentation fault.
0x400e3f5a in chunk_realloc () from /lib/libc.so.6
(gdb) bt
#0  0x400e3f5a in chunk_realloc () from /lib/libc.so.6
#1  0x400e3ed4 in realloc () from /lib/libc.so.6
#2  0x80a0c85 in Perl_safesysrealloc (where=0x8e2f000, size=49) at util.c:122
#3  0x80b8d13 in Perl_sv_grow (my_perl=0x8152a08, sv=0x8e53d28, newlen=49)
    at sv.c:1580
#4  0x405d0fc7 in encode_method (my_perl=0x8152a08, enc=0x4078c47c, 
dir=0x40756e20, 
    src=0x8e4cc74, check=0) at Encode.xs:109
#5  0x405d1698 in XS_Encode__XS_decode (my_perl=0x8152a08, cv=0x8473038)
    at Encode.xs:247
#6  0x80b65fe in Perl_pp_entersub (my_perl=0x8152a08) at pp_hot.c:2734
#7  0x80a0743 in Perl_runops_debug (my_perl=0x8152a08) at dump.c:1394
#8  0x8062f84 in S_call_body (my_perl=0x8152a08, myop=0xbfffe97c, is_eval=0)
    at perl.c:2022
#9

Note that in _this_ case use of tkmail is using fallbacks - so I suspect 
(no proof yet) that "new" fallback insert can buffer-overrun, and so destroy 
the malloc data structures.

-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/