So... after unsuccessfully trying to compile gdb with msys I found a compiled version, run the C::B, successfully crashed it, attached it to gdb and used "thread apply all bt", here's the gdb output:
Attaching to process 5024
[New Thread 5024.0x3bc]
[New Thread 5024.0x1114]
[New Thread 5024.0x1084]
[New Thread 5024.0x1280]
[New Thread 5024.0x11b0]
[New Thread 5024.0x116c]
[New Thread 5024.0x1148]
[New Thread 5024.0x1150]
[New Thread 5024.0x1030]
[New Thread 5024.0xdc8]
[New Thread 5024.0x150c]
[New Thread 5024.0x1510]
[New Thread 5024.0x156c]
[New Thread 5024.0x15a8]
[New Thread 5024.0x15b4]
[New Thread 5024.0x15d0]
[New Thread 5024.0x15dc]
[New Thread 5024.0x1664]
Reading symbols from C:\Programy\CodeBlocks RC\codeblocks.exe...(no debugging symbols found)...done.
0x779e000d in ntdll!DbgBreakPoint () from C:\Windows\SysWOW64\ntdll.dll
(gdb) thread apply all bt
Thread 18 (Thread 5024.0x1664):
#0 0x779e000d in ntdll!DbgBreakPoint () from C:\Windows\SysWOW64\ntdll.dll
#1 0x77a6eede in ntdll!DbgUiRemoteBreakin () from C:\Windows\SysWOW64\ntdll.dll
#2 0x7afab70a in ?? ()
#3 0x00000000 in ?? ()
Thread 17 (Thread 5024.0x15dc):
#0 0x7579723b in USER32!GetPropW () from C:\Windows\syswow64\user32.dll
#1 0x7579cd81 in USER32!SendMessageW () from C:\Windows\syswow64\user32.dll
#2 0x6ccdb9b1 in wxExecuteThread(void*)@4 () from C:\Programy\CodeBlocks RC\wxmsw28u_gcc_cb.dll
#3 0x00002b10 in ?? ()
#4 0x00000000 in ?? ()
Thread 16 (Thread 5024.0x15d0):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x0000052c in ?? ()
#4 0x00000000 in ?? ()
Thread 15 (Thread 5024.0x15b4):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x0000051c in ?? ()
#4 0x00000000 in ?? ()
Thread 14 (Thread 5024.0x15a8):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x00000554 in ?? ()
#4 0x00000000 in ?? ()
Thread 13 (Thread 5024.0x156c):
#0 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#2 0x77a15d56 in ntdll!TpSetTimer () from C:\Windows\SysWOW64\ntdll.dll
#3 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#4 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#5 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#6 0x00000000 in ?? ()
Thread 12 (Thread 5024.0x1510):
---Type <return> to continue, or q <return> to quit---
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x0000048c in ?? ()
#4 0x00000000 in ?? ()
Thread 11 (Thread 5024.0x150c):
#0 0x779f013d in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779f013d in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SysWOW64\ntdll.dll
#2 0x76561605 in WaitForMultipleObjectsEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x00000002 in ?? ()
#4 0x0accfd34 in ?? ()
#5 0x77341a3c in WaitForMultipleObjectsEx () from C:\Windows\syswow64\kernel32.dll
#6 0x630e6402 in ?? () from C:\Programy\CodeBlocks RC\share\codeblocks\plugins\FileManager.dll
#7 0x6ccd8aec in wxThreadInternal::DoThreadStart(wxThread*) () from C:\Programy\CodeBlocks RC\wxmsw28u_gcc_cb.dll
#8 0x6ccd8be5 in wxThreadInternal::WinThreadStart(void*)@4 () from C:\Programy\CodeBlocks RC\wxmsw28u_gcc_cb.dll
#9 0x058c1ec0 in ?? ()
#10 0x761a1328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#11 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#12 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#13 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#14 0x00000000 in ?? ()
Thread 10 (Thread 5024.0xdc8):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x00000200 in ?? ()
#4 0x00000000 in ?? ()
Thread 9 (Thread 5024.0x1030):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x00000294 in ?? ()
#4 0x00000000 in ?? ()
Thread 8 (Thread 5024.0x1150):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x000001e0 in ?? ()
#4 0x00000000 in ?? ()
Thread 7 (Thread 5024.0x1148):
---Type <return> to continue, or q <return> to quit---
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x000001d8 in ?? ()
#4 0x00000000 in ?? ()
Thread 6 (Thread 5024.0x116c):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x000001d0 in ?? ()
#4 0x00000000 in ?? ()
Thread 5 (Thread 5024.0x11b0):
#0 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779ef8b1 in ntdll!ZwWaitForSingleObject () from C:\Windows\SysWOW64\ntdll.dll
#2 0x765614b9 in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll
#3 0x000001a4 in ?? ()
#4 0x00000001 in ?? ()
#5 0x038bff18 in ?? ()
#6 0x77341194 in WaitForSingleObjectEx () from C:\Windows\syswow64\kernel32.dll
#7 0x75b9cd63 in ole32!CoGetTreatAsClass () from C:\Windows\syswow64\ole32.dll
#8 0x75b9d86a in ole32!CoGetTreatAsClass () from C:\Windows\syswow64\ole32.dll
#9 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#10 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#11 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#12 0x00000000 in ?? ()
Thread 4 (Thread 5024.0x1280):
#0 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#2 0x77a15d56 in ntdll!TpSetTimer () from C:\Windows\SysWOW64\ntdll.dll
#3 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#4 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#5 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#6 0x00000000 in ?? ()
Thread 3 (Thread 5024.0x1084):
#0 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779f1f26 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SysWOW64\ntdll.dll
#2 0x77a15d56 in ntdll!TpSetTimer () from C:\Windows\SysWOW64\ntdll.dll
#3 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#4 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#5 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#6 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 5024.0x1114):
#0 0x779f013d in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SysWOW64\ntdll.dll
#1 0x779f013d in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SysWOW64\ntdll.dll
#2 0x77a15965 in ntdll!RtlDosPathNameToNtPathName_U () from C:\Windows\SysWOW64\ntdll.dll
#3 0x773433aa in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#4 0x77a08fc2 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#5 0x77a08f95 in ntdll!RtlInitializeExceptionChain () from C:\Windows\SysWOW64\ntdll.dll
#6 0x00000000 in ?? ()
Thread 1 (Thread 5024.0x3bc):
#0 0x779f2262 in ntdll!RtlLeaveCriticalSection () from C:\Windows\SysWOW64\ntdll.dll
#1 0x6d14023a in pthread_spin_unlock () from C:\Programy\CodeBlocks RC\wxmsw28u_gcc_cb.dll
#2 0x00712da8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)