NetBSD Problem Report #54133

From www@netbsd.org  Sat Apr 20 18:05:23 2019
Return-Path: <www@netbsd.org>
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 1BC9F7A1E8
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Apr 2019 18:05:23 +0000 (UTC)
Message-Id: <20190420180521.81DA17A1EF@mollari.NetBSD.org>
Date: Sat, 20 Apr 2019 18:05:21 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Binaries fail to execute
X-Send-Pr-Version: www-1.0

>Number:         54133
>Category:       port-evbmips
>Synopsis:       Binaries fail to execute
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    christos
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 20 18:10:00 +0000 2019
>Closed-Date:    Mon May 06 19:10:05 +0000 2019
>Last-Modified:  Mon May 06 19:10:05 +0000 2019
>Originator:     Sevan Janiyan
>Release:        NetBSD-HEAD
>Organization:
>Environment:
>Description:
Binaries from currently available snapshots on nycdn for HEAD fail to execute. During the upgrade process, sysinst reports "Command ended on signal" errors and aborts (I was using an install kernel from 8.99.30)
e.g.
Status: Command ended on signal
Command: /etc/rc.d/random_seed stop
Hit enter to continue

On boot, the system crashes with "panic: init died (signal 0, exit 1)"

Configuration [Bonito,EL,NET,IDE]
Version: PMON2000 2.1 (Bonito) #5: 2010-08-31 08:00:54.
Supported loaders [txt, srec, elf, bin]
Supported filesystems [net, fat, fs, disk, iso9660, socket, tty, ram]
This software may be redistributed under the BSD copyright.
Copyright 2000-2002, Opsycon AB, Sweden.
Copyright 2006, Lemote Corp. Ltd., ICT CAS.
CPU Loongson2F @ 800.02 MHz / Bus @ 66.00 MHz
Memory size 1024 MB (256 MB Low memory, 768 MB High memory) .
Primary Instruction cache size 64kb (32 line, 4 way)
Primary Data cache size 64kb (32 line, 4 way)
Secondary cache size 512kb


file is not set or not exist!
file is not set or not exist!
The boot.cfg not existed!System will try default entry from al.
BEV1
BEV0
BEV in SR set to zero.
PMON> load (wd0,0)/netbsd
Loading file: (wd0,0)/netbsd (elf)
(elf)
0x80200000/8288240 + 0x809e77f0/192272(z) + 11084 syms/
Entry address is 80200000
PMON> g  
   zero      at       v0       v1       a0       a1       a2       a3   
 00000000 00000000 00000000 00000000 00000004 aff7fcf0 aff7fd04 800c7460
    t0       t1       t2       t3       t4       t5       t6       t7   
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    s0       s1       s2       s3       s4       s5       s6       s7   
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    t8       t9       k0       k1       gp       sp       s8       ra   
 00000000 00000000 00000000 00000000 00000000 aff7fcd0 00000000 80086c38
[   1.0000000] phys segment: 0x3f5e8000 @ 0x80a18000
[   1.0000000] adding 0x3f5e8000 @ 0x80a18000 to freelist 0
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 8.99.37 (LOONGSON) #0: Fri Apr 19 22:06:03 UTC 2019
[   1.0000000] 	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbmips/compile/LOONGSON
[   1.0000000] Lemote Fuloong
[   1.0000000] total memory = 1024 MB
[   1.0000000] avail memory = 1005 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: 800.02MHz (hz cycles = 4000100, delay divisor = 400)
[   1.0000000] cpu0: ICT Loongson 2F CPU (0x6303) Rev. 0.3 with MIPS R4010 FPC Rev. 0.1
[   1.0000000] cpu0: 64 TLB entries, 1TB (40-bit) VAs, 1TB (40-bit) PAs, 16MB max page size
[   1.0000000] cpu0: 64KB/32B 4-way set-associative L1 instruction cache
[   1.0000000] cpu0: 64KB/32B 4-way set-associative write-back L1 data cache
[   1.0000000] cpu0: 512KB/32B 4-way set-associative write-back L2 unified cache
[   1.0000000] bonito0 at mainbus0: Memory and PCI-X controller, rev. 1
[   1.0000000] pci0 at bonito0 bus 0
[   1.0000000] re0 at pci0 dev 6 function 0: RealTek 8169/8110 Gigabit Ethernet (rev. 0x10)
[   1.0000000] re0: interrupting at pci inta
[   1.0000000] re0: Ethernet address 00:23:9e:
[   1.0000000] rgephy0 at re0 phy 7: RTL8211B 1000BASE-T media interface
[   1.0000000] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[   1.0000000] sisfb0 at pci0 dev 8 function 0: vendor 1039 product 0325 (rev. 0x00)
[   1.0000000] sisfb0: : 640x400x8 frame buffer
[   1.0000000] wsdisplay0 at sisfb0 kbdmux 1
[   1.0000000] gcscpcib0 at pci0 dev 14 function 0: vendor 1022 product 2090 (rev. 0x03)
[   1.0000030] gcscpcib0: GPIO
[   1.0000030] gpio0 at gcscpcib0: 32 pins
[   1.0000030] viaide0 at pci0 dev 14 function 2: AMD CS5536 IDE Controller (rev. 0x01)
[   1.0000030] viaide0: primary channel interrupting at isa irq 14
[   1.0000030] atabus0 at viaide0 channel 0
[   1.0000030] viaide0: secondary channel ignored (disabled)
[   1.0000030] gcscaudio0 at pci0 dev 14 function 3: AMD Geode CS5536 Audio
[   1.0000030] gcscaudio0: interrupting at isa irq 9
[   1.0000030] gcscaudio0: ac97: Avance Logic ALC655 codec; no 3D stereo
[   1.0000030] gcscaudio0: ac97: ext id 0x9c4<AC97_23,LDAC,SDAC,CDAC,SPDIF>
[   1.0000030] audio0 at gcscaudio0: full duplex, playback, capture, mmap, independent
[   1.0000030] gcscaudio0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000
[   1.0000030] gcscaudio0: Latency: 256 milliseconds
[   1.0000030] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000030] wsbell at spkr0 not configured
[   1.0000030] ohci0 at pci0 dev 14 function 4: vendor 1022 product 2094 (rev. 0x02)
[   1.0000030] ohci0: interrupting at isa irq 11
[   1.0000030] ohci0: OHCI version 1.0, legacy support
[   1.0000030] usb0 at ohci0: USB revision 1.0
[   1.0000030] ehci0 at pci0 dev 14 function 5: vendor 1022 product 2095 (rev. 0x02)
[   1.0000030] ehci0: interrupting at isa irq 11
[   1.0000030] ehci0: 1 companion controller, 4 ports: ohci0
[   1.0000030] usb1 at ehci0: USB revision 2.0
[   1.0000030] isa0 at gcscpcib0
[   1.0000030] com0 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
[   1.0000030] com0: console
[   1.0000030] com1 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
[   1.0000030] mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
[   4.5010005] wd0 at atabus0 drive 0
[   4.5310021] wd0: <Hitachi HTS543232A7A384>
[   4.5447605] wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
[   4.5528180] uhub0 at usb0: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   4.5621029] uhub1 at usb1: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   5.2909928] boot device: wd0
[   5.7109881] root on wd0a dumps on wd0b
[   5.7609885] root file system type: ffs
[   5.7609885] kern.module.path=/stand/evbmips/8.99.37/modules
[   6.0709860] Process (pid 1) got sig 6
[   6.0709860] Process (pid 1) got sig 6
[   6.0836008] panic: init died (signal 0, exit 1)
[   6.0836008] cpu0: Begin traceback...
[   6.0916524] pid -2127430672 not found
[   6.0916524] cpu0: End traceback...
[   6.0916524] kernel: breakpoint trap
Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        lui     at,0xcff
f
db>  bt
0x980000008131fc10: cpu_Debugger+4 (0,ff00,0,ffffffff808f6da0) ra ffffffff805e16
38 sz 0
0x980000008131fc10: vpanic+158 (0,ff00,0,ffffffff808f6da0) ra ffffffff805e16dc s
z 64
0x980000008131fc50: panic+34 (0,0,1,ffffffff807f0000) ra ffffffff8057f408 sz 96
0x980000008131fcb0: exit1+4c0 (0,0,1,ffffffff807f0000) ra ffffffff8057f9a0 sz 19
2
0x980000008131fd70: sys_exit+48 (0,0,1,ffffffff807f0000) ra ffffffff80362f88 sz 3
2
0x980000008131fd90: netbsd32_exit+18 (0,0,1,ffffffff807f0000) ra ffffffff8030d85
0 sz 32
0x980000008131fdb0: syscall+170 (0,0,1,ffffffff807f0000) ra ffffffff80300654 sz 2
40
0x980000008131fea0: loongson2_systemcall+f4 (0,0,1,ffffffff807f0000) ra 785cdeb4
 sz 0
