NetBSD Problem Report #53056
From www@NetBSD.org Sun Feb 25 18:16:55 2018
Return-Path: <www@NetBSD.org>
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 D52EF7A1FE
for <gnats-bugs@gnats.NetBSD.org>; Sun, 25 Feb 2018 18:16:55 +0000 (UTC)
Message-Id: <20180225181654.CE90D7A262@mollari.NetBSD.org>
Date: Sun, 25 Feb 2018 18:16:54 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: ddb broken in -current
X-Send-Pr-Version: www-1.0
>Number: 53056
>Category: port-xen
>Synopsis: ddb broken in -current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jdolecek
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 25 18:20:00 +0000 2018
>Closed-Date: Sun Jun 24 17:17:45 +0000 2018
>Last-Modified: Sun Jun 24 17:20:00 +0000 2018
>Originator: coypu
>Release: NetBSD 8.99.12
>Organization:
>Environment:
NetBSD 8.99.12 (XEN3_DOM0) #0: Sun Feb 25 18:32:06 IST 2018 fly@planets:/home/fly/obj-gcc5/sys/arch/amd64/compile/XEN3_DOM0
>Description:
d> ps
gives:
db_read_ptr: cannot find 'allproc'
bt shows ?() at ffffff....
switching back to gcc-5 didn't help
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-xen-maintainer->jdolecek
Responsible-Changed-By: jdolecek@NetBSD.org
Responsible-Changed-When: Sun, 24 Jun 2018 17:17:45 +0000
Responsible-Changed-Why:
I've worked on this.
State-Changed-From-To: open->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sun, 24 Jun 2018 17:17:45 +0000
State-Changed-Why:
Fix the problem. It was introduced by amd64/locore.S rev 1.141,
kern.ldscript.Xen was not updated with fix. Confirmed netbsd-8 branch
is correct - it's locore.S still has the symbol which forces the align.
Thus no need for pullup.
From: "Jaromir Dolecek" <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53056 CVS commit: src/sys/arch/amd64/conf
Date: Sun, 24 Jun 2018 17:11:58 +0000
Module Name: src
Committed By: jdolecek
Date: Sun Jun 24 17:11:57 UTC 2018
Modified Files:
src/sys/arch/amd64/conf: kern.ldscript.Xen
Log Message:
follow change in rev. 1.22 of kern.ldscript and apply same fix for xen
ldscript too, but using just regular PAGE_ALIGN alignment:
"""
Fix a pretty dumb mistake I made in r1.22: the alignment needs to be in the
bss, otherwise the bootloader will use memory before __kernel_end and give
a wrong start pa to the kernel.
"""
this got broke by amd64/locore.S rev. 1.141 which removed an unused variable
which forced the alignment
this fixes ps/bt in ddb to be able to find symbols and hence PR port-xen/53056
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/amd64/conf/kern.ldscript.Xen
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.