mplayer hangs in pcmsyn

Ronald Klop ronald-freebsd8 at
Sun Oct 10 11:27:54 PDT 2004


Often mplayer hangs at the end of playing an mp3-song. Top displays STATE  
The output of truss mplayer ends with this:
ioctl(6,SNDCTL_DSP_GETODELAY,0xbfbfcd08)         = 0 (0x0)
write(1,0x864e000,27)0%                          = 27 (0x1b)
select(4,{0 3},0x0,0x0,{0 0})                    = 0 (0x0)
ioctl(6,SNDCTL_DSP_GETOSPACE,0x85637c0)          = 0 (0x0)
nanosleep({0 10000000})                          = 0 (0x0)
ioctl(6,SNDCTL_DSP_GETOSPACE,0x85637c0)          = 0 (0x0)
gettimeofday({1097330522 533449},0xbfbfcd00)     = 0 (0x0)
gettimeofday({1097330522 535651},0xbfbfcd00)     = 0 (0x0)
write(6,0x882b000,0)                             = 0 (0x0)
ioctl(6,SNDCTL_DSP_GETODELAY,0xbfbfcd08)         = 0 (0x0)
write(1,0x864e000,27)0%                          = 27 (0x1b)
select(4,{0 3},0x0,0x0,{0 0})                    = 0 (0x0)

write(1,0x864e000,1)                             = 1 (0x1)
break(0x883b000)                                 = 0 (0x0)
break(0x8829000)                                 = 0 (0x0)
kill(0x166d,0x9)                                 = 0 (0x0)
wait4(0x166d,0x0,0x0,0x0)                        = 5741 (0x166d)
munmap(0x28c66000,0x200000)                      = 0 (0x0)
munmap(0x28c65000,0x40)                          = 0 (0x0)
close(5)                                         = 0 (0x0)
ioctl(0,TIOCSETA,0x8594f80)                      = 0 (0x0)

Some info about my system is below. I'm running without invariants and  

more /var/run/dmesg.boot
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 5.3-BETA7 #30: Wed Oct  6 22:19:08 CEST 2004
     root at
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (497.84-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
real memory  = 402653184 (384 MB)
avail memory = 388509696 (370 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <COMPAQ CPQB053> on motherboard
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0
cpu0: <ACPI CPU (2 Cx states)> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x2000-0x201f mem  
f,0x40200000-0x40200fff irq 11 at device 10.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:50:8b:a3:d9:44
pcm0: <Creative EMU10K1> port 0x2060-0x207f irq 11 at device 14.0 on pci0
pcm0: <TriTech TR28602 AC97 Codec>
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port  
3f6,0x1f0-0x1f7 at device 20.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2020-0x203f irq 11  
at de
vice 20.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0xfc00-0xfc0f irq  
9 at
device 20.3 on pci0
intpm0: I/O mapped fc00
intpm0: intr IRQ 9 enabled revision 0
intpm0: [GIANT-LOCKED]
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus0
intpm0: PM I/O mapped f800
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
ppc0 port 0x778-0x77d,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
fdc0: <floppy drive controller> port 0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <ISA Option ROMs> at iomem 0xe0000-0xe7fff,0xc0000-0xc7fff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 497838405 Hz quality 800
Timecounters tick every 4.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding disabled, default  
to ac
cept, logging unlimited
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 9541MB <Maxtor 91024U3/RA530JN0> [19386/16/63] at ata0-master UDMA33
acd0: CDROM <Compaq CRN-8241B/2.15> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a

cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Creative EMU10K1> at io 0x2060 irq 11 kld snd_emu10k1 (4p/2r/4v  
channels duplex default)

Id Refs Address    Size     Name
  1   20 0xc0400000 2a19e8   kernel
  2    1 0xc06a2000 9970     cd9660.ko
  3    1 0xc06ac000 ea68     msdosfs.ko
  4    1 0xc06bb000 7494     snd_emu10k1.ko
  5    2 0xc06c3000 1d4fc    sound.ko
  6    1 0xc06e1000 5bcc     g_md.ko
  7    1 0xc06e7000 1a1c     mem.ko
  8    1 0xc06e9000 1bcc     io.ko
  9   14 0xc06eb000 536dc    acpi.ko
10    2 0xc15b3000 5000     procfs.ko
11    1 0xc15c6000 5000     linprocfs.ko
12    1 0xc15cb000 17000    linux.ko
13    1 0xc1682000 2c000    nfsclient.ko
14    1 0xc16e2000 1e000    nfsserver.ko

  Ronald Klop
  Amsterdam, The Netherlands

More information about the freebsd-current mailing list