Re: [Mingw-w64-public] Winpthreads library issue with dwarf toolchain

2013-12-05 Thread Fanael Linithien
I came up with a patch that fixes the issue for me. The patch replaces the global critical section with a spinlock. Critical sections require explicit initialization before use, which in this case is not possible: register_frame_ctor (from libgcc), which runs BEFORE enter_global_cs, tries to lock

Re: [Mingw-w64-public] Winpthreads library issue with dwarf toolchain

2013-12-06 Thread Fanael Linithien
2013/12/5 Fanael Linithien : > runs BEFORE enter_global_cs Er, before global_spin_ctor, of course. 2013/12/5 Kai Tietz : > Nice catch. This describes at least the runtime-failure we got reported. > Did you tested regressions for this patch? I have. All tests from tests_pthread pass.

Re: [Mingw-w64-public] Winpthreads library issue with dwarf toolchain

2013-12-08 Thread Fanael Linithien
Ping? -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk