From owner-freebsd-current Thu Feb 6 7:19:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F28137B401 for ; Thu, 6 Feb 2003 07:19:22 -0800 (PST) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12DFE43FBD for ; Thu, 6 Feb 2003 07:19:21 -0800 (PST) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (goldjy3ptoruuood@dsl-135-123.aei.ca [66.36.135.123]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h16FJDS01392 for ; Thu, 6 Feb 2003 10:19:13 -0500 (EST) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 853F0E4 for ; Thu, 6 Feb 2003 10:19:12 -0500 (EST) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Thu, 6 Feb 2003 10:19:12 -0500 Date: Thu, 6 Feb 2003 10:19:12 -0500 From: The Anarcat To: freebsd-current@freebsd.org Subject: xmms looping forever Message-ID: <20030206151912.GA809@lenny.anarcat.ath.cx> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I recently upgraded my machine from 4.7-stable to 5.0-release. The upgrade went almost smoothly. I say almost because so many things changed between 4.x and -current that I missed a few. :) But overall, I'm quite happy with the results. I had problems with almost all my apps, at first. Third part applications that weren't recompiled during the buildworld (ports) had linking problems. Take wget, for example: anarcat@lenny[~]% wget /usr/libexec/ld-elf.so.1: /usr/local/lib/libintl.so.4: Undefined symbol "st= pcpy" anarcat@lenny[~]%=20 Recopmiling wget solves the problem. Some folks pointed out to me this might be due to the fact I forgot to include COMPAT4X=3Dyes in my make.conf. At first I had considered upgrading from -release to -current (because I'm a careless freak), so I already had my /usr/src cvsup'd to yesterday's current. So I builded world over that and installed it. Of course, that didn't solve the linking problem. But it made another problem appear. My dear user-friendly xmms now fails to start. This machine is used by the whole family here and I got really embarrassed over this. :) xmms seemed to pop an empty window, and sucked all the CPU time available on my AMD Druon 1GHz: CPU states: 14.4% user, 0.0% nice, 84.4% system, 1.2% interrupt, 0.0% id= le Mem: 116M Active, 56M Inact, 92M Wired, 600K Cache, 92M Buf, 862M Free Swap: 498M Total, 1452K Used, 496M Free =2E.. 891 anarcat 115 0 15820K 7060K RUN 0:05 82.69% 18.31% xmms =2E.. So I told my self, "eh, that's -current for you!" ;) And I thought that -release wasn't so bad after all and that the upgrade didn't give me anything good anyways. So I downgraded to -release. Without success. xmms hangs as before. But it used to work on -release!!! How is that possible? Using SIGINFO, I've witnessed the following: load: 1.12 cmd: xmms 9744 [*Giant] 0.33u 0.85s 1% 7144k load: 1.19 cmd: xmms 9744 [*Giant] 0.41u 1.06s 1% 7144k load: 1.19 cmd: xmms 9744 [running] 0.41u 1.09s 1% 7144k load: 1.19 cmd: xmms 9744 [*Giant] 0.41u 1.12s 1% 7144k load: 1.19 cmd: xmms 9744 [running] 0.41u 1.14s 1% 7144k But I'm able to see this only when it system is loaded (with the compilation of a port, for example). So I suspect xmms is somehow looping over the giant lock, for some reason. truss gives me the following: sigprocmask(0x3,0x28144710,0x0) =3D 0 (0x0) SIGNAL 27 SIGNAL 27 gettimeofday(0x281678b8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28167924,0x0) =3D 0 (0x0) sigreturn(0xbfbff4a0) =3D 0 (0x0) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) And ktrace: 26035 xmms CALL mmap(0,0x4788,0x3,0x1000,0xffffffff,0,0,0) 26035 xmms RET mmap 686489600/0x28eb0000 26035 xmms CALL munmap(0x28eb0000,0x4788) 26035 xmms RET munmap 0 26035 xmms CALL mprotect(0x28e3c000,0x62000,0x5) 26035 xmms RET mprotect 0 26035 xmms CALL sigprocmask(0x3,0x28144710,0) 26035 xmms RET sigprocmask 0 26035 xmms PSIG SIGPROF caught handler=3D0x28159510 mask=3D0x0 code= =3D0x0 26035 xmms CALL gettimeofday(0x281678b8,0) 26035 xmms RET gettimeofday 0 26035 xmms CALL sigprocmask(0x3,0x28167924,0) 26035 xmms RET sigprocmask 0 26035 xmms CALL sigreturn(0xbfbff4a0) 26035 xmms RET sigreturn JUSTRETURN 26035 xmms PSIG SIGSEGV caught handler=3D0x28159510 mask=3D0x0 code= =3D0xc 26035 xmms CALL sigreturn(0xbfbff330) 26035 xmms RET sigreturn JUSTRETURN 26035 xmms PSIG SIGSEGV caught handler=3D0x28159510 mask=3D0x0 code= =3D0xc I include my dmesg at the end of this mail, in the meantime, here are the pcm sysctls that might be relevant: root@lenny[/usr/home/anarcat]# sysctl hw.snd = =20 hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 2 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 1 I also tried: root@lenny[/usr/home/anarcat]# sysctl hw.snd =20 hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 0 I had odd crashes with xmms before, but *crashes*, no hangs. :) I am available for testing and debugging, and I am eager to solve this problem, since xmms is a must here, right now. I'd be forced to downgrade to 4.7-stable (!) but I feel I'll have the same results. :) A. Copyright (c) 1992-2003 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.0-RELEASE #2: Wed Feb 5 22:17:29 EST 2003 anarcat@lenny.anarcat.ath.cx:/usr/obj/usr/src/sys/LENNY Preloaded elf kernel "/boot/kernel/kernel" at 0xc05e9000. Preloaded elf module "/boot/kernel/linux.ko" at 0xc05e90a8. Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc05e9154. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc05e9204. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05e92b0. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1008993741 Hz CPU: AMD Duron(tm) Processor (1008.99-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x670 Stepping =3D 0 Features=3D0x383f9ff AMD Features=3D0xffffffffc0440000 real memory =3D 1207877632 (1151 MB) avail memory =3D 1167839232 (1113 MB) Initializing GEOMetry subsystem netsmb_dev: loaded Pentium Pro MTRR support enabled VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc04c3e82 (1000022) VESA: ATI RADEON III npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 Using $PIR table, 9 entries at 0xc00f1750 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe6000000-0xe7f= fffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: port 0xd800-0xd8ff mem 0xd7000000-0xd700ffff= ,0xd8000000-0xdfffffff irq 11 at device 0.0 on pci1 info: [drm] AGP at 0xe6000000 32MB info: [drm] Initialized radeon 1.1.1 20010405 on minor 0 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 4.1 on= pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xb400-0xb41f irq 9 at device 4.2 o= n pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb000-0xb01f irq 9 at device 4.3 o= n pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viapropm0: SMBus I/O base at 0xe800 viapropm0: port 0xe800-0xe80f at devi= ce 4.4 on pci0 viapropm0: SMBus revision code 0x40 smb0: on smbus0 vr0: port 0x9400-0x94ff mem 0xd6800000-0= xd68000ff irq 9 at device 9.0 on pci0 vr0: Ethernet address: 00:50:ba:64:e3:6a miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcm0: port 0x9000-0x901f irq 5 at device 10.0 on pci0 atapci1: port 0x7000-0x703f,0x7400-0x7403,0x780= 0-0x7807,0x8000-0x8003,0x8400-0x8407 mem 0xd6000000-0xd601ffff irq 10 at de= vice 17.0 on pci0 ata2: at 0x8400 on atapci1 ata3: at 0x7800 on atapci1 speaker0 port 0x61 on acpi0 fdc0: port 0x3f7,0x= 3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0 port 0x778-0x77b,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 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 orm0: