Article View: fa.netbsd.ports.alpha
Article #8Re: userland problem
From: Dmitry Kalinkin
Date: Sun, 02 Dec 2012 15:02
Date: Sun, 02 Dec 2012 15:02
3 lines
3546 bytes
3546 bytes
I found the problem using /rescue/ldd. It was that cc, for instance, was missing libintl.so.1. I just recompiled whole system, that helped. Now system works wonderfully (except for the system ignoring fstab and only mounting ro root). I also would like to use kgdb, but I have some difficulties here too. The problem is that gdb tries to set soft-breakpoint on main() of the kernel elf before doing any meaningfull operation (like continue or step). And the stub reports reading error for that operation. And I have determined that this happens because the address is not vmapped, it is in K0SEG. kgdb_acc function from alpha's kgdb_matchdep.c explicitly filters accessible addresses to be in K1SEG. Removing this check leads to a memory access trap. It seems like writing to K0SEG requires some more privileged mode. On the other end cross-gdb (on client side) is stubborn and doesn't want to work without making sw-breakpoints here and there. Any advice?
Technical Details
Message-ID:
<fa.gHTEjXceQewO+hWASsvMHuch77c@ifi.uio.no>Path:
arc1-ca.pugleaf.net!ha8ni114712wib.1!nntp.google.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailReferences:
<fa.eqn4vZrF7njwCvZsTBYFcBni7G8@ifi.uio.no> <fa.ybPqX4aoxF4jCvZFC96VY4wtDrQ@ifi.uio.no> <fa.0/wjsBH7xGhKMqu39kmkin4xaf0@ifi.uio.no> <fa.7s6i3KL6PhN0mOwmNaNpnz8/5g4@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: 10fc82,370eedcabc85ded2
X-Google-NewGroupId: yes
X-Google-Attributes: gid188a2276fd,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.180.74.79 with SMTP id r15mr731236wiv.4.1354460539075;
Sun, 02 Dec 2012 07:02:19 -0800 (PST)
Path: arc1-ca.pugleaf.net!ha8ni114712wib.1!nntp.google.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Dmitry Kalinkin <veprbl@gmail.com>
Newsgroups: fa.netbsd.ports.alpha
Subject: Re: userland problem
Date: Sun, 02 Dec 2012 15:02:18 UTC
Organization: Internet mailing list
Lines: 3
Sender: port-alpha-owner@NetBSD.org
Message-ID: <fa.gHTEjXceQewO+hWASsvMHuch77c@ifi.uio.no>
References: <fa.eqn4vZrF7njwCvZsTBYFcBni7G8@ifi.uio.no> <fa.ybPqX4aoxF4jCvZFC96VY4wtDrQ@ifi.uio.no> <fa.0/wjsBH7xGhKMqu39kmkin4xaf0@ifi.uio.no> <fa.7s6i3KL6PhN0mOwmNaNpnz8/5g4@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1354460538 22564 129.240.7.9 (2 Dec 2012 15:02:18 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Sun, 2 Dec 2012 15:02:18 +0000 (UTC)
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: port-alpha@NetBSD.org
To: Martin Husemann <martin@duskware.de>
Delivered-To: port-alpha@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
Authentication-Results: mail.NetBSD.org (amavisd-new);
dkim=pass (2048-bit key) header.d=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=date:from:to:cc:subject:message-id:references:mime-version
:content-type:content-disposition:in-reply-to:user-agent;
bh=U/bWBabe3pqttE0SpzgwmgqsBf2VFXET6BzCdSfv4Nc=;
b=RTzCG2sjoapYxA1ZH2rQp9yOWU/XA87Z5O6A7BH2E5gtD3V/YmCQPbjhS6k8RthWFk
/7diuIZ/8nYlo8UhWTprcM3fPlOPnL5Lmbi4JDGY11RhQwk66rNhDFkmySJYuc+iFBKL
dFD9xCbrqIAWVpdQxFVx1TOl6/BCaNeZO+tWKf7HGE5k5y2P1mhVHljZ6ZPl2rQTZsLz
YPQEdGZ+yzY62N4612jQHJDDk6ETmahvk9wMd+Op8p+PY1zPinmTIfTi15fTKys6x1/E
58gLMp76xAKsVxPRuI8xvTy0G9aXBsVSa3kCCkL7hfgb9vDIMBzscXjbbM0M+5h+0TIV
PBYw==
In-Reply-To: <20121202130256.GD18836@mail.duskware.de>
List-Id: port-alpha.NetBSD.org
Original-Date: Sun, 2 Dec 2012 19:02:00 +0400
Original-Message-Id: <20121202150200.GA19780@dmnb>
Original-References: <CACahFbyAicgEdgYSm9Kjv8q2WP+9PuaUhaCvR7gVmTvMjWc3zQ@mail.gmail.com>
<20121202104635.GA18836@mail.duskware.de>
<DAA8F731-5C31-48E2-A1EB-E91D19916732@3am-software.com>
<20121202130256.GD18836@mail.duskware.de>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline