NetBSD Problem Report #50076

From www@NetBSD.org  Wed Jul 22 11:41:17 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(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 E3016A5864
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Jul 2015 11:41:16 +0000 (UTC)
Message-Id: <20150722114115.DA1E4A6555@mollari.NetBSD.org>
Date: Wed, 22 Jul 2015 11:41:15 +0000 (UTC)
From: maksim.balas@yandex.ru
Reply-To: maksim.balas@yandex.ru
To: gnats-bugs@NetBSD.org
Subject: Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
X-Send-Pr-Version: www-1.0

>Number:         50076
>Category:       port-i386
>Synopsis:       Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    martin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 22 11:45:00 +0000 2015
>Closed-Date:    Thu Aug 06 22:14:02 +0000 2015
>Last-Modified:  Thu Aug 06 22:14:02 +0000 2015
>Originator:     Maxim
>Release:        NetBSD-7.0_RC1
>Organization:
>Environment:
Old Toshiba Tecra 550CDT (Pentium MMX 266MHz, 96M RAM).


>Description:
I'm download iso-image from this address:

http://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0_RC1/iso/NetBSD-7.0_RC1-i386.iso

then write on CD-RW and boot from it on old Toshiba Tecra 550CDT (Pentium MMX 266MHz, 96M RAM).

There is fragment of kernel messages:

(start of fragment)

 uvm_fault(0xc0ff0d00, 0, 1) -> 0xe
 fatal page fault in supervisor mode
 trap type 6 code 0 eip c0904718 cs 8 eflags 10286 cr2 1c ilevel 8 esp 1
 curlwp 0xc0fa69e0 pid 0 lid 1 lowest kstack 0xc119e2c0
 kernel: supervisor trap page fault, code=0
 Stopped in pid 0.1 (system) at netbsd:cfparent_match+0x14: movl 1c (%esi)
 ,%eax
 db{0}>

(end of fragment, end of boot)

On NetBSD v. 6.x.x on this Toshiba Tecra 550CDT boot process work well.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: install-manager->port-i386-maintainer
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 22 Jul 2015 13:06:12 +0000
Responsible-Changed-Why:
probably a i386 (or kernel/device driver) bug


From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba
 Tecra 550CDT
Date: Wed, 22 Jul 2015 15:15:08 +0200

 On Wed, Jul 22, 2015 at 11:45:00AM +0000, maksim.balas@yandex.ru wrote:
 > There is fragment of kernel messages:

 backtrace? (e.g. just enter bt at the DDB prompt)

 Joerg

From: =?koi8-r?B?7cHL08nNIOLBzMHT?= <maksim.balas@yandex.ru>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>,
	"port-i386-maintainer@netbsd.org" <port-i386-maintainer@netbsd.org>,
	"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>,
	"netbsd-bugs@netbsd.org" <netbsd-bugs@netbsd.org>
Cc: 
Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
Date: Thu, 23 Jul 2015 00:14:04 +0300

 22.07.2015, 16:20, "Joerg Sonnenberger" <joerg@britannica.bec.de>:
 > The following reply was made to PR port-i386/50076; it has been noted by GNATS.
 >
 > From: Joerg Sonnenberger <joerg@britannica.bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba
 > šTecra 550CDT
 > Date: Wed, 22 Jul 2015 15:15:08 +0200
 >
 > šOn Wed, Jul 22, 2015 at 11:45:00AM +0000, maksim.balas@yandex.ru wrote:
 > š> There is fragment of kernel messages:
 >
 > šbacktrace? (e.g. just enter bt at the DDB prompt)
 >
 > šJoerg


 Hi Joerg,

 I took a picture of the text messages:

 http://savepic.ru/7605349.jpg
 http://savepic.su/5877386.jpg
 http://savepic.ru/7606373.jpg
 http://savepic.su/5869194.jpg

 Thanks.

 WBR, Max.
 Email: maksim.balas@yandex.ru

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
Date: Thu, 23 Jul 2015 08:19:57 +0200

 For easy access in gnats: it is a kernel fault at cfparent_match, called
 from config_found() at the end of oboe_attach().

 The bug is pretty obvious in the source:

 	sc->sc_child = config_found((void *)sc, &ia, ir_print);

 Can you build your own kernel for testing? If so, try the patch
 below - if not, let me know.

 Martin

 Index: oboe.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/oboe.c,v
 retrieving revision 1.42
 diff -u -r1.42 oboe.c
 --- oboe.c	29 Mar 2014 19:28:25 -0000	1.42
 +++ oboe.c	23 Jul 2015 06:18:38 -0000
 @@ -238,7 +238,7 @@

  	oboe_alloc_taskfile(sc);

 -	sc->sc_child = config_found((void *)sc, &ia, ir_print);
 +	sc->sc_child = config_found(self, &ia, ir_print);
  }

  static int

From: Maksim Balas <maksim.balas@yandex.ru>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>,
	"port-i386-maintainer@netbsd.org" <port-i386-maintainer@netbsd.org>,
	"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>,
	"netbsd-bugs@netbsd.org" <netbsd-bugs@netbsd.org>
Cc: 
Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
Date: Thu, 23 Jul 2015 11:31:15 +0300

 23.07.2015, 09:20, "Martin Husemann" <martin@duskware.de>:
 > The following reply was made to PR port-i386/50076; it has been noted by GNATS.
 >
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: install/50076: Error on boot NetBSD-7.0_RC1-i386 on Toshiba Tecra 550CDT
 > Date: Thu, 23 Jul 2015 08:19:57 +0200
 >
 > šFor easy access in gnats: it is a kernel fault at cfparent_match, called
 > šfrom config_found() at the end of oboe_attach().
 >
 > šThe bug is pretty obvious in the source:
 >
 > šššššššššsc->sc_child = config_found((void *)sc, &ia, ir_print);
 >
 > šCan you build your own kernel for testing? If so, try the patch
 > šbelow - if not, let me know.
 >
 > šMartin
 >
 > šIndex: oboe.c
 > š===================================================================
 > šRCS file: /cvsroot/src/sys/dev/pci/oboe.c,v
 > šretrieving revision 1.42
 > šdiff -u -r1.42 oboe.c
 > š--- oboe.c 29 Mar 2014 19:28:25 -0000 1.42
 > š+++ oboe.c 23 Jul 2015 06:18:38 -0000
 > š@@ -238,7 +238,7 @@
 >
 > ššššššššššoboe_alloc_taskfile(sc);
 >
 > š- sc->sc_child = config_found((void *)sc, &ia, ir_print);
 > š+ sc->sc_child = config_found(self, &ia, ir_print);
 > šš}
 >
 > ššstatic int


 Hi Martin,

 the last time I compiled the kernel for more than 15 years ago, and that in Linux, so I'm not sure I can do now is correct and accurate, as it is done in NetBSD.

 But I can test the iso image ready.

 Thanks.

 WBR, Max
 Email: maksim.balas@yandex.ru

Responsible-Changed-From-To: port-i386-maintainer->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Fri, 24 Jul 2015 06:19:58 +0000
Responsible-Changed-Why:
I fixed it


State-Changed-From-To: open->pending-pullups
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 24 Jul 2015 06:19:58 +0000
State-Changed-Why:
Waiting on [pullup-7 #887]


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50076 CVS commit: src/sys/dev/pci
Date: Fri, 24 Jul 2015 06:17:11 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Fri Jul 24 06:17:10 UTC 2015

 Modified Files:
 	src/sys/dev/pci: oboe.c

 Log Message:
 Pass the device, not the struct softc to config_found().
 Avoids a crash at attach time, PR port-i386/50076.


 To generate a diff of this commit:
 cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/oboe.c

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

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50076 CVS commit: [netbsd-7] src/sys/dev/pci
Date: Thu, 30 Jul 2015 15:19:07 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Thu Jul 30 15:19:07 UTC 2015

 Modified Files:
 	src/sys/dev/pci [netbsd-7]: oboe.c

 Log Message:
 Pull up following revision(s) (requested by martin in ticket #887):
 	sys/dev/pci/oboe.c: revision 1.43
 Pass the device, not the struct softc to config_found().
 Avoids a crash at attach time, PR port-i386/50076.


 To generate a diff of this commit:
 cvs rdiff -u -r1.42 -r1.42.4.1 src/sys/dev/pci/oboe.c

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Thu, 06 Aug 2015 22:14:02 +0000
State-Changed-Why:
Pulled up.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.