Try turning your doFork() function into a standalone C program that has little sanity checks throughout. Find the first little sanity check that fails, and submit a bug report with it attached at http://bugs.winehq.org Ideally you'd also write a wine test case (see http://www.winehq.org/docs/winedev-guide/testing ) for it, but a simplified test program attached to a bug report is a good start.