2.4-2.5 x64: bash crashes on backticks, gdb crashes on opening core dump
Tue Mar 22 09:53:00 GMT 2016
On 20/03/2016 09:05, Ivan Pozdeev wrote:
> I managed to debug the gdb session with VisualGDB (trial).
> It turns out, the root cause is that the /bin/sh executable is x64, but
> the core file `sh.exe.core' - of the same executable - has i386 format!
> (objdump: <...>sh.exe.core: file format elf32-i386)
> And gdb doesn't check that. Created ticket (incl. patch):
> Now I'm stumped. How can this be?! Does this mean `dumper' is faulty?
> If this was normal, gdb would likely be able to process the dumps.
> Writing this primarily to alert the community of these apparent critical
> Hints on where to look inside `dumper' would be more than welcome, too.
This is clearly a bug in dumper, which doesn't look like it's been
ported to x86_64. See 
Ideally gdb wouldn't crash when presented with such an invalid core dump.
The strangeness which is a cygwin core dump doesn't appear to be
documented anywhere but in the source code of dumper, but it is an elf
file containing the memory image of the dumper process, with elf notes
containing various Win32 API status structures.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin