What's wrong with my compiled application? (node.exe)-Collection of common programming errors

I’ve cross-compiled node (v0.4 branch) on my Ubuntu system using mingw32, but copying it on to my Windows system the program doesn’t work and crashes.

The odd thing is that node.exe -v and node.exe --help work, it’s just when it’s been running for a while that it crashes.

I’ve uploaded the binary I compiled to https://gist.github.com/raw/1062521/node.exe

It also needs https://gist.github.com/raw/1062521/pthreadGC2.dll in the same directory or in your path.

EDIT: I’ve also compiled it with debug enabled, but gdb still only gets:

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000000 in ?? ()