NetBSD Problem Report #44631

From www@NetBSD.org  Thu Feb 24 17:25:00 2011
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 9807663B889
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 24 Feb 2011 17:25:00 +0000 (UTC)
Message-Id: <20110224172500.0A4F063B880@www.NetBSD.org>
Date: Thu, 24 Feb 2011 17:25:00 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: hfs code has alignment issues
X-Send-Pr-Version: www-1.0

>Number:         44631
>Category:       kern
>Synopsis:       hfs code has alignment issues
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 24 17:25:00 +0000 2011
>Closed-Date:    Fri Feb 25 20:53:42 +0000 2011
>Last-Modified:  Fri Feb 25 20:53:42 +0000 2011
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
sys/fs/hfs does not respect pointer alignment rules.
>How-To-Repeat:
run tests/fs/hfs on sparc64
(or another 64bit alignment-critical architecture)
>Fix:

>Release-Note:

>Audit-Trail:
From: "Antti Kantee" <pooka@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44631 CVS commit: src/tests/fs/hfs
Date: Thu, 24 Feb 2011 17:26:46 +0000

 Module Name:	src
 Committed By:	pooka
 Date:		Thu Feb 24 17:26:46 UTC 2011

 Modified Files:
 	src/tests/fs/hfs: t_pathconvert.c

 Log Message:
 xfail PR kern/44631 on sparc64


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/tests/fs/hfs/t_pathconvert.c

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

From: Antti Kantee <pooka@iki.fi>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/44631 CVS commit: src/tests/fs/hfs
Date: Fri, 25 Feb 2011 00:35:47 +0200

 Oh, here's the stacktrace in case someone without access to the
 right hardware wants to attempt a fix:

 Program terminated with signal 10, Bus error.
 #0  0x000000004050cfb0 in rumpns_be32tohp () from /usr/lib/librumpfs_hfs.so.0
 (gdb) bt
 #0  0x000000004050cfb0 in rumpns_be32tohp () from /usr/lib/librumpfs_hfs.so.0
 #1  0x0000000040509058 in rumpns_hfslib_read_header_node ()
    from /usr/lib/librumpfs_hfs.so.0
 #2  0x000000004050b054 in rumpns_hfslib_open_volume ()
    from /usr/lib/librumpfs_hfs.so.0
 #3  0x000000004050cd14 in rumpns_hfs_mountfs ()
    from /usr/lib/librumpfs_hfs.so.0
 #4  0x000000004050cedc in rumpns_hfs_mount () from /usr/lib/librumpfs_hfs.so.0
 #5  0x0000000040b328e8 in rumpns_VFS_MOUNT () from /usr/lib/librumpvfs.so.0
 #6  0x0000000040b3180c in rumpns_do_sys_mount () from /usr/lib/librumpvfs.so.0
 #7  0x0000000040b31b70 in rumpns_sys___mount50 () from /usr/lib/librumpvfs.so.0
 #8  0x0000000040d8cbfc in rumpns_sys_unmount () from /usr/lib/librump.so.0
 #9  0x0000000040d8cbfc in rumpns_sys_unmount () from /usr/lib/librump.so.0

 (gdb) x/i $pc
 0x4050cfb0 <rumpns_be32tohp+16>:        ld  [ %g1 ], %g1

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 25 Feb 2011 20:53:42 +0000
State-Changed-Why:
At least the testcase works now


>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.