Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: random crashes, memory corruption, warnings from Encode

by Athanasius (Monsignor)
on Jan 14, 2013 at 08:44 UTC ( #1013168=note: print w/ replies, xml ) Need Help??


in reply to random crashes, memory corruption, warnings from Encode

Hello bulk88,

I don’t have an answer for you, but I’ve found something that might possibly help. If I run your code as-is, I get a similar crash. Same if I change sub xs_edistance to:

sub xs_edistance { my $a1 = $utf32encoder->encode($_[0],0); my $a2 = $utf32encoder->encode($_[1],0); }

However, if the subroutine arguments are copied:

sub xs_edistance { my ($in1, $in2) = @_; my $a1 = $utf32encoder->encode($in1,0); my $a2 = $utf32encoder->encode($in2,0); }

the tests still fail, but there is no crash.

Update: Should have mentioned, I’m running Strawberry Perl v5.16.0 built for MSWin32-x86-multi-thread-64int on 32-bit Vista; with Encode v2.47 (the latest version).

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: random crashes, memory corruption, warnings from Encode
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-08-28 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (254 votes), past polls