jmeubank / tdm-gcc

TDM-GCC is a cleverly disguised GCC compiler for Windows!
https://jmeubank.github.io/tdm-gcc/
572 stars 49 forks source link

DLLs (SynthEdit modules) compiled with TDM GCC 9.2.0 crash in Windows10 x64 (i7) #32

Open ElenaXX opened 3 years ago

ElenaXX commented 3 years ago

Compiling a SynthEdit module (physically a .dll) with CodeBlocks and TDM GCC 9.2.0 generates a module which crashes under Windows 10 (i7). There are no compiler or linker errors.Strangely enough, no crash occur in Windows 7 (i7). I have a report of the same crash happening even on Windows 8 (AMD) and Windows 10 (i5). So it seems that the bug only affects Windows versions > 7 and only on 64 bits machines.

(crashlog.zip)

The very same CodeBlocks project compiled instead with MSYS2 or with Winlibs or any other MinGW distro works without problem.

The very same CodeBlocks project compiled instead with x86 target and tested with the 32 bits version of SynthEdit works fine (no crashes).

I spent two days trying to understand the problem in the hope it was me doing something wrong but to no avail, it definitely seems a bug. Please consider that I am not expert with unix/low level stuff so I am unable to perform more accurate tests or debugging. However I have prepared a bug report archive containing all the information and material needed to replicate the issue. Please also read the included .readme for instructions.

(bug_report.zip)

I thank you in advance if you will investigate and for your support. It is a pity because of all the distros I found TDM was the only one allowing to target both x86 and x64 with a single toolchain.

BugReport.zip crashlog.zip