On Tue, Nov 4, 2014 at 1:14 PM, Gintautas Miliauskas
<[email protected]> wrote:
> I'm working on ghc trunk.
>
> You were indeed right, the compiler was probably optimizing out my code. The
> suggested crasher code works, and qtcreator gets invoked, although I did not
> manage to set up gdb yet.
>
> I think I have an idea of what's going wrong here. hvr@ was right in
> pointing out that we need to be careful with the PATH. It seems that the
> bundled gcc is picking up the system-wide DLLs, and bad things happen
> because of version incompatibilities. That does not explain why "rm" is
> crashing, but maybe that's fallout from cross-process damage. I will do some
> more testing. If this is indeed the cause, then hopefully debugging will not
> be needed anyway.

Great. I also got qtcreator invoked, but the age old issue of
callstack walking out of MSVC compiled code then hit me. We're using a
slightly old version of GDB due to a recently-introduced symbol
demangling bug, so I will check to see if the latest GDB (7.8.1)
improves the callstack walking.

It's useful to have this all written down too for the next person that
runs into the need to trap an occasional segfaults with MSYS2
programs!

A final note, you need to have the Qt Creator GDB Source Path mappings
setup in a previous run so they get applied at the right time when
your program crashes.

>
> On Tue, Nov 4, 2014 at 1:57 PM, David Macek <[email protected]> wrote:
>>
>> On 4. 11. 2014 1:30, Ray Donnelly wrote:
>> > Finally, can anyone else confirm the problem?
>>
>> I'm sorry if I missed it, but I can't find what source version you're
>> using, Gintautas. Release/trunk?
>>
>> --
>> David Macek
>> _______________________________________________
>> ghc-devs mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/ghc-devs
>
>
>
>
> --
> Gintautas Miliauskas
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to