NetBSD Problem Report #54524

From martin@aprisoft.de  Wed Sep  4 08:55:29 2019
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F12207A10E
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  4 Sep 2019 08:55:28 +0000 (UTC)
Message-Id: <20190904085519.B8E0A5CC853@emmas.aprisoft.de>
Date: Wed,  4 Sep 2019 10:55:19 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb is not working with 32 bit userland on mips64
X-Send-Pr-Version: 3.95

>Number:         54524
>Category:       toolchain
>Synopsis:       gdb is not working with 32 bit userland on mips64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 09:00:00 +0000 2019
>Closed-Date:    Tue Jan 05 09:54:55 +0000 2021
>Last-Modified:  Tue Jan 05 09:54:55 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.10
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD supremacy.duskware.de 9.99.10 NetBSD 9.99.10 (ERLITE) #22: Wed Sep 4 10:25:06 CEST 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbmips/compile/ERLITE evbmips
Architecture: mips64eb
Machine: evbmips
>Description:

Something is completely not working with (32 bit) gdb on mips64-eb
(symptoms remind of the aux vector lossage on sparc64).

>How-To-Repeat:

On an ERLITE with default installation + debug sets:

 > gdb ls
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "mips64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ls...
Reading symbols from /usr/libdata/debug//bin/ls.debug...
(gdb) break main
Breakpoint 1 at 0x5120: file /work/src/bin/ls/main.c, line 46.
(gdb) run
Starting program: /bin/ls 

Suspended (tty output)
 > fg
gdb ls
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x5120

Command aborted.


>Fix:
n/a

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 05 Jan 2021 09:54:55 +0000
State-Changed-Why:
The ptrace problem has been fixed and this symptom is gone,
it still does not work - see PR 55908 for gdb or aux vector
fallout


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.