NetBSD Problem Report #36671

From jam@sou.nerv.org  Sat Jul 21 00:48:21 2007
Return-Path: <jam@sou.nerv.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 5029763B93E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 21 Jul 2007 00:48:21 +0000 (UTC)
Message-Id: <20070720234515.B3243364E5@sou.nerv.org>
Date: Sat, 21 Jul 2007 08:45:15 +0900 (JST)
From: jam@pobox.com
Reply-To: jam@pobox.com
To: gnats-bugs@NetBSD.org
Subject: DB cannot show symbol name if it runs on xen-3.1.0
X-Send-Pr-Version: 3.95

>Number:         36671
>Category:       port-xen
>Synopsis:       DB cannot show symbol name if it runs on xen-3.1.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-xen-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 21 00:50:00 +0000 2007
>Closed-Date:    Tue Aug 21 16:42:49 +0000 2007
>Last-Modified:  Tue Aug 21 16:42:49 +0000 2007
>Originator:     Jam
>Release:        NetBSD 4.99.24
>Organization:
N/A
>Environment:
System: NetBSD fs 4.99.24 NetBSD 4.99.24 (XEN3_DOM0) #0: Sat Jul 21 08:13:56 JST 2007 jam@fs:/mnt/raid/netbsd/20070719t1/src/sys/arch/i386/compile/XEN3_DOM0 i386
Architecture: i386
Machine: i386
>Description:
	Put a kernel to /stand/20070719t1/netbsd-XEN3_DOM0.
	Make a hard likt to it at /netbsd.
	Run NetBSD and stop it.  Type "trace" to get a trace log.

	With Xen-3.0.4, DB can show symbol name fine.

	With Xen-3.1.0, DB cannot show symbol name.
	It shows following.  (First "test crash" message
	is what I put in.  I cannot send break signal through
	serial console, so I added 'panic("test crash");' at the
	very beginning of kernel.)

panic: test crash
Stopped in pid 0.1 (system) at  0xc04bb6c4:     popl    %ebp
db> trace
?(c085ef35,c0a08a84,c0a08a78,c04393ac,d) at 0xc04bb6c4
?(c086559e,c08d0e60,2,c08c6070,c08416c6) at 0xc0439515
?(c125df80,c140d280,c0a08ae8,c0a08af4,c0a08ae8) at 0xc0662e78
?(c125df80,c08c5fb0,c0a08af4,c0a08ae8,c065dfd0) at 0xc042eea6
?(cae4ac74,c125df80,9,c125df80,0) at 0xc065f4d5
?(c065f470,c125df80,0,c125df80,c125df80) at 0xc0659835
?(c125df80,c0a08b78,c0a08b74,c043981c,d) at 0xc065f38b
?(0,c125df80,0,c042da2e,c0823aaf) at 0xc04f4486
?(0,c08c5080,0,0,0) at 0xc042eea6
?(0,c08c5080,0,0,c0a05c10) at 0xc042ef6c
?(c0823aaf,0,c0a08c28,c042f233,c094b4a4) at 0xc042f0f4
?(c094b4a4,2,0,0,c09778dc) at 0xc04ba4d6
?(c0913d00,1,c0a74088,c0a08c4c,c04cbe29) at 0xc042f233
?(c01001df,c01001e7,0,0,0) at 0xc03f7e2f
db>

>How-To-Repeat:
	Install xenkernel3, xentools3, xentools3-hvm.
	Install compiled recent netbsd kernel with XEN3_DOM0 config.
	I got this problem on netbsd-4.99.22 and 4.99.24.

	Run netbsd-XEN3_DOM0 on Xen-3.1.0.
	Send break signal to run DB.
	Type "trace" on DB.
>Fix:
	No idea.

