prabakar.bhatt, first of all, I don't understand what's the thinking processes of anyone asking for help with so little information - as if someone sends an SOS with only Latitude and needs to be asked a second time to send their Longitude as well. Perhaps you want to test us for the priesthood at Delphi? May be so, but I find it very irritating to beg the person with a problem for more information to solve his problem. That said, and after reading your response to perlfan's and dave_the_m's questions ...

See Maintaining multiple interpreter instances

It is not clear to me if what's crashing is 3rd-party code (marto mentioned HP's), in which case I will assume that code is correct and the problem may be with how your perl libraries were compiled (and btw make sure it's the correct libraries it is linking to! Re: site perl vs perlbrew perl etc.etc.). This could be the problem especially if with the same 3rd-party code, previously you got no crash.

On the other hand, if what's crashing is your own C++ program which embeds a perl interpreter, then you must both check above point AND ALSO how you spawn the thread, embed and clean-up afterwards. Or if you attempt to use other thread's interpreters. Or if one perl interpreter unsuspectfully cleans up other interpreter's space. That can be tricky to get right even without threads. So again read the documentation I mentioned above which states how you should compile the perl libraries in the first place.

Additionally and for both cases above: since what's crashing is strchr(), can this be an issue of unicode strings and incorrect length? That means, the Perl content, i.e. script to your embeded interpreters may be to blame. So, perhaps try it with minimal Perl scripts and without unicode if any at all which btw can be user-supplied (unicode) input.

I don't know if you are in a position to run all these under a debugger. But if you are then checking what are the args to the crashing strchr() will give you a good hint.

bw, bliako


In reply to Re: Crash at perl_parse() function by bliako
in thread Crash at perl_parse() function by prabakar.bhatt

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.