NetBSD Problem Report #53853

From martin@duskware.de  Thu Jan 10 13:35:06 2019
Return-Path: <martin@duskware.de>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C46A07A1B4
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Jan 2019 13:35:05 +0000 (UTC)
Message-Id: <20190110133457.075775CC8F7@emmas.aprisoft.de>
Date: Thu, 10 Jan 2019 14:34:56 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: random SIGILL on pinebook
X-Send-Pr-Version: 3.95

>Number:         53853
>Category:       port-arm
>Synopsis:       random SIGILL on pinebook
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 10 13:40:00 +0000 2019
>Closed-Date:    Wed Nov 06 14:53:54 +0000 2019
>Last-Modified:  Wed Nov 06 14:53:54 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.30
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD painkiller.duskware.de 8.99.30 NetBSD 8.99.30 (GENERIC64) #21: Wed Jan 9 10:31:57 CET 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

I did some pkg building (with pkgobj on local USB hard disk and pkgsrc on NFS)
on a pinebook.

I do this by setting MAKE_JOBS to 4 and running

 pkg_chk .... 2>&1 | tee /tmp/pkg.log

on one of the virtual consoles (to avoid python bugs when running it
detached).

After a while tee dumped core.

Core was generated by `tee'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x0000000200100e04 in main (argc=<optimized out>, argv=<optimized out>)
    at /work/src/usr.bin/tee/tee.c:108
108     /work/src/usr.bin/tee/tee.c: No such file or directory.
(gdb) x/16i $pc-16
   0x200100df4 <main+332>:      mov     x1, x23
   0x200100df8 <main+336>:      
    mov x2, #0x2000                     // #8192
   0x200100dfc <main+340>:      mov     w0, #0x0                        // #0
   0x200100e00 <main+344>:      bl      0x2001009d0 <read@plt>
=> 0x200100e04 <main+348>:      cmp     x0, #0x0
   0x200100e08 <main+352>:      mov     x22, x0
   0x200100e0c <main+356>:      b.le    0x200100e68 <main+448>
   0x200100e10 <main+360>:      ldr     x21, [x26, #1288]
   0x200100e14 <main+364>:      cbz     x21, 0x200100df4 <main+332>
   0x200100e18 <main+368>:      mov     x19, x22
   0x200100e1c <main+372>:      mov     x20, x23
   0x200100e20 <main+376>:      b       0x200100e34 <main+396>
   0x200100e24 <main+380>:      nop
   0x200100e28 <main+384>:      subs    x19, x19, x0
   0x200100e2c <main+388>:      add     x20, x20, x0
   0x200100e30 <main+392>:      b.eq    0x200100e5c <main+436>  // b.none
(gdb) info reg
x0             0x5aa    1450
x1             0x0      0
x2             0x2000   8192
x3             0xfffffbc03000   281474905419776
x4             0xfb     251
x5             0x1      1
x6             0x20     32
x7             0xfb     251
x8             0x1      1
x9             0x11     17
x10            0x4      4
x11            0x2      2
x12            0x0      0
x13            0xfffffbef60a8   281474908512424
x14            0xc      12
x15            0xfffffbeba000   281474908266496
x16            0x200111298      8591053464
x17            0xfffffbd73de4   281474906930660
x18            0xfffffbeba838   281474908268600
x19            0x0      0
x20            0xfffffbc015a4   281474905413028
x21            0x0      0
x22            0x5a4    1444
x23            0xfffffbc01000   281474905411584
x24            0x0      0
x25            0x200100f30      8590987056
x26            0x200111000      8591052800
x27            0x0      0
x28            0x0      0
x29            0x0      0
x30            0x200100e04      8590986756
sp             0xffffffffe840   0xffffffffe840
pc             0x200100e04      0x200100e04 <main+348>
cpsr           0x40000000       [ EL=0 Z ]
fpsr           0x0      0
fpcr           0x0      0


>How-To-Repeat:
Push the machine with quite some load?

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/53853: random SIGILL
Date: Mon, 14 Jan 2019 09:09:38 +0000

 not sent to gnats

    ------

 From: Martin Husemann <martin@duskware.de>
 To: gnats@NetBSD.org
 Subject: Re: port-arm/53853: random SIGILL
 Date: Thu, 10 Jan 2019 16:08:52 +0100

 Here is the dmesg (w/o the USB hard disk for now).

 Martin

 ------------------------------------------
 kern_vtopdiff         = 0xffffffbf48c00000
 physical_start        = 0x0000000040000000
 kernel_start_phys     = 0x00000000b7400000
 kernel_end_phys       = 0x00000000b816c000
 msgbuf                = 0x0000000047ef1000
 physical_end          = 0x00000000c0000000
 VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
 kernel_start_l2       = 0xffffffc000000000
 kernel_start          = 0xffffffc000000000
 kernel_end            = 0xffffffc000d6c000
 pagetables            = 0xffffffc000d6c000
 pagetables_end        = 0xffffffc000d77000
 kernel_end_l2         = 0xffffffc000e00000
 module_start          = 0xffffffc000e00000
 module_end            = 0xffffffc002e00000
 (kernel va area)
 (devmap va area)      = 0xfffffffff0000000
 VM_MAX_KERNEL_ADDRESS = 0xffffffffffe00000
 ------------------------------------------
 mpstart
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
 The Regents of the University of California.  All rights reserved.

 NetBSD 8.99.30 (GENERIC64) #21: Wed Jan  9 10:31:57 CET 2019
 	martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64
 total memory = 2030 MB
 avail memory = 1965 MB
 timecounter: Timecounters tick every 10.000 msec
 armfdt0 (root)
 simplebus0 at armfdt0: Pine64 Pinebook
 simplebus1 at simplebus0
 simplebus2 at simplebus0
 cpus0 at simplebus0
 cpu0 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
 cpu0: package 0, core 0, smt 0
 cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
 cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
 cpu0: Dcache line 64, Icache line 64
 cpu0: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
 cpu0: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
 cpu0: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
 cpu0: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
 cpu0: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
 cpufreqdt0 at cpu0
 cpu1 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
 cpu1: package 0, core 1, smt 0
 cpu2 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
 cpu2: package 0, core 2, smt 0
 cpu3 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
 cpu3: package 0, core 3, smt 0
 gic0 at simplebus1: GIC
 armgic0 at gic0: Generic Interrupt Controller, 224 sources (215 valid)
 armgic0: 16 Priorities, 192 SPIs, 7 PPIs, 16 SGIs
 fclock0 at simplebus0: 24000000 Hz fixed clock (osc24M)
 fclock1 at simplebus0: 32768 Hz fixed clock (osc32k)
 syscon0 at simplebus1: System Controller Registers
 fclock2 at simplebus0: 16000000 Hz fixed clock (iosc)
 gtmr0 at simplebus0: Generic Timer
 gtmr0: interrupting on GIC irq 27
 armgtmr0 at gtmr0: ARM Generic Timer (24000 kHz)
 timecounter: Timecounter "armgtmr0" frequency 24000000 Hz quality 500
 sun50ia64ccu0 at simplebus1: A64 CCU
 sun50ia64rccu0 at simplebus1: A64 PRCM CCU
 sunxinmi0 at simplebus1: R_INTC
 sunxigpio0 at simplebus1: PIO
 gpio0 at sunxigpio0: 103 pins
 sunxigpio0: interrupting on GIC irq 43
 sunxigpio1 at simplebus1: PIO
 gpio1 at sunxigpio1: 13 pins
 sunxigpio1: interrupting on GIC irq 77
 sunxipwm0 at simplebus1: PWM
 sunxirsb0 at simplebus1: RSB
 sunxirsb0: interrupting on GIC irq 71
 iic0 at sunxirsb0: I2C bus
 axppmic0 at iic0 addr 0x3a3: AXP803
 axpreg0 at axppmic0: dldo1
 axpreg1 at axppmic0: dldo2
 axpreg2 at axppmic0: dldo3
 axpreg3 at axppmic0: dldo4
 axpreg4 at axppmic0: eldo1
 axpreg5 at axppmic0: eldo2
 axpreg6 at axppmic0: eldo3
 axpreg7 at axppmic0: fldo1
 axpreg8 at axppmic0: fldo2
 axpreg9 at axppmic0: dcdc1
 axpreg10 at axppmic0: dcdc2
 axpreg11 at axppmic0: dcdc3
 axpreg12 at axppmic0: dcdc4
 axpreg13 at axppmic0: dcdc5
 axpreg14 at axppmic0: dcdc6
 axpreg15 at axppmic0: aldo1
 axpreg16 at axppmic0: aldo2
 axpreg17 at axppmic0: aldo3
 com0 at simplebus1: ns16550a, working fifo
 com0: console
 com0: interrupting on GIC irq 32
 com1 at simplebus1: ns16550a, working fifo
 com1: interrupting on GIC irq 33
 sunxiusbphy0 at simplebus1: USB PHY
 sun6idma0 at simplebus1: DMA controller (8 channels)
 sun6idma0: interrupting on GIC irq 82
 ausoc0 at simplebus0: SUN50I Audio Card
 a64acodec0 at simplebus1: A64 Audio Codec (analog part)
 sunxii2s0 at simplebus1: Audio Codec (digital part)
 sun8icodec0 at simplebus1: Audio Codec
 sun8icodec0: interrupting on GIC irq 60
 genfb0 at simplebus2: Simple Framebuffer (1366x768 32-bpp @ 0xbe000000)
 genfb0: framebuffer at 0xbe000000, size 1366x768, depth 32, stride 5464
 wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 wsdisplay0: screen 1-3 added (default, vt100 emulation)
 sunximmc0 at simplebus1: SD/MMC controller
 sunximmc0: interrupting on GIC irq 92
 sunximmc1 at simplebus1: SD/MMC controller
 sunximmc1: interrupting on GIC irq 93
 sunximmc2 at simplebus1: SD/MMC controller
 sunximmc2: interrupting on GIC irq 94
 motg0 at simplebus1: USB OTG
 motg0: interrupting on GIC irq 103
 usb0 at motg0: USB revision 2.0
 ehci0 at simplebus1: EHCI
 ehci0: interrupting on GIC irq 104
 ehci0: EHCI version 1.0
 ehci0: 1 companion controller, 1 port
 usb1 at ehci0: USB revision 2.0
 ohci0 at simplebus1: OHCI
 ohci0: interrupting on GIC irq 105
 ohci0: OHCI version 1.0
 usb2 at ohci0: USB revision 1.0
 ehci1 at simplebus1: EHCI
 ehci1: interrupting on GIC irq 106
 ehci1: EHCI version 1.0
 ehci1: 1 companion controller, 1 port
 usb3 at ehci1: USB revision 2.0
 ohci1 at simplebus1: OHCI
 ohci1: interrupting on GIC irq 107
 ohci1: OHCI version 1.0
 usb4 at ohci1: USB revision 1.0
 sunxirtc0 at simplebus1: RTC
 sunxiwdt0 at simplebus1: Watchdog
 sunxiwdt0: default watchdog period is 16 seconds
 sunxithermal0 at simplebus1: Thermal sensor controller
 sunxithermal0: interrupting on GIC irq 63
 sunxithermal0: cpu: alarm 85C hyst 58C shut 106C
 sunxithermal0: gpu1: alarm 85C hyst 58C shut 106C
 sunxithermal0: gpu2: alarm 85C hyst 58C shut 106C
 pwmbacklight0 at simplebus0: PWM Backlight <0 10 20 30 40 50 60 70 80 90 100>
 psci0 at simplebus0: PSCI 0.2
 gpiokeys0 at simplebus0: Lid Switch
 ausoc0: codec: sun8icodec0, cpu: sunxii2s0, aux: a64acodec0
 audio0 at ausoc0: full duplex, playback, capture, mmap, independent
 ausoc0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
 ausoc0: Latency: 256 milliseconds
 spkr0 at audio0: PC Speaker (synthesized)
 wsbell at spkr0 not configured
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 cpu_boot_secondary_processors: writing mbox with 0xe
 cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
 cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
 cpu3: Dcache line 64, Icache line 64
 cpu3: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
 cpu3: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
 cpu3: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
 cpu3: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
 cpu3: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
 cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
 cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
 cpu1: Dcache line 64, Icache line 64
 cpu1: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
 cpu1: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
 cpu1: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
 cpu1: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
 cpu1: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
 cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
 cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
 cpu2: Dcache line 64, Icache line 64
 cpu2: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
 cpu2: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
 cpu2: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache
 cpu2: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
 cpu2: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
 cpu_boot_secondary_processors: secondary processors hatched
 cpufreqdt0: 1152.000 MHz, 1300000 uV
 cpufreqdt0: 1104.000 MHz, 1260000 uV
 cpufreqdt0: 1008.000 MHz, 1200000 uV
 cpufreqdt0: 816.000 MHz, 1080000 uV
 cpufreqdt0: 648.000 MHz, 1040000 uV
 cpufreqdt0: 408.000 MHz, 1000000 uV
 sdmmc0 at sunximmc0
 sdmmc1 at sunximmc1
 sdmmc2 at sunximmc2
 uhub0 at usb2: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
 uhub0: 1 port with 1 removable, self powered
 uhub1 at usb0: NetBSD (0000) MOTG root hub (0000), class 9/0, rev 2.00/1.00, addr 1
 uhub1: 1 port with 1 removable, self powered
 uhub2 at usb1: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
 uhub2: 1 port with 1 removable, self powered
 uhub3 at usb4: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
 uhub3: 1 port with 1 removable, self powered
 uhub4 at usb3: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
 uhub4: 1 port with 1 removable, self powered
 ld2 at sdmmc2: <0x88:0x0103:NCard :0x00:0x52a11a44:0x000>
 ld2: 59000 MB, 7521 cyl, 255 head, 63 sec, 512 bytes/sect x 120832000 sectors
 ld2: 58310656 trailing sectors not covered by disklabel
 (manufacturer 0x24c, product 0xb703, standard function interface code 0x7) at sdmmc1 function 1 not configured
 ld2: 8-bit width, HS200, 64 MB cache, 200.000 MHz
 Lid Switch: lid opened.
 IPsec: Initialized Security Association Processing.
 uhub5 at uhub4 port 1: vendor 05e3 (0x5e3) USB2.0 Hub (0x608), class 9/0, rev 2.00/88.32, addr 2
 uhub5: single transaction translator
 uhub5: 4 ports with 1 removable, self powered
 uhidev0 at uhub5 port 1 configuration 1 interface 0
 uhidev0: HAILUCK CO.,LTD (0x258a) USB KEYBOARD (0x0c), rev 1.10/1.00, addr 3, iclass 3/1
 ukbd0 at uhidev0: 8 Variable keys, 6 Array codes
 wskbd0 at ukbd0: console keyboard, using wsdisplay0
 uhidev1 at uhub5 port 1 configuration 1 interface 1
 uhidev1: HAILUCK CO.,LTD (0x258a) USB KEYBOARD (0x0c), rev 1.10/1.00, addr 3, iclass 3/0
 uhidev1: 9 report ids
 ums0 at uhidev1 reportid 1: 5 buttons, W and Z dirs
 wsmouse0 at ums0 mux 0
 uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
 uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
 uhid2 at uhidev1 reportid 5: input=0, output=0, feature=5
 uhid3 at uhidev1 reportid 6: input=0, output=0, feature=1039
 uhid4 at uhidev1 reportid 9: input=1, output=0, feature=0
 uvideo0 at uhub5 port 3 configuration 1 interface 0: Image Processor (0x90c) USB 2.0 PC Cam (0x37c), rev 2.00/0.05, addr 4
 video0 at uvideo0: Image Processor (0x90c) USB 2.0 PC Cam (0x37c), rev 2.00/0.05, addr 4
 ld2: 58310656 trailing sectors not covered by disklabel
 boot device: ld2
 ld2: 58310656 trailing sectors not covered by disklabel
 root on ld2a dumps on ld2b
 ld2: 58310656 trailing sectors not covered by disklabel
 root file system type: ffs
 kern.module.path=/stand/evbarm/8.99.30/modules
 wsdisplay0: screen 4 added (default, vt100 emulation)

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-arm/53853: random SIGIL
Date: Tue, 15 Jan 2019 10:03:28 +0100

 I got a few more instances, this time from sed (and all identical):

 Program terminated with signal SIGILL, Illegal instruction.
 #0  0x0000fffffbd75340 in __libc_mutexattr_init_stub ()
     at /work/src/lib/libc/thread-stub/thread-stub.c:275
 275     /work/src/lib/libc/thread-stub/thread-stub.c: No such file or directory.

 (gdb) x/16i $pc-20
    0xfffffbd7532c <__libc_rwlock_catchall_stub+36>:     
     mov w0, #0x0                        // #0
    0xfffffbd75330 <__libc_rwlock_catchall_stub+40>:     ldr     x30, [sp], #16
    0xfffffbd75334 <__libc_rwlock_catchall_stub+44>:     ret
    0xfffffbd75338 <__libc_cond_wait>:   
     b   0xfffffbd75308 <__libc_rwlock_catchall_stub>
    0xfffffbd7533c:      nop
 => 0xfffffbd75340 <__libc_mutexattr_init_stub>: 
     b   0xfffffbd75308 <__libc_rwlock_catchall_stub>
    0xfffffbd75344:      nop
    0xfffffbd75348 <__libc_mutex_unlock_stub>:   
     b   0xfffffbd75308 <__libc_rwlock_catchall_stub>
    0xfffffbd7534c:      nop
    0xfffffbd75350 <__libc_thr_keycreate_stub>:  
     adrp        x6, 0xfffffbeb1000 <__rpc_dname_lock+24>

 Martin

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Wed, 06 Nov 2019 14:33:16 +0000
State-Changed-Why:
Does this stilll happen with the latest pmap fixes?


State-Changed-From-To: feedback->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Wed, 06 Nov 2019 14:53:54 +0000
State-Changed-Why:
Have not seen it in the last rounds of pkg builds


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.