NetBSD Problem Report #58598

From www@netbsd.org  Thu Aug 15 00:31:55 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 17DE01A9242
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Aug 2024 00:31:55 +0000 (UTC)
Message-Id: <20240815003153.3A8C11A9243@mollari.NetBSD.org>
Date: Thu, 15 Aug 2024 00:31:53 +0000 (UTC)
From: isaki@pastel-flower.jp
Reply-To: isaki@pastel-flower.jp
To: gnats-bugs@NetBSD.org
Subject: FP event message displayed on NetBSD-10.0/alpha
X-Send-Pr-Version: www-1.0

>Number:         58598
>Category:       kern
>Synopsis:       FP event message displayed on NetBSD-10.0/alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 15 00:35:00 +0000 2024
>Last-Modified:  Thu Aug 15 09:20:01 +0000 2024
>Originator:     Tetsuya Isaki
>Release:        NetBSD-10.0
>Organization:
>Environment:
NetBSD alpha 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/alpha/compile/GENERIC alpha
>Description:
I'm not sure what is this, but I report it as instructed.

```
[ 20365.740908] FP instruction 5c420422
[ 20365.754956] FP event 3/8/800000
[ 20365.767463] Please report this to port-alpha-maintainer@NetBSD.org
```

The message is displayed by this_cannot_happen() on
arch/alpha/alpha/fp_complete.c

When I was building pkgsrc on alpha, I looked at the screen and
it was displayed.
So I don't know what exactly it was doing when this happened, but
it was building pkgsrc/lang/python311 around that time.

