Trying to understand what is that valgrind doesn't like?
==22938== Invalid write of size 1 ==22938== at 0x4024D55: memcpy (mc_replace_strmem.c:402) ==22938== by 0x7BC64405: setup_exception_record (signal_i386.c:795) ==22938== by 0x7BC65793: segv_handler (signal_i386.c:1310) ==22938== by 0x419160F: (within /lib/libpthread-2.6.1.so) ==22938== Address 0x7f22c7de is not stack'd, malloc'd or (recently) free'd
http://source.winehq.org/source/dlls/ntdll/signal_i386.c#L756 http://source.winehq.org/source/dlls/ntdll/signal_i386.c#L1093 http://source.winehq.org/source/dlls/ntdll/signal_i386.c#L1310
Everything seems to be correct. Any ideas?
Vitaliy.