NetBSD Problem Report #6269

Received: (qmail 3027 invoked from network); 10 Oct 1998 01:08:13 -0000
Message-Id: <199810100108.VAA08930@jfwhome.funhouse.com>
Date: Fri, 9 Oct 1998 21:08:08 -0400 (EDT)
From: "John F. Woods" <jfw@jfwhome.funhouse.com>
Reply-To: jfw@jfwhome.funhouse.com
To: gnats-bugs@gnats.netbsd.org
Subject: ym_isapnp.c crashes during attach
X-Send-Pr-Version: 3.95

>Number:         6269
>Category:       kern
>Synopsis:       ym_isapnp.c crashes during attach
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 09 18:20:00 +0000 1998
>Closed-Date:    Sun Oct 11 16:56:53 +0000 1998
>Last-Modified:  Sun Oct 11 16:57:59 +0000 1998
>Originator:     John F. Woods
>Release:        netbsd-current october 8
>Organization:
Misanthropes-R-Us
>Environment:

System: NetBSD 1.3H (GENERIC) #4: Tue Oct  6 23:45:26 MEST 1998


>Description:
	I have a PC with an OPL-SA3 based audio card (ISA plug-n-pray).
When I boot the 9/30 snapshot provided by Havard Eidnes, it crashes
when trying to attach the sound card; it calls ym_attach, which calls
ad1848_attach, which calls a null function pointer.  (Which then causes
a kernel page fault in DDB's disassembler, by the way.)

	The null function pointer was the sc_writereg function pointer in
struct ad1848_softc, which was probably added to ad1848.c on Aug 28, but
was not added to any of the ym drivers (isapnp or isa).  I think the key
is that the other drivers which borrow the ad1848 functionality also call
ad1848_*_probe() which sets the functions pointers, but ym_attach skips
that step.

>How-To-Repeat:
	"Just do it."

>Fix:
	If no one gets to this by Monday, I'll submit a fix.  Presumably
it's a matter of either calling ad1848_*_probe or duplicating an appropriate
amount of its functionality, but I've spent no time on anything other than
spotting the problem.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: augustss 
State-Changed-When: Sun Oct 11 09:56:53 PDT 1998 
State-Changed-Why:  
Bug fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.