Full dmesg:
[     1.000000] consinit: not using prom console
[     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[     1.000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[     1.000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[     1.000000]     2024
[     1.000000]     The NetBSD Foundation, Inc.  All rights reserved.
[     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[     1.000000]     The Regents of the University of California.  All rights reserved.

[     1.000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
[     1.000000] 	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/alpha/compile/GENERIC
[     1.000000] Digital AlphaStation 500/500, 500MHz, s/n 
[     1.000000] 8192 byte page size, 1 processor.
[     1.000000] total memory = 1024 MB
[     1.000000] (2224 KB reserved for PROM, 1021 MB used by NetBSD)
[     1.000000] avail memory = 993 MB
[     1.000000] timecounter: Timecounters tick every 0.976 msec
[     1.000000] Kernelized RAIDframe activated
[     1.000000] mainbus0 (root)
[     1.000000] cpu0 at mainbus0: ID 0 (primary), 21164A-0 (EV56)
[     1.000000] cpu0: Architecture extensions: 0x1<BWX>
[     1.000000] cia0 at mainbus0: DECchip 2117x Core Logic Chipset (ALCOR/ALCOR2), pass 3
[     1.000000] cia0: extended capabilities: 0x21<DWEN,BWEN>
[     1.000000] cia0: using BWX for PCI config access
[     1.000000] pci0 at cia0 bus 0
[     1.000000] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
[     1.000000] tlp0 at pci0 dev 6 function 0: DECchip 21040 Ethernet, pass 2.6
[     1.000000] tlp0: interrupting at kn20aa irq 13
[     1.000000] tlp0: Ethernet address XX:XX:XX:XX:XX:XX
[     1.000000] tlp0: 10baseT, 10baseT-FDX, 10base5, manual
[     1.000000] tga0 at pci0 dev 8 function 0: TGA2 pass 2, board type T8-02
[     1.000000] tga0: 1280 x 1024, 8bpp, Bt485 RAMDAC
[     1.000000] tga0: interrupting at kn20aa irq 16
[     1.000000] wsdisplay0 at tga0 kbdmux 1: console (std, vt100 emulation)
[     1.000000] wsmux1: connecting to wsdisplay0
[     1.000000] isp0 at pci0 dev 9 function 0: QLogic 1020 Fast Wide SCSI HBA
[     1.000000] isp0: interrupting at kn20aa irq 12
[     1.000000] isp0: invalid NVRAM header
[     1.000000] pceb0 at pci0 dev 10 function 0: Intel 82375EB/SB PCI-EISA Bridge (rev. 0x15)
[     1.000000] wm0 at pci0 dev 11 function 0, 32-bit DMA: Intel i82541PI 1000BASE-T Ethernet (rev. 0x05)
[     1.000000] wm0: interrupting at kn20aa irq 0
[     1.000000] wm0: 32-bit 33MHz PCI bus
[     1.000000] wm0: 64 words (6 address bits) MicroWire EEPROM
[     1.000000] wm0: RX packet buffer size: 48KB
[     1.000000] wm0: Ethernet address XX:XX:XX:XX:XX:XX
[     1.000000] wm0: 0x220402<LOCK_EECD,IOH_VALID,ASF_FIRM,WOL>
[     1.000000] ukphy0 at wm0 phy 1: Intel Intel IGP01E1000 Gigabit PHY (OUI 0x005500, model 0x0038), rev. 0
[     1.000000] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[     1.000000] eisa0 at pceb0
[     1.000000] isa0 at pceb0
[     1.000000] lpt0 at isa0 port 0x3bc-0x3bf irq 7
[     1.000000] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO
[     1.000000] com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, 16-byte FIFO
[     1.000000] pckbc0 at isa0 port 0x60-0x64
[     1.000000] pckbd0 at pckbc0 (kbd slot)
[     1.000000] pckbc0: using irq 1 for kbd slot
[     1.000000] wskbd0 at pckbd0: console keyboard, using wsdisplay0
[     1.000000] attimer0 at isa0 port 0x40-0x43
[     1.000000] vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
[     1.000000] wsdisplay1 at vga0 kbdmux 1
[     1.000000] wsmux1: connecting to wsdisplay1
[     1.000000] pcppi0 at isa0 port 0x61
[     1.000000] spkr0 at pcppi0: PC Speaker
[     1.000000] wsbell at spkr0 not configured
[     1.000000] midi0 at pcppi0: PC speaker
[     1.000000] isabeep0 at pcppi0
[     1.000000] fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
[     1.000000] mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
[     1.000000] attimer0: attached to pcppi0
[     1.000000] timecounter: Timecounter "PCC" frequency 499987200 Hz quality 1000
[     1.000165] timecounter: Timecounter "clockinterrupt" frequency 1024 Hz quality 0
[     1.001601] scsibus0 at isp0: 16 targets, 8 luns per target
[     1.019175] scsibus0: waiting 2 seconds for devices to settle...
[     1.040660] WARNING: system needs entropy for security; see entropy(7)
[     3.067029] sd0 at scsibus0 target 0 lun 0: <IBM, DDRS-34560W, S97B> disk fixed
[     3.186164] sd0: 4357 MB, 8387 cyl, 5 head, 212 sec, 512 bytes/sect x 8925000 sectors
[     3.219368] sd0: sync (100.00ns offset 12), 16-bit (20.000MB/s) transfers, tagged queueing
[    10.263351] swwdog0: software watchdog initialized
[    10.382488] root on sd0a dumps on sd0b
[    10.416664] root file system type: ffs
[    10.436196] kern.module.path=/stand/alpha/10.0/modules
[    10.474282] entropy: best effort
[    14.501649] entropy: ready
[ 20219.043924] nfs server server:/export: not responding
[ 20219.062479] nfs server server:/export: is alive again
[ 20365.740908] FP instruction 5c420422
[ 20365.754956] FP event 3/8/800000
[ 20365.767463] Please report this to port-alpha-maintainer@NetBSD.org

>How-To-Repeat:
I don't know.
>Fix:
N/A

>Audit-Trail:
From: Jason Thorpe <thorpej@me.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: kern/58598: FP event message displayed on NetBSD-10.0/alpha
Date: Wed, 14 Aug 2024 18:48:26 -0700

 > On Aug 14, 2024, at 5:35=E2=80=AFPM, isaki@pastel-flower.jp wrote:
 >=20
 > [ 20365.740908] FP instruction 5c420422
 > [ 20365.754956] FP event 3/8/800000
 > [ 20365.767463] Please report this to port-alpha-maintainer@NetBSD.org

 Well this is annoying.  There are two places that use the =E2=80=9C3=E2=80=
 =9D what-can=E2=80=99t-happen code.  Grumble.  WHO WROTE THAT STUFF =
 ANYWAY?  (Heh, it was Ross, actually.)

 Luckily, we have the instruction bits.

 Looks like that=E2=80=99s:

 	opcode=3D23, displacement=3D1058, ra=3D2, rb=3D2

 =E2=80=A6which would be:

 	ldt	f2,1058(t1)

 ?

 That doesn=E2=80=99t make any sense, actually.  Ok, I=E2=80=99ve =
 probably decoded that wrong.  I=E2=80=99ll take another look later.

 -- thorpej

From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58598: FP event message displayed on NetBSD-10.0/alpha
Date: Thu, 15 Aug 2024 11:15:08 +0200

 Had the same message on my console after building the dependency
 tree from meta-pkgs/modular-xorg-apps, so it should be reproducable.
 Probably it is triggered by some math configure test.

 It might be good to change the message so it additionally logs
 curlwp->l_proc->p_comm.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.