in reply to Re^2: Perl58.dll & nt.dll crashes
in thread Perl58.dll & nt.dll crashes

it refers to a sleep function error

It does suggest that, but it is almost certainly wrong. The Win API sleep() is just about the simplest piece of code in the OS, and very well exercised. It takes one argument, a DWORD, which is treated as an unsigned 32-bit quantity of milliseconds. Even if it was passed a float or double or a memory address, it still wouldn't trap. It would just interpret the numeric value as a long sleep.

What I'm saying is, it is really hard to see how a call to sleep could ever lead to a trap. The first line of what you've posted says: "WARNING: Stack unwind information not available. Following frames may be wrong." And it almost certainly is.

The problem with Dr.Watson dumps, is that they try to produce a stack trace by "decompiling" the stack using limited (or no) symbolic debugger information.

  1. Perl doesn't use a conventional stack for a lot of its internal operations.
  2. The code it is trying to reverse engineer has been optimised, which makes it close to impossible to do properly.
  3. The core of the perl run loop doesn't follow 'normal' executable coding patterns.

The net result is that the stack dumps produced are always confused and essentially useless. If you compile the Perl with optimisations disabled and full symbolic debug support enabled, you can sometimes follow it through, but even then not always.

It is usually far easier to to track down the source of such traps at the Perl source level than at the binary level. If you need tips on how to do that, then try posting a high level overview of the structure of your code.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^4: Perl58.dll & nt.dll crashes
by Anonymous Monk on Mar 10, 2010 at 16:13 UTC

      I looked. And I saw that you don't understand taint.

      I also saw that your js unconditionally adds your website to your visitors favorites. Which for me puts you right up there with spammers, scammers and other unsavory types, so you're on your own.

        I looked. And I saw that you don't understand taint.

        I understand taint, this is a cut down version of the program.

        I also saw that your js unconditionally adds your website to your visitors favorites. Which for me put you right up there with spammers, scammers and other unsavory types, so you're on your own.

        It isn't mine, its a heavily cut down version of the html that still triggers the bug. The original isn't unconditional, contains no spam, it is for adults only.