NetBSD Problem Report #42105
From www@NetBSD.org Mon Sep 21 08:28:15 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 6A7C663B8B4
for <gnats-bugs@gnats.netbsd.org>; Mon, 21 Sep 2009 08:28:15 +0000 (UTC)
Message-Id: <20090921082815.3A38363B877@www.NetBSD.org>
Date: Mon, 21 Sep 2009 08:28:15 +0000 (UTC)
From: las_skov@yahoo.dk
Reply-To: las_skov@yahoo.dk
To: gnats-bugs@NetBSD.org
Subject: PT_NOTE - section .note.netbsd.ident missing => crash
X-Send-Pr-Version: www-1.0
>Number: 42105
>Category: kern
>Synopsis: PT_NOTE - section .note.netbsd.ident missing => crash
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 21 08:30:01 +0000 2009
>Last-Modified: Mon Sep 21 09:15:02 +0000 2009
>Originator: Lasse Skov
>Release: NetBSD 5.0.1
>Organization:
None
>Environment:
sorry
>Description:
Elf binary without the note section crashes kern
>How-To-Repeat:
format ELF
public start
section '.text'
mov eax,1
push 0
push 0
int $80
===
fasm t.asm; ld -e t.o -o t
./t
>Fix:
goto next instead of goto error looks speciel in (elf_exec)
But crashed my system before testing (not related to problem)
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/42105: PT_NOTE - section .note.netbsd.ident missing => crash
Date: Mon, 21 Sep 2009 11:10:02 +0200
On Mon, Sep 21, 2009 at 08:30:01AM +0000, las_skov@yahoo.dk wrote:
> Elf binary without the note section crashes kern
You are creating a binary for some other OS ABI then, in your case
probably SVR4 - and that is executed with the coresponding emulation, which
seems to not properly handle error checking.
Can you get a backtrace from the kernel crash? If you have DDB enabled
(check sysctl ddb.onpanic) you can do "tr" at the db> prompt. This should
directly point to the real problem.
Martin
(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.