>Release-Note:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-xen-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: port-xen/36671: DB cannot show symbol name if it runs on xen-3.1.0
Date: Wed, 8 Aug 2007 13:21:23 +0200

 On Sat, Jul 21, 2007 at 12:50:00AM +0000, jam@pobox.com wrote:
 > 	Put a kernel to /stand/20070719t1/netbsd-XEN3_DOM0.
 > 	Make a hard likt to it at /netbsd.
 > 	Run NetBSD and stop it.  Type "trace" to get a trace log.
 > 
 > 	With Xen-3.0.4, DB can show symbol name fine.
 > 
 > 	With Xen-3.1.0, DB cannot show symbol name.


 I guess this is an issue with xen 3.1.0 and not NetBSD; it looks like
 the support for loading the symbol table from NetBSD kernel binaries
 got lost. I noticed it too but didn't have the time to dig into
 the Xen sources yet.

 -- 
 Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
      NetBSD: 26 ans d'experience feront toujours la difference
 --

State-Changed-From-To: open->feedback
State-Changed-By: bouyer@netbsd.org
State-Changed-When: Fri, 17 Aug 2007 17:28:50 +0000
State-Changed-Why:
Hi,
if you get a xen.gz from the xenkernel3-3.1.0nb1 package you should have
the symbols again. Could you try ?
thanks


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36671 CVS commit: pkgsrc/sysutils/xenkernel3
Date: Fri, 17 Aug 2007 17:26:05 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	bouyer
 Date:		Fri Aug 17 17:26:05 UTC 2007

 Modified Files:
 	pkgsrc/sysutils/xenkernel3: Makefile PLIST distinfo
 Added Files:
 	pkgsrc/sysutils/xenkernel3/patches: patch-aa patch-ab patch-ac patch-ad
 	    patch-ba patch-bb patch-bc patch-bd

 Log Message:
 Switch from using the pre-build binaries to building our own Xen kernel.
 Apply a patch (patch-b*) to xen-3.1.0 to fix the ELF loader so that the
 symbol table is properly loaded for the NetBSD dom0 kernel. This is from
 the Xen repository, based on a patch inistally submitted by Christoph Egger
 to Xen (thanks !). Should fix PR port-xen/36671.
 While there also provide a debug Xen kernel, built with debug=1.
 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/sysutils/xenkernel3/Makefile
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/sysutils/xenkernel3/PLIST \
     pkgsrc/sysutils/xenkernel3/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/sysutils/xenkernel3/patches/patch-aa \
     pkgsrc/sysutils/xenkernel3/patches/patch-ab \
     pkgsrc/sysutils/xenkernel3/patches/patch-ac \
     pkgsrc/sysutils/xenkernel3/patches/patch-ad \
     pkgsrc/sysutils/xenkernel3/patches/patch-ba \
     pkgsrc/sysutils/xenkernel3/patches/patch-bb \
     pkgsrc/sysutils/xenkernel3/patches/patch-bc \
     pkgsrc/sysutils/xenkernel3/patches/patch-bd

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Kazushi (Jam) Marukawa <jam@pobox.com>
To: gnats-bugs@NetBSD.org, port-xen-maintainer@netbsd.org,
	netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, bouyer@netbsd.org
Cc: 
Subject: Re: port-xen/36671 (DB cannot show symbol name if it runs on xen-3.1.0)
Date: Wed, 22 Aug 2007 00:52:05 +0900

    On Aug 17, 17:28, bouyer@netbsd.org wrote:
    > Subject: Re: port-xen/36671 (DB cannot show symbol name if it runs on xen-3.1.0)
    > Synopsis: DB cannot show symbol name if it runs on xen-3.1.0
    > 
    > State-Changed-From-To: open->feedback
    > State-Changed-By: bouyer@netbsd.org
    > State-Changed-When: Fri, 17 Aug 2007 17:28:50 +0000
    > State-Changed-Why:
    > Hi,
    > if you get a xen.gz from the xenkernel3-3.1.0nb1 package you should have
    > the symbols again. Could you try ?
    > thanks

 Thanks.  It fixed this symbol table problem.

 -- Kazushi
 The day after tomorrow is the third day of the rest of your life.

State-Changed-From-To: feedback->closed
State-Changed-By: bouyer@netbsd.org
State-Changed-When: Tue, 21 Aug 2007 16:42:49 +0000
State-Changed-Why:
Submitter confirmed than xenkernel3-3.1.0nb1 fixes the symbol table issue.
Thanks for the PR !


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.