PC 0x785cdeb4: not in kernel space
0x980000008131fea0: 0+785cdeb4 (0,0,1,ffffffff807f0000) ra 0 sz 0
User-level: pid 1.1
db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
1    >   1 7   0         0   98000000bf8884e0               init
0       44 3   0       200   98000000bf889ac0           aiodoned aiodoned
0       43 3   0       200   98000000bf889660            ioflush syncer
0       42 3   0       200   98000000bf889200           pgdaemon pgdaemon
0       41 5   0       200   98000000bf888da0           (zombie)
0       39 3   0       200   98000000bf931640               usb1 usbevt
0       38 3   0       200   98000000bf933940               usb0 usbevt
0       37 3   0       200   98000000bf888940            npfgc-0 npfgccv
0       36 3   0       200   98000000bf888080            rt_free rt_free
0       35 3   0       200   98000000bf931f00              unpgc unpgc
0       34 3   0       200   98000000bf932360    icmp6_wqinput/0 icmp6_wqinput
0       33 3   0       200   98000000bf9327c0          nd6_timer nd6_timer
0       32 3   0       200   98000000bf932c20     icmp_wqinput/0 icmp_wqinput
0       31 3   0       200   98000000bf933080           rt_timer rt_timer
0       30 3   0       200   98000000bf9334e0        vmem_rehash vmem_rehash
0       20 3   0       200   98000000bf9311e0         usbtask-dr usbtsk
0       19 3   0       200   98000000bf930d80         usbtask-hc usbtsk
0       18 3   0       280   98000000bf930920           audiomix play
0       17 3   0       280   98000000bf9304c0           audiorec record
0       16 3   0       200   98000000bf930060            atabus0 atath
0       15 3   0       200   98000000bfecb920             sysmon smtaskq
0       14 3   0       200   98000000bfecb4c0         pmfsuspend pmfsuspend
0       13 3   0       200   98000000bfecb060           pmfevent pmfevent
0       12 3   0       200   98000000bfecac00         sopendfree sopendfr
0       11 3   0       200   98000000bfeca7a0           nfssilly nfssilly
0       10 3   0       200   98000000bfeca340            cachegc cachegc
0        9 3   0       200   98000000bfec9ee0             vdrain vdrain
0        8 3   0       200   98000000bfec9a80          modunload mod_unld
0        7 3   0       200   98000000bfec9620            xcall/0 xcall
0        6 1   0       200   98000000bfec91c0          softser/0
0        5 1   0       200   98000000bfec8d60          softclk/0
0        4 1   0       200   98000000bfec8900          softbio/0
0        3 1   0       200   98000000bfec84a0          softnet/0
0        2 1   0       201   98000000bfec8040             idle/0
0        1 3   0       200   ffffffff8090ac80            swapper uvm

>How-To-Repeat:
Boot a current DAILY build on evbmips64-el
>Fix:

>Release-Note:

>Audit-Trail:
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-evbmips/54133: Binaries fail to execute
Date: Sun, 5 May 2019 18:58:18 +0100

 Same on sgimips
 Upon completing an upgrade, sysinst attempted to execute
 /sbin/postinstall which returned
 <jemalloc>: Unsupported system page size'

 rebooted the system and it crashed on trying to execute init.

 [  11.7031153] kern.module.path=/stand/sgimips/8.99.37/modules
 [  12.0705677] panic: init died (signal 0, exit 1)
 [  12.1307297] cpu0: Begin traceback...
 [  12.1757611] pid -2133819968 not found
 [  12.2197443] cpu0: End traceback...
 [  12.2605912] kernel: breakpoint trap
 Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        jr      ra
                 bdslot: nop
 db> bt
 0x80d07de8: cpu_Debugger+4 (0,ff00,0,8076e640) ra 804cb240 sz 0
 0x80d07de8: vpanic+158 (0,ff00,0,8076e640) ra 804cb2d4 sz 48
 0x80d07e18: panic+24 (0,0,1,7dde3584) ra 80480044 sz 32
 0x80d07e38: exit1+58c (0,0,1,7dde3584) ra 80480288 sz 128
 0x80d07eb8: sys_exit+48 (0,0,1,7dde3584) ra 8007b7d4 sz 32
 0x80d07ed8: syscall+134 (0,0,1,7dde3584) ra 80071fc0 sz 112
 0x80d07f48: mips3_systemcall+e0 (0,0,1,7dde3584) ra 7dde3584 sz 0
 PC 0x7dde3584: not in kernel space
 0x80d07f48: 0+7dde3584 (0,0,1,7dde3584) ra 0 sz 0
 User-level: pid 1.1

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54133 CVS commit: src/sys/arch/mips/include
Date: Sun, 5 May 2019 14:13:16 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sun May  5 18:13:16 UTC 2019

 Modified Files:
 	src/sys/arch/mips/include: vmparam.h

 Log Message:
 PR/54133: Sevan Janiyan: Binaries fail to execute
 Define M{IN,AX}_PAGE_SHIFT to cover all page possibilities


 To generate a diff of this commit:
 cvs rdiff -u -r1.61 -r1.62 src/sys/arch/mips/include/vmparam.h

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

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54133 CVS commit: src/external/bsd/jemalloc/include/jemalloc/internal
Date: Sun, 5 May 2019 14:14:19 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sun May  5 18:14:19 UTC 2019

 Modified Files:
 	src/external/bsd/jemalloc/include/jemalloc/internal:
 	    jemalloc_internal_defs.h

 Log Message:
 PR/54133: Sevan Janiyan: Binaries fail to execute
 Prefer MAX_PAGE_SHIFT over PAGE_SHIFT


 To generate a diff of this commit:
 cvs rdiff -u -r1.8 -r1.9 \
     src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h

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

Responsible-Changed-From-To: port-evbmips-maintainer->christos
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Mon, 06 May 2019 19:10:05 +0000
Responsible-Changed-Why:


State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Mon, 06 May 2019 19:10:05 +0000
State-Changed-Why:
Christos fixed it.


>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.