NetBSD Problem Report #43095

From  Thu Apr  1 08:57:44 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 113BA63B86C
	for <>; Thu,  1 Apr 2010 08:57:44 +0000 (UTC)
Message-Id: <>
Date: Thu,  1 Apr 2010 08:57:43 +0000 (UTC)
Subject: dtrace alters kernel<->groveller ABI
X-Send-Pr-Version: www-1.0

>Number:         43095
>Category:       kern
>Synopsis:       dtrace alters kernel<->groveller ABI
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 01 09:00:01 +0000 2010
>Originator:     Andrew Doran
>Release:        -current Apr 1 2010
The NetBSD Project
#ifdef KTRACE_HOOKS appears to alter alters the interface used by
kernel grovelers, by changing the number of sections in the fake
ksyms binary.  It must not do this as it may break savecore.

Code inspection.
Always have the same number of sections in the fake binary.
If there is no dtrace information emit the section as present but empty.
#ifdef OPTION must not touch the interface definition (ksyms.h).
Don't pollute kernel with #ifdefs to micro-optimize tiny things and/or
work around shortcomings, do things correctly at runtime.

NetBSD Home
NetBSD PR Database Search

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