Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

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,


In reply to Re: random crashes, memory corruption, warnings from Encode by Athanasius
in thread random crashes, memory corruption, warnings from Encode by bulk88

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (3)
    As of 2014-09-18 05:24 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (108 votes), past polls