Subject: port-alpha/23731: Alpha MP kernel crashes when configuring pkgsrc/databases/openldap
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/13/2003 19:08:42
>Number:         23731
>Category:       port-alpha
>Synopsis:       Alpha MP kernel crashes when configuring pkgsrc/databases/openldap
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 13 18:09:00 UTC 2003
>Originator:     Jarle Greipsland
>Release:        NetBSD 1.6ZG
System: NetBSD 1.6ZG NetBSD 1.6ZG (CS20.MP) #0: Sat Dec 13 18:18:48 CET 2003 alpha
Architecture: alpha
Machine: alpha

From a quite recent pkgsrc CVS tree, I tried to compile the
databases/openldap application.  My Alpha CS20 running a MP kernel crashed
during the configure stage of the openldap build.  The last message
output from the configure stage was something about 'linking with -lpthreads.'
The kernel panic message was:
panic: lockmgr: locking against myself
Stopped in pid 10329.2 (conftest) at    netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
db{1}> trace
cpu_Debugger() at netbsd:cpu_Debugger+0x4
panic() at netbsd:panic+0x1f8
lockmgr() at netbsd:lockmgr+0x358
prologue botch: displacement 96
frame size botch: adjust register offsets?
_kernel_proc_lock() at netbsd:_kernel_proc_lock+0x2c
_kernel_proc_lock() at netbsd:_kernel_proc_lock+0x2c
ddb_regp() at netbsd:__divqu+0x9dd6fa8
prologue botch: displacement 8192
prologue botch: displacement 16384
frame size botch: adjust register offsets?
prologue botch: displacement 24576
frame size botch: adjust register offsets?
frame size botch: adjust register offsets?
frame size botch: adjust register offsets?
frame size botch: adjust register offsets?
frame size botch: adjust register offsets?
frame size botch: adjust register offsets?
prologue botch: displacement 8192
frame size botch: adjust register offsets?
prologue botch: displacement 16384
frame size botch: adjust register offsets?
db{1}> mach cpu 0
CPU 0 not paused
db{1}> show reg
v0          0x6
t0          0xfffffc00005f4858  db_onpanic
t1          0x1
t2          0xfffffc003ff48000
t3          0
t4          0x1
t5          0xfffffc003ff48000
t6          0x1ad6
t7          0xfffffc0004f0aa10  ddb_regp+0x48bd5e8
s0          0x100
s1          0xfffffc00005f5860  msgbufenabled
s2          0x400000
s3          0xfffffc000cd906d0  ddb_regp+0xc7432a8
s4          0x1
s5          0xfffffffffffffffe
s6          0xfffffc00005a7dbe  lkm_cdevsw+0x31e
a0          0x6
a1          0xfffffd01fc0003fd
a2          0x5
a3          0x8
a4          0x3
a5          0x8
t8          0x1ffffedc8
t9          0xfffffc000056457c  cc_microtime+0x8c
t10         0x373df9a5592a
t11         0x31a9f3e6
ra          0xfffffc00004936f8  panic+0x1f8
t12         0xfffffc00005734a0  cpu_Debugger
at          0x1
gp          0xfffffc00005f4e88  ap_sess_list
sp          0xfffffe0024189d98
pc          0xfffffc00005734a4  cpu_Debugger+0x4
ps          0x6
ai          0x31a9f3e6
pv          0xfffffc00005734a0  cpu_Debugger
netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
db{1}> reboot c

cpu1: shutting down...

The active parts of the configuration file:

options         MULTIPROCESSOR          # include multiprocessor support
include         "arch/alpha/conf/std.alpha"
options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary
maxusers 32
options         DEC_6600        # EV6:          264DP OEM Board
options         KTRACE                  # System call tracing support
options         SYSTRACE                # System call vetting via systrace(1)
options         NTP                     # kernel PLL for NTP
options         DIAGNOSTIC              # Cheap kernel consistency checks
options         KMEMSTATS               # Collect kmem usage statistics
options         DDB                     # kernel debugger
makeoptions     DEBUG="-g"
file-system     FFS             # Fast file system
file-system     MFS             # Memory-based file system
file-system     LFS             # Log-structured file system
file-system     CD9660          # ISO-9660 CD-ROM FS (w/RockRidge extensions)
file-system     MSDOSFS         # MS-DOS-compatible file system
file-system     NFS             # Sun NFS-compatible file system client
file-system     NULLFS          # Null file system layer
file-system     KERNFS          # Kernel variable file system (/kern)
file-system     FDESC           # File descriptor file system (/dev/fd)
file-system     PORTAL          # Portal file system
file-system     UMAPFS          # User-mapping file system layer
file-system     PROCFS          # Process file system (/proc)
file-system     UNION           # union file system
options         QUOTA           # User and group quotas for the FFS
options         SOFTDEP         # FFS soft updates support.
options         NFSSERVER       # Sun NFS-compatible file system server
options         INET            # Internet protocol suite
options         INET6           # IPV6
options         PPP_BSDCOMP     # BSD-Compress compression support for PPP
options         PPP_DEFLATE     # Deflate compression support for PPP
options         PPP_FILTER      # Active filter support for PPP (requires bpf)
options         PFIL_HOOKS      # pfil(9) packet filter hooks
options         IPFILTER_LOG    # ipmon(8) log support
options         COMPAT_43
options         COMPAT_16
options         SYSVMSG
options         SYSVSEM
options         SYSVSHM
options         LKM
options         PCIVERBOSE              # recognize "unknown" PCI devices
options         MIIVERBOSE              # verbose PHY autoconfig messages
options         SCSIVERBOSE             # Verbose SCSI errors
options         FIX_UNALIGNED_VAX_FP    # fix unaligned VAX FP loads & stores
options         USERCONF                # userconf(4) support
options         NFS_BOOT_DHCP           # superset of BOOTP
options         WSEMUL_VT100
config          netbsd  root on ? type ?
mainbus0 at     root
cpu*    at      mainbus0
tsc*    at      mainbus0
tsp*    at      tsc?
pci*    at      ppb?
pci*    at      tsp?
fxp*    at      pci? dev ? function ?           # Intel EEPRO 10+/100B
esiop*  at      pci? dev ? function ?           # Symbios 53c875 SCSI and newer
pciide* at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver
aceride* at pci? dev ? function ?               # Acer Lab IDE controllers
ppb*    at      pci? dev ? function ?           # PCI-PCI Bridges
sio*    at      pci? dev ? function ?           # Intel PCI-ISA Bridges
inphy*  at mii? phy ?                   # Intel 82555 PHYs
isa*    at      sio?
mcclock* at     isa? port 0x70
pcppi*  at      isa?                            # PC prog. periph. interface
spkr0   at      pcppi?                          # IBM BASIC emulation
isabeep0 at     pcppi?                          # "keyboard" beep
com*    at      isa? port 0x3f8 irq 4           # standard serial ports
com*    at      isa? port 0x2f8 irq 3
lpt*    at      isa? port 0x3bc irq 7           # standard parallel port
scsibus* at     esiop?
sd*     at      scsibus? target ? lun ?         # SCSI disk drives
ses*    at      scsibus? target ? lun ?         # SCSI SES/SAF-TE
atabus* at ata?
wd*     at      atabus? drive ?
atapibus* at    atapi?
cd*     at      atapibus? drive ?               # ATAPI CD-ROM devices
pseudo-device   bpfilter        16
pseudo-device   cgd             4       # cryptographic disk devices
pseudo-device   ipfilter        1
pseudo-device   loop            1
pseudo-device   md              1
pseudo-device   ppp             4
pseudo-device   pty                     # pseudo-terminals
pseudo-device   tun             4
pseudo-device   vnd             4
pseudo-device   gre             2       # generic L3 over IP tunnel
pseudo-device   rnd                     # /dev/random and in-kernel generator
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   ksyms                   # /dev/ksyms

Try and compile databases/openldap on a Alpha MP system.