NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/56268 CVS commit: src/external/gpl3/gdb/dist/gdb



The following reply was made to PR toolchain/56268; it has been noted by GNATS.

From: "Rin Okuyama" <rin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/56268 CVS commit: src/external/gpl3/gdb/dist/gdb
Date: Sun, 26 Jun 2022 08:28:07 +0000

 Module Name:	src
 Committed By:	rin
 Date:		Sun Jun 26 08:28:07 UTC 2022
 
 Modified Files:
 	src/external/gpl3/gdb/dist/gdb: solib-svr4.c
 
 Log Message:
 PR toolchain/56268
 
 For NetBSD/m68k, program header is erroneously readable from core dump,
 although a page containing it is missing. This spoils relocation for
 the main executable, and debugging with core dumps becomes impossible,
 as described in the PR.
 
 In order to avoid this failure, add consistency check for program header;
 for NetBSD, 1st entry of program header refers program header itself. If
 this is not the case, we should be reading random garbage from core dump.
 
 Yes, this is a kind of the hackest hack. But, unable to debug with core
 dump is critical. Therefore, I commit this workaround temporarily until
 the real cause is found and fixed.
 
 Note that this is not a recent regression for GDB nor kernel, as
 mentioned in the PR. These from netbsd-8 and -9 fail in the same way
 without this hack.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/gdb/dist/gdb/solib-svr4.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index