This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 2.4-2.5 x64: bash crashes on backticks, gdb crashes on opening core dump
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 20 Mar 2016 13:47:27 +0100
- Subject: Re: 2.4-2.5 x64: bash crashes on backticks, gdb crashes on opening core dump
- Authentication-results: sourceware.org; auth=none
- References: <56EE67C4 dot 1070900 at mail dot mipt dot ru>
On 20/03/2016 10:05, Ivan Pozdeev wrote:
bash
----
I'm being plagued by these crashes for about half a month now.
Specifically, it cannot run any `configure' script.
The crashes appear to happen in child bash/sh processes launched while
processing backticks. Other times, commands with stream redirection fail
silently or produce nothing. Simple commands or very short scripts do
not fail.
Any BLODA around ?
On trying to open `sh.exe.core', gdb 1.10 crashes, too; gdb 1.9 says
"get_core_register_section: Assertion `core_vec' failed" (see
attachment). So I'm unable to diagnose bash's problem right now.
At another machine with the same packages, bash does not fail, but gdb's
problem stands. Already tried reinstalling all the packages `bash'
depends on and itself to no effect.
gdb
---
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)
Are you sure about the 64 bit dumper ?
https://www.cygwin.com/cygwin-ug-net/dumper.html
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple