NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/57488: awk(1) sometimes dumps core on SHEEVAPLUG (maybe KIRKWOOD)



>Number:         57488
>Category:       port-arm
>Synopsis:       awk(1) sometimes dumps core on SHEEVAPLUG (maybe KIRKWOOD)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 24 19:15:00 +0000 2023
>Originator:     Izumi Tsutsui
>Release:        NetBSD 10.0_BETA 202306231420Z
>Organization:
>Environment:
System: NetBSD sheevaplug 10.0_BETA NetBSD 10.0_BETA (SHEEVAPLUG) #0: Fri Jun 23 05:42:34 UTC 2023  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/SHEEVAPLUG evbarm
Architecture: earmv5
Machine: evbarm
>Description:
On the above SHEEVAPLUG kernel, awk(1) invoked during 'make package'
in pkgsrc/pkgtools/cwrappers *sometimes* gets SIGSEGV or SIGBUS etc.

---

=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for cwrappers-20220403
=> Checking for non-existent script interpreters in cwrappers-20220403
=> Checking for PIE in cwrappers-20220403
=> Checking for missing run-time search paths in cwrappers-20220403
[ 177.0000527] data_abort_handler: data_aborts fsr=0x1 far=0x105
[1]   Done                    /usr/bin/sed -e "/^@/d" /usr/obj.earmv5/pkgtoo... |
      Done                    while read file; do test -h "${file}" || echo ... |
      Done                    /usr/bin/egrep -h (bin/|sbin/|libexec/|\.(dyli... |
      Done                    while read file; do case "${file}" in *) ;; es... |
      Bus error (core dumped) /usr/bin/env PLATFORM_RPATH=/usr/lib READELF= ...
*** Error code 138

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/cwrappers

---

=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for cwrappers-20220403
=> Checking for non-existent script interpreters in cwrappers-20220403
=> Checking for PIE in cwrappers-20220403
=> Checking for missing run-time search paths in cwrappers-20220403
[1]   Done                    /usr/bin/sed -e "/^@/d" /usr/obj.earmv5/pkgtoo... |
      Done                    while read file; do test -h "${file}" || echo ... |
      Done                    /usr/bin/egrep -h (bin/|sbin/|libexec/|\.(dyli... |
      Done                    while read file; do case "${file}" in *) ;; es... |
      Segmentation fault (core dumped) /usr/bin/env PLATFORM_RPATH=/usr/lib READELF= ...
*** Error code 139

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/cwrappers

---

=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for cwrappers-20220403
=> Checking for non-existent script interpreters in cwrappers-20220403
=> Checking for PIE in cwrappers-20220403
=> Checking for missing run-time search paths in cwrappers-20220403
[ 650.4002895] data_abort_handler: data_aborts fsr=0x1 far=0x76
[1]   Done                    /usr/bin/sed -e "/^@/d" /usr/obj.earmv5/pkgtoo... |
      Done                    while read file; do test -h "${file}" || echo ... |
      Done                    /usr/bin/egrep -h (bin/|sbin/|libexec/|\.(dyli... |
      Done                    while read file; do case "${file}" in *) ;; es... |
      Bus error (core dumped) /usr/bin/env PLATFORM_RPATH=/usr/lib READELF= ...
*** Error code 138

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/cwrappers

---

dmesg:
---
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, 2020, 2021, 2022, 2023
    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 10.0_BETA (SHEEVAPLUG) #0: Fri Jun 23 05:42:34 UTC 2023
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/SHEEVAPLUG
total memory = 512 MB
avail memory = 494 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: Sheeva 88SV131 rev 1 (ARM9E-S V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: L1 16KB/32B 4-way (128 set) VIVT Instruction cache
cpu0: L1 16KB/32B 4-way (128 set) write-back-locking-C VIVT Data cache
mvsoc0 at mainbus0: Marvell 88F6281 Rev. A1  Kirkwood
mvsoc0: CPU Clock 1200.000 MHz  SysClock 400.000 MHz  TClock 200.000 MHz
mvsoctmr0 at mvsoc0 unit 0 offset 0x20300-0x203ff irq 65: Marvell SoC Timer
mvsocgpp0 at mvsoc0 unit 0 offset 0x10100-0x101ff irq 35: Marvell SoC General Purpose I/O Port Interface
mvsocgpp0: 50 gpio pins
mvsocgpp0: interrupts 96..103, intr 35
mvsocgpp0: interrupts 104..111, intr 36
mvsocgpp0: interrupts 112..119, intr 37
mvsocgpp0: interrupts 120..127, intr 38
mvsocgpp0: interrupts 128..135, intr 39
mvsocgpp0: interrupts 136..143, intr 40
mvsocgpp0: interrupts 144..151, intr 41
mvsocgpp0:   Data Out:                 	0x20000000
mvsocgpp0:   Data Out Enable Control:  	0xffffffff
mvsocgpp0:   Data Blink Enable:        	0x00000000
mvsocgpp0:   Data In Polarity:         	0x00000000
mvsocgpp0:   Data In:                  	0x00000080
mvsocgpp0:   Interrupt Cause:          	0x00000000
mvsocgpp0:   Interrupt Mask:           	0x00000000
mvsocgpp0:   Interrupt Level Mask:     	0x00000000
mvsocgpp0:   High Data Out:            	0x00020000
mvsocgpp0:   High Data Out Enable Ctrl:	0xffffffff
mvsocgpp0:   High Blink Enable:        	0x00000000
mvsocgpp0:   High Data In Polarity:    	0x00000000
mvsocgpp0:   High Data In:             	0x00014000
mvsocgpp0:   High Interrupt Cause:     	0x00000000
mvsocgpp0:   High Interrupt Mask:      	0x00000000
mvsocgpp0:   High Interrupt Level Mask:	0x00000000
gpio0 at mvsocgpp0: 50 pins
mvsocrtc0 at mvsoc0 unit 0 offset 0x10300-0x10317: Marvell SoC Real Time Clock
com0 at mvsoc0 unit 0 offset 0x12000-0x1201f irq 33: ns16550a, 16-byte FIFO
com0: console
com1 at mvsoc0 unit 1 offset 0x12100-0x1211f irq 34: ns16550a, 16-byte FIFO
ehci0 at mvsoc0 unit 0 offset 0x50000-0x50fff irq 19: Marvell USB 2.0 Interface
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
gtidmac0 at mvsoc0 unit 0 offset 0x60000-0x60fff: Marvell IDMA Controller/XOR Engine
gtidmac0: XOR Engine 4 channels, intr 5, 6, 7, 8
gttwsi0 at mvsoc0 unit 0 offset 0x11000-0x110ff irq 29: Marvell TWSI controller
iic0 at gttwsi0: I2C bus
mvcesa0 at mvsoc0 unit 0 offset 0x3d000-0x3dfff irq 22: Marvell Cryptographic Engines and Security Accelerator
mvgbec0 at mvsoc0 unit 0 offset 0x70000-0x73fff: Marvell Gigabit Ethernet Controller
mvgbe0 at mvgbec0 port 0 irq 11
mvgbe0: Ethernet address 02:50:43:a7:8e:bf
makphy0 at mvgbe0 phy 0: Marvell 88E1318S Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
mvgbec1 at mvsoc0 unit 1 offset 0x74000-0x77fff: Marvell Gigabit Ethernet Controller
mvgbe at mvgbec1 port 0 not configured
mvpex0 at mvsoc0 unit 0 offset 0x40000-0x41fff irq 9: Marvell PCI Express Interface
pci0 at mvpex0
pci0: i/o space, memory space enabled
vendor 11ab product 6281 (miscellaneous memory, revision 0x03) at pci0 dev 0 function 0 not configured
mvsata0 at mvsoc0 unit 0 offset 0x80000-0x87fff irq 21: Marvell Serial-ATA Host Controller (SATAHC)
mvsata0: GenIIe, 1hc, 2port/hc
atabus0 at mvsata0 channel 0
atabus1 at mvsata0 channel 1
mvsdio0 at mvsoc0 unit 0 offset 0x90000-0x9ffff irq 28: Marvell Secure Digital Input/Output Interface
sdmmc0 at mvsdio0
timecounter: Timecounter "mvsoctmr0" frequency 200000000 Hz quality 100
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
WARNING: system needs entropy for security; see entropy(7)
uhub0 at usb0: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
sdmmc0: SD card status: 4-bit, C10, U1
ld0 at sdmmc0: <0x27:0x5048:SD32G:0x30:0x01e1ebf3:0x04d>
ld0: 29664 MB, 7533 cyl, 128 head, 63 sec, 512 bytes/sect x 60751872 sectors
ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
boot device: <unknown>
root device: ld0
dump device (default ld0b): 
file system (default generic): 
root on ld0a dumps on ld0b
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/evbarm/10.0/modules
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
mvgbe0: link state UP (was UNKNOWN)
mvgbe0: link state DOWN (was UP)
mvgbe0: link state UP (was DOWN)
pid 19798 (awk), uid 0: exited on signal 11 (core dumped)
data_abort_handler: data_aborts fsr=0x1 far=0x76
pid 12746 (awk), uid 0: exited on signal 10 (core dumped)
---

Note the similar awk(1) problem also happens on HPT5325
(that also has Marvell Kirkwood 88F6281).

>How-To-Repeat:
Install NetBSD/evbarm earmv5 on the SHEEVAPLUG and
'make package' in pkgsrc/pkgtools/cwrappers several times
(more than 20 times).

>Fix:
Smells cache issue, but no clue.

Note on NetBSD 8.0 days HPT5325 didn't have such random problems,
i.e. there was no particular issue on building binary packages
(except mvsata(4) interrupt stalls mentioned in PR/52419).

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index