NetBSD Problem Report #52138
From www@NetBSD.org Mon Apr 3 23:03:37 2017
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 "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 81DBC7A0F8
for <gnats-bugs@gnats.NetBSD.org>; Mon, 3 Apr 2017 23:03:37 +0000 (UTC)
Message-Id: <20170403230336.14EC07A2AE@mollari.NetBSD.org>
Date: Mon, 3 Apr 2017 23:03:36 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Change for the benefit of DTrace on MP ARM breaks it on UP ARM
X-Send-Pr-Version: www-1.0
>Number: 52138
>Category: port-hpcarm
>Synopsis: Change for the benefit of DTrace on MP ARM breaks it on UP ARM
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: skrll
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 03 23:05:00 +0000 2017
>Closed-Date: Tue Apr 04 11:51:01 +0000 2017
>Last-Modified: Tue Apr 04 11:51:01 +0000 2017
>Originator: Sevan Janiyan
>Release: 7.99.67
>Organization:
>Environment:
NetBSD 7.99.67 hpcarm
>Description:
Changes in r1.92 of src/sys/arch/arm/include/cpu.h break DTrace on NetBSD/hpcarm.
When the system boot, with the modules set in /etc/modules.conf, the system reports:
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
WARNING: module error: recursive load failed for `dtrace_sdt' (`dtrace' required), error 8
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
WARNING: module error: recursive load failed for `dtrace_fbt' (`dtrace' required), error 8
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
WARNING: module error: recursive load failed for `dtrace_lockstat' (`dtrace' required), error 8
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
WARNING: module error: recursive load failed for `dtrace_profile' (`dtrace' required), error 8
kobj_checksyms, 979: [dtrace]: linker error: symbol `cpu_info' not found
WARNING: module error: unable to affix module `dtrace', error 8
WARNING: module error: recursive load failed for `dtrace_syscall' (`dtrace' required), error 8
Reverting this change, allows all but the lockstat module to load.
With this change reverted, Lockstat module now reports that lockstat_dtrace_enabled, lockstat_dev_enabled, lockstat_probe_stub, lockstat_probe_func, lockstat_probemap, lockstat_enabled symbols not found.
>How-To-Repeat:
Try a daily from today for hpcarm on a hpcarm 710/720/728.
set the following in /etc/modules.conf & reboot
solaris
dtrace
dtrace_sdt
dtrace_fbt
dtrace_lockstat
dtrace_profile
dtrace_syscall
>Fix:
reverting r1.92 of src/sys/arch/arm/include/cpu.h resolves the issue.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-hpcarm-maintainer->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Tue, 04 Apr 2017 06:20:30 +0000
Responsible-Changed-Why:
Take
From: "Sevan Janiyan" <sevan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52138 CVS commit: src/sys/arch/arm/arm
Date: Tue, 4 Apr 2017 11:46:13 +0000
Module Name: src
Committed By: sevan
Date: Tue Apr 4 11:46:13 UTC 2017
Modified Files:
src/sys/arch/arm/arm: arm_machdep.c
Log Message:
Define NCPUINFO and set it to 1 or MAXCPUS whether on single or multiprocessor system.
Use NCPUINFO as the array size for *cpu_info[].
Closes PR port-hpcarm/52138
Patch by skrll
ok pgoyette
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/arm/arm/arm_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Tue, 04 Apr 2017 11:51:01 +0000
State-Changed-Why:
Fixed, thanks to Nick :)
>Unformatted:
(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-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.