From: Tom Allebrandi <tom@yt...> - 2001-02-09 18:33:35
I'm not sure if I should post this on this list or over on the Perl Win32
Under Win32::GUI version 502 and ActiveState build 623, the following script
results in an access violation under NT 4 and an invalid page fault under
Win98. NT is only telling me a memory address where the problem is
occurring. Win98 claims that the invalid page fault is in Perl56.DLL.
use Win32::GUI; # ** 1 **
fork(); # ** 2 **
# The $' (or the $`) var has to be present in order to cause the crash, but
# since it's not defined, use the "if (0)" to avoid interpreting it
$'; # ** 3 **
If you take out any of the lines marked "# ** n **" the problem goes away!
At one point, I had a
as the last statement in the script. I got both of them (one from each
branch of the fork()) which suggests that the problem is occurring in the
rundown of Perl itself.
If I had to guess, something is not getting cloned properly during the
fork() and it's invalid when the GUI destructor(s) get invoked at