Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Luis Machado <luis.machado@linaro.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v5 00/14] Fix BZ 25631 - core file memory access problem
Date: Thu, 23 Jul 2020 14:44:53 -0700	[thread overview]
Message-ID: <20200723144453.4b40d880@f32-m1.lan> (raw)
In-Reply-To: <ee28384a-0339-1962-f044-f693e9539a43@linaro.org>

On Thu, 23 Jul 2020 07:37:42 -0300
Luis Machado <luis.machado@linaro.org> wrote:

> On 7/23/20 12:49 AM, Kevin Buettner wrote:
> > On Wed, 22 Jul 2020 19:40:18 -0300
> > Luis Machado <luis.machado@linaro.org> wrote:
> >   
> >> I'm seeing the following regressions on AArch64 Linux running Ubuntu
> >> 18.04 (GCC 7).
> >>
> >> FAIL: gdb.base/corefile.exp: backtrace in corefile.exp
> >> FAIL: gdb.base/corefile.exp: core-file warning-free
> >> FAIL: gdb.base/corefile.exp: print func2::coremaker_local
> >> FAIL: gdb.base/corefile.exp: up in corefile.exp
> >> FAIL: gdb.base/corefile.exp: up in corefile.exp (reinit)
> >>
> >> On a quick look, the test doesn't go according to what is expected.
> >>
> >> --
> >>
> >> (gdb) PASS: gdb.base/corefile.exp: print coremaker_ro
> >> print func2::coremaker_local^M
> >> No frame is currently executing in block func2.^M
> >> (gdb) FAIL: gdb.base/corefile.exp: print func2::coremaker_local
> >> ...
> >> (gdb) PASS: gdb.base/corefile.exp: $_exitcode is void
> >> bt^M
> >> #0  0x0000ffff80d1c4d8 in raise () from /lib/aarch64-linux-gnu/libc.so.6^M
> >> Backtrace stopped: previous frame identical to this frame (corrupt stack?)^M
> >> (gdb) FAIL: gdb.base/corefile.exp: backtrace in corefile.exp
> >> up^M
> >> Initial frame selected; you cannot go up.^M
> >> (gdb) FAIL: gdb.base/corefile.exp: up in corefile.exp
> >> ...
> >> (gdb) file gdb/testsuite/outputs/gdb.base/corefile/corefile^M
> >> Load new symbol table from
> >> "gdb/testsuite/outputs/gdb.base/corefile/corefile"? (y or n) y^M
> >> Reading symbols from gdb/testsuite/outputs/gdb.base/corefile/corefile...^M
> >> (gdb) up^M
> >> Initial frame selected; you cannot go up.^M
> >> (gdb) FAIL: gdb.base/corefile.exp: up in corefile.exp (reinit)  
> > 
> > Hi Luis,
> > 
> > I'm not seeing these failures on my Raspberry Pi 4 running aarch64
> > rawhide.  I have a spare Pi upon which I'll install Ubuntu 18.04.4.
> > 
> > In the interim, would it be possible for you to show me the same
> > sections of the log file from a test run using a GDB build prior to my
> > core file patches?  
> 
> I've attached the complete log files for both runs. Hopefully that will 
> be more useful.
> 
> Please let me know if you need anything else and I can fetch it.

Thanks for sending the log files.  One of the things I found puzzling
were these messages in after.log:

(gdb) core-file /home/user/work/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.base/corefile/corefile.core
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing
warning: Can't open file (null) during file-backed mapping note processing

Something is going terribly wrong!

I've installed Ubuntu 18.04.4 on a Raspberry Pi 3 B+.

So far, I haven't been able to reproduce the failures that you're seeing.

kev@ubuntu:/ironwood1/sourceware-git/u18.04-rpi3-master/bld/gdb$ cat /etc/issue
Ubuntu 18.04.4 LTS \n \l

kev@ubuntu:/ironwood1/sourceware-git/u18.04-rpi3-master/bld/gdb$ uname -a
Linux ubuntu 5.3.0-1028-raspi2 #30~18.04.2-Ubuntu SMP Fri Jun 19
05:12:46 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

kev@ubuntu:/ironwood1/sourceware-git/u18.04-rpi3-master/bld/gdb$ make
check TESTS="gdb.base/corefile.exp"
...
		=== gdb Summary ===

# of expected passes		30

I'd like to see the following...

1) The output of "uname -a".

2) The output of "cat /etc/issue".

3) The output of "cat /proc/self/coredump_filter".  (Is there a better
way to know what the global filter is?)

4) The before / after contents of testsuite/outputs/gdb.base/corefile .

Thanks,

Kevin



      reply	other threads:[~2020-07-23 21:44 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  0:58 Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 01/14] Remove hack for GDB which sets the section size to 0 Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 02/14] Adjust corefile.exp test to show regression after bfd hack removal Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 03/14] section_table_xfer_memory: Replace section name with callback predicate Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 04/14] Provide access to non SEC_HAS_CONTENTS core file sections Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 05/14] Test ability to access unwritten-to mmap data in core file Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 06/14] Update binary_get_section_contents to seek using section's file position Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 07/14] Add new gdbarch method, read_core_file_mappings Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 08/14] Use NT_FILE note section for reading core target memory Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 09/14] Add test for accessing read-only mmapped data in a core file Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 10/14] gcore command: Place all file-backed mappings in NT_FILE note Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 11/14] Adjust coredump-filter.exp to account for NT_FILE note handling Kevin Buettner
2020-07-22 18:56   ` Pedro Alves
2020-07-22  0:58 ` [PATCH v5 12/14] Add new command "maint print core-file-backed-mappings" Kevin Buettner
2020-07-23 13:08   ` Tom de Vries
2020-07-23 20:47     ` Kevin Buettner
2020-07-22  0:58 ` [PATCH v5 13/14] Add documentation for " Kevin Buettner
2020-07-22  2:27   ` Eli Zaretskii
2020-07-22  0:58 ` [PATCH v5 14/14] New core file tests with mappings over existing program memory Kevin Buettner
2020-07-22 18:58 ` [PATCH v5 00/14] Fix BZ 25631 - core file memory access problem Pedro Alves
2020-07-22 20:14   ` Kevin Buettner
2020-07-22 22:40 ` Luis Machado
2020-07-23  3:49   ` Kevin Buettner
2020-07-23 10:37     ` Luis Machado
2020-07-23 21:44       ` Kevin Buettner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200723144453.4b40d880@f32-m1.lan \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox