Hi all,

We are running Perl 5.8.8 on Windows 2008

We have a c++ application which uses perlembed to run perl scripts within C++ application. The code is proprietary so can't share the stack trace below Perl_call_sv.

The hang is seen below. Can you please help with any pointers to see why the thread is hung and any tracing mechanism to see the file name.

I tried to use PERLIO_DEBUG=test.txt but the problem is we are a multi threaded application; each thread is running different perl script and only the below thread is hung. test.txt contains traces from all the threads making debugging it more difficult.

ntdll!NtReadFile+0xa KERNELBASE!ReadFile+0x7a kernel32!ReadFile+0x59 msvcr80!putch+0x33b msvcr80!read+0x10e msvcr80!filbuf+0x8e msvcr80!fread_nolock_s+0x1ea msvcr80!fread_s+0x90 msvcr80!fread+0x18 libperl!PerlIO_setpos+0x38e libperl!Perl_reentrant_size+ libperl!Perl_runops_standard libperl!Perl_call_sv+0x780

In reply to Perl 5.8.8 on Windows, Hang in I/O operations using perlembed by perlstart_08

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.