[MLton-user] Re: MLton signal handling broken on Windows (was: CML and foreign code)

Ivan Tomac ivan.tomac at gmail.com
Tue Oct 4 21:10:18 PDT 2011


Hi Wesley,

On Wed, Oct 5, 2011 at 4:29 AM, Wesley W. Terpstra <wesley at terpstra.ca> wrote:
> I can't reproduce this with MLton 20100608 on Windows 7 x64.
> Unfortunately, I do not have XP anymore.
>
> However, I wrote that threading code under windows XP x86, so I expect
> it would work there as well...
>
> Perhaps you are running some sort of virus scanner or rootkit or some
> other application which loads DLLs into other processes? Or bad
> memory? Do you have an unusual version of Windows that I might never
> have used MLton on?
>

I can confirm that I can't get the problem to happen on a computer
running Windows 7 32-bit.

I have tried the code on 2 machines running Windows Vista 32 SP2 and
Windows Vista 64 SP2 and I get crashes on both. So I think it has
something to do with Vista, or at the very least Vista SP2. Removing
SetThreadPriority seems to make the problem disappear but I'm worried
there may be a more serious problem there - maybe the problem doesn't
actually disappear but becomes less frequent?
I am not sure if any processes could be interfering. As for virus
scanners, I am running Microsoft Security Essentials anti-virus on all
my Windows boxes.
I don't think it's bad memory as I can replicate the problem on 2
different computers and I haven't noticed any problems running
processor and memory intensive applications on them.

This is the MLton version string: MLton 20100608 (built Fri Jun 11
12:02:32 GMT 2010 on APPLE)

These are the crash reports I get, not that they say much.

32-bit app crash:

Problem signature:
 Problem Event Name:   APPCRASH
 Application Name:     test.exe
 Application Version:  0.0.0.0
 Application Timestamp:        4e8bcd66
 Fault Module Name:    ntdll.dll
 Fault Module Version: 6.0.6002.18327
 Fault Module Timestamp:       4cb7341c
 Exception Code:       c000071b
 Exception Offset:     0006aaa4
 OS Version:   6.0.6002.2.2.0.768.3
 Locale ID:    3081
 Additional Information 1:     40d4
 Additional Information 2:     4062ad41ec8067256aa4c5e2b56d3c79
 Additional Information 3:     40d4
 Additional Information 4:     4062ad41ec8067256aa4c5e2b56d3c79

64-bit app crash (compiled with -target x86_64-w64-mingw32):

Problem signature:
 Problem Event Name:   APPCRASH
 Application Name:     test64.exe
 Application Version:  0.0.0.0
 Application Timestamp:        4e8bcfcf
 Fault Module Name:    ntdll.dll
 Fault Module Version: 6.0.6002.18327
 Fault Module Timestamp:       4cb74dd3
 Exception Code:       c000071b
 Exception Offset:     0000000000082125
 OS Version:   6.0.6002.2.2.0.768.3
 Locale ID:    3081
 Additional Information 1:     8975
 Additional Information 2:     803d51a048d13ed597ff94fe6ba3464e
 Additional Information 3:     8975
 Additional Information 4:     803d51a048d13ed597ff94fe6ba3464e



More information about the MLton-user mailing list