This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

2.4-2.5 x64: bash crashes on backticks, gdb crashes on opening core dump

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.

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.

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.

further action
Since the crash dump is unusable, I'm now going the only way available, checking `dumper''s workings (this needs to be done anyway)

Writing this primarily to alert the community of these apparent critical bugs.
Hints on where to look inside `dumper' would be more than welcome, too.

Ivan Pozdeev

Attachment: gdb.out
Description: Text document

Attachment: cygcheck.out.gz
Description: application/gzip

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]