Subject: function "pthread__mutex_lock2"
To: None <current-users@netbsd.org>
From: Kenneth Freidank <kennethcf@earthlink.net>
List: current-users
Date: 10/03/2007 02:03:45
I just compiled the package bouml-2.27 under BSD 4.99.31 and I got this 
error when trying to open a file from within the bouml application.

t5048$ bouml &
[1] 3749
[2] - Abort                bouml  (core dumped)
t5048$ assertion "mp->type == PTHREAD_MUTEX_NORMAL" failed: file 
"/usr/src/lib/libpthread/pthread_mutex2.c", line 209, function 
"pthread__mutex_lock2"

This same package built and ran fine under 4.99.19.  Before I start 
digging in, would anyone have any ideas on why this would stop working 
between BSD 4.99.19 and 4.99.31 ?

Not sure what help this will provided, but here is my dmesg.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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 4.99.31 (T5048) #0: Tue Oct  2 00:43:25 EST 2007
    solomon@t5048:/usr/obj/sys/arch/i386/compile/T5048
total memory = 445 MB
rbus: rbus_min_start set to 0x40000000
avail memory = 426 MB
timecounter: Timecounters tick every 10.000 msec
RTC BIOS diagnostic error 80<clock_battery>
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: Intel (686-class), 3000.29 MHz, id 0xf4a
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 649d<SSE3,MONITOR,DS-CPL,EST,CID,xTPR>
cpu0: features3 20100000<XD,EM64T>
cpu0: "Intel(R) Pentium(R) 4 CPU 3.00GHz"
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: using thermal monitor 1
cpu0: calibrating local timer
cpu0: apic clock running at 200 MHz
cpu0: 64 page colors
cpu1 at mainbus0 apid 1: (application processor)
cpu1: not started
ioapic0 at mainbus0 apid 4
ioapic0: pa 0xfec00000, version 21, 24 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 4
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <INTEL ,D11020M ,0000043f>, AslId <MSFT,01000013>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 32-bit timer
mpacpi: could not get bus number, assuming bus 0
CPU0 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU1 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU2 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU3 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PCI0 (PNP0A08) [PCI Express/PCI-X Mode-2 Host Bridge] at acpi0 not 
configured
DMAC (PNP0200) [AT DMA Controller] at acpi0 not configured
npx1 at acpi0 (COPR, PNP0C04)
npx1: io 0xf0-0xfe irq 13
npx1: reported by CPUID; using exception 16
PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
RTC (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
attimer1 at acpi0 (TMR, PNP0100): AT Timer
attimer1: io 0x40-0x43
pckbc1 at acpi0 (KBC0, PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, PNP0F13): aux port
pckbc2: irq 12
SYSR (PNP0C02) [Plug and Play motherboard register resources] at acpi0 
not configured
MEM (PNP0C01) [System Board] at acpi0 not configured
lpt3 at acpi0 (ECP1, PNP0401)
lpt3: io 0x378-0x37f,0x778-0x77b irq 7 drq 4
com3 at acpi0 (UAR1, PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com3: ns16550a, working fifo
apm0 at acpi0: Power Management spec V1.2
pcppi1: attached to attimer1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: ATI Technologies product 0x5a33 (rev. 0x01)
ppb0 at pci0 dev 1 function 0: ATI Technologies RS480 PCI Express Bridge 
(rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies product 0x5a61 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
direct rendering for vga1 unsupported
ixpide0 at pci0 dev 17 function 0
ixpide0: ATI Technologies IXP IDE Controller (rev. 0x80)
ixpide0: bus-master DMA support present
ixpide0: primary channel configured to native-PCI mode
ixpide0: using ioapic0 pin 23 (irq 10) for native-PCI interrupt
atabus0 at ixpide0 channel 0
ixpide0: secondary channel configured to native-PCI mode
atabus1 at ixpide0 channel 1
ixpide1 at pci0 dev 18 function 0
ixpide1: ATI Technologies IXP IDE Controller (rev. 0x80)
ixpide1: bus-master DMA support present
ixpide1: primary channel configured to native-PCI mode
ixpide1: using ioapic0 pin 22 (irq 9) for native-PCI interrupt
atabus2 at ixpide1 channel 0
ixpide1: secondary channel configured to native-PCI mode
atabus3 at ixpide1 channel 1
ohci0 at pci0 dev 19 function 0: ATI Technologies SB400 USB Host 
Controller (rev. 0x80)
ohci0: can't map mem space
ohci1 at pci0 dev 19 function 1: ATI Technologies SB400 USB Host 
Controller (rev. 0x80)
ohci1: can't map mem space
ehci0 at pci0 dev 19 function 2: ATI Technologies SB400 USB2 Host 
Controller (rev. 0x80)
ehci0: can't map memory space
piixpm0 at pci0 dev 20 function 0
piixpm0: ATI Technologies SB400 SMBus Controller (rev. 0x81)
piixpm0: interrupting at SMI
iic0 at piixpm0: I2C bus
ixpide2 at pci0 dev 20 function 1
ixpide2: ATI Technologies IXP IDE Controller (rev. 0x80)
ixpide2: bus-master DMA support present
ixpide2: primary channel configured to compatibility mode
ixpide2: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus4 at ixpide2 channel 0
ixpide2: secondary channel configured to compatibility mode
ixpide2: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus5 at ixpide2 channel 1
azalia0 at pci0 dev 20 function 2: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 16 (irq 11)
azalia0: host: 0x1002/0x437b (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
pcib0 at pci0 dev 20 function 3
pcib0: ATI Technologies SB400 PCI-ISA Bridge (rev. 0x80)
ppb1 at pci0 dev 20 function 4: ATI Technologies SB400 PCI-PCI Bridge 
(rev. 0x80)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
rtk0 at pci2 dev 2 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
rtk0: interrupting at ioapic0 pin 21 (irq 11)
rtk0: Ethernet address 00:19:d1:16:5f:fb
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Conexant Systems product 0x2f40 (miscellaneous communications) at pci2 
dev 4 function 0 not configured
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[3]: Realtek ALC883 (rev. 0.2)
azalia0: codec[3]: High Definition Audio rev. 1.0
azalia0: playback: max channels=8, encodings=1<PCM>
azalia0: playback: PCM 
formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz>
azalia0: recording: max channels=4, encodings=1<PCM>
azalia0: recording: PCM formats=60160<20bit,16bit,96kHz,48kHz,44.1kHz>
audio0 at azalia0: full duplex, independent
Kernelized RAIDframe activated
wd0 at atabus4 drive 0: <Hitachi HDS721616PLAT80>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1 at atabus4 drive 1: <WDC WD2500JB-00REA0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(ixpide2:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1(ixpide2:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus5: 2 targets
cd0 at atapibus0 drive 0: <TSSTcorpCD/DVDW TS-H652D, , GA01> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(ixpide2:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
set{u,g}id pid 8237 (gnome-pty-helper) was invoked by uid 1000 ppid 8014 
(Terminal) with fd 2 closed
set{u,g}id pid 1638 (gnome-pty-helper) was invoked by uid 1000 ppid 
11431 (Terminal) with fd 2 closed
set{u,g}id pid 27770 (gnome-pty-helper) was invoked by uid 1000 ppid 
17816 (Terminal) with fd 2 closed
set{u,g}id pid 18852 (gnome-pty-helper) was invoked by uid 1000 ppid 
29668 (Terminal) with fd 2 closed
set{u,g}id pid 18486 (gnome-pty-helper) was invoked by uid 1000 ppid 
16100 (Terminal) with fd 2 closed
set{u,g}id pid 11844 (gnome-pty-helper) was invoked by uid 1000 ppid 
15656 (Terminal) with fd 2 closed
set{u,g}id pid 10629 (gnome-pty-helper) was invoked by uid 1000 ppid 
6229 (Terminal) with fd 2 closed
set{u,g}id pid 1904 (gnome-pty-helper) was invoked by uid 1000 ppid 
11397 (Terminal) with fd 2 closed
set{u,g}id pid 29738 (gnome-pty-helper) was invoked by uid 1000 ppid 
2051 (Terminal) with fd 2 closed
set{u,g}id pid 17803 (gnome-pty-helper) was invoked by uid 1000 ppid 
24910 (Terminal) with fd 2 closed
set{u,g}id pid 423 (gnome-pty-helper) was invoked by uid 1000 ppid 9319 
(Terminal) with fd 2 closed
set{u,g}id pid 7148 (gnome-pty-helper) was invoked by uid 1000 ppid 2377 
(Terminal) with fd 2 closed