From nobody@FreeBSD.org  Tue Oct 31 13:47:21 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4DBAB16A412
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Oct 2006 13:47:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D66F943D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Oct 2006 13:47:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9VDlKem072156
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Oct 2006 13:47:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9VDlKj2072155;
	Tue, 31 Oct 2006 13:47:20 GMT
	(envelope-from nobody)
Message-Id: <200610311347.k9VDlKj2072155@www.freebsd.org>
Date: Tue, 31 Oct 2006 13:47:20 GMT
From: Kyryll A Mirnenko<mirya@zoc.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: skype hangs up on 6.2-PRERELEASE
X-Send-Pr-Version: www-3.0

>Number:         104966
>Category:       kern
>Synopsis:       skype hangs in uninterruptable state on 6.2-PRERELEASE (regression)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 31 13:50:23 GMT 2006
>Closed-Date:    Fri Nov 16 10:03:46 UTC 2007
>Last-Modified:  Fri Nov 16 10:03:46 UTC 2007
>Originator:     Kyryll A Mirnenko
>Release:        6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD workbox2 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Sat Oct 14 19:12:29 EEST 2006     mirya@miryanote:/usr/src/sys/i386/compile/MY-LITE  i386
>Description:
I've got running KDE and start skype (linux version, from ports), then try
to login. The skype hangs up and and makes some processed do the same. As
`top` reports "skype_bin" process is in "exit1" state, while some processes
(those hang up) are in "zoneli" state. _Some_ apps being run after the issue
also joins the lock (`screen` is the one), neither of 'em responds to -KILL,
though rebooting system doesn't report any unkillable processes.

The issue was tested with 2 machines, one running BETA2 + a couple of days
RELENG_6 snapshot, other running 2 days old RELENG_6.
>How-To-Repeat:
Run recent RELENG_6, start skype and log in.
>Fix:

>Release-Note:
>Audit-Trail:

From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: misc/104966: skype hangs up on 6.2-PRERELEASE
Date: Tue, 31 Oct 2006 17:10:25 +0200

 Here comes my kernel:
 
 machine		i386
 cpu		I686_CPU
 ident		MY-LITE
 
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	PREEMPTION		# Enable kernel thread preemption
 options 	INET			# InterNETworking
 options 	FFS			# Berkeley Fast Filesystem
 options 	SOFTUPDATES		# Enable FFS soft updates support
 options 	UFS_ACL			# Support for access control lists
 options 	UFS_DIRHASH		# Improve performance on big directories
 options 	NFSCLIENT		# Network Filesystem Client
 options 	NFSSERVER		# Network Filesystem Server
 options 	MSDOSFS			# MSDOS Filesystem
 options 	CD9660			# ISO 9660 Filesystem
 options 	PROCFS			# Process filesystem (requires PSEUDOFS)
 options 	PSEUDOFS		# Pseudo-filesystem framework
 options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
 options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
 options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
 options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
 options 	SYSVSHM			# SYSV-style shared memory
 options 	SYSVMSG			# SYSV-style message queues
 options 	SYSVSEM			# SYSV-style semaphores
 options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
 options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
 options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.
 
 device		apic			# I/O APIC
 
 device		eisa
 device		pci
 
 device		ata
 device		atadisk		# ATA disk drives
 device		atapicd		# ATAPI CDROM drives
 options 	ATA_STATIC_ID	# Static device numbering
 
 device		scbus		# SCSI bus (required for SCSI)
 device		da		# Direct Access (disks)
 device		cd		# CD
 device		pass		# Passthrough device (direct SCSI access)
 
 device		atkbdc		# AT keyboard controller
 device		atkbd		# AT keyboard
 device		psm		# PS/2 mouse
 
 device		vga		# VGA video card driver
 
 device		splash		# Splash screen and screen saver support
 
 device		sc
 
 device		agp		# support several AGP chipsets
 
 # Power management support (see NOTES for more options)
 #device		apm
 # Add suspend/resume support for the i8254.
 device		pmtimer
 
 device		cbb		# cardbus (yenta) bridge
 device		pccard		# PC Card (16-bit) bus
 device		cardbus		# CardBus (32-bit) bus
 
 device		sio		# 8250, 16[45]50 based serial ports
 
 # Parallel port
 #device		ppc
 #device		ppbus		# Parallel port bus (required)
 #device		lpt		# Printer
 #device		ppi		# Parallel port interface device
 
 device		miibus		# MII bus support
 device		rl		# RealTek 8129/8139
 
 device		wlan		# 802.11 support
 device		firmware
 device		iwi
 
 device		loop		# Network loopback
 device		random		# Entropy device
 device		ether		# Ethernet support
 device		ppp		# Kernel PPP
 device		tun		# Packet tunnel.
 device		pty		# Pseudo-ttys (telnet etc)
 device		md		# Memory "disks"
 
 device		bpf		# Berkeley packet filter
 
 # USB support
 device		uhci		# UHCI PCI->USB interface
 device		ohci		# OHCI PCI->USB interface
 device		ehci		# EHCI PCI->USB interface (USB 2.0)
 device		usb		# USB Bus (required)
 device		ugen		# Generic
 device		uhid		# "Human Interface Devices"
 device		ukbd		# Keyboard
 device		ulpt		# Printer
 device		umass		# Disks/Mass storage - Requires scbus and da
 device		ums		# Mouse
 device		uscanner	# Scanners
 
 device		ucom
 device		uplcom
 device		sound
 device		speaker
 device		snd_ich
 device		isa
 device		mem
 device		npx
 device		io
 
 options		QUOTA
 device		crypto
 device		snp
 maxusers	15
 
 options		HZ=100
 options		PERFMON
 options		LIBICONV
 options		COMPAT_AOUT
 options		CD9660_ICONV
 options		MSDOSFS_ICONV
 options		NTFS
 options		NTFS_ICONV
 options		COMPAT_LINUX
 options		REISERFS
 options		EXT2FS
 options		LINPROCFS
 options		LINSYSFS
 options		FDESCFS
 options		MAXCONS=5
 options		PANIC_REBOOT_WAIT_TIME=-1
 options		SC_ALT_MOUSE_IMAGE
 options		SC_CUT_SPACES2TABS
 options		SC_HISTORY_SIZE=700
 options		SC_MOUSE_CHAR=0x3
 options		SC_TWOBUTTON_MOUSE
 
 options		SMBFS
 options		UNIONFS
 device		atapicam
 options		FB_INSTALL_CDEV
 
 options		GEOM_BDE
 options		GEOM_ELI
 options		GEOM_BSD
 options		GEOM_MBR
 options		GEOM_VOL
 options		DIRECTIO
 options		DEVICE_POLLING
 options		NO_F00F_HACK
 options		VFS_AIO
 options		LIBALIAS
 options		LIBMCHAIN
 options		TCP_DROP_SYNFIN
 options		NETSMB
 options		ZERO_COPY_SOCKETS
 device		blank_saver
 options		IPFIREWALL
 options		IPFIREWALL_DEFAULT_TO_ACCEPT
 options		IPFIREWALL_VERBOSE
 options		IPFIREWALL_VERBOSE_LIMIT=100
 options		IPDIVERT
 options		DUMMYNET
 options		IPFIREWALL_FORWARD
 options		PMAP_SHPGPERPROC=400
 
 device		puc
 options		PUC_FASTINTR
 
 options 	DFLDSIZ=(512UL*1024*1024)
 options 	MAXDSIZ=(1024UL*1024*1024)
 options 	MAXSSIZ=(128UL*1024*1024)
 options 	PPP_BSDCOMP	
 options 	PPP_DEFLATE	
 options 	PPP_FILTER	
 options 	SEMMAP=45
 options 	SEMMNI=15
 options 	SEMMNS=90
 options 	SEMMNU=45
 options 	SEMMSL=90
 options 	SEMOPM=150
 options 	SEMUME=15
 options 	SHMALL=1536
 options 	SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
 options 	SHMMAXPGS=1536
 options 	SHMMIN=2
 options 	SHMMNI=48
 options 	SHMSEG=12
 
 device		smb
 device		smbus
 device		ichsmb
 
 device		sl
 
 
 -- 
 Regards, Mirya
 ICQ #313898202
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Oct 31 18:04:58 UTC 2006 
State-Changed-Why:  
Is this an issue with the port, or with the base system?  e.g. is the system 
useable after that process hangs? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104966 

From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: misc/104966: skype hangs up on 6.2-PRERELEASE
Date: Tue, 31 Oct 2006 20:30:18 +0200

 That's about the _base_ system (but triggered only by skype) - sorry, I didn't 
 set the category, as I stated skype hangs in uninterruptable (KILL won't 
 work) state marked as "zonelimit" in `top` (sys/vm/uma_core.c), some, but not 
 all processes, both already running and newly started, enter the same state 
 and so hang.
 
 I've got 2 machines running the same kernel config (attached), but with 
 different hardware modules (so that's not related to specific harware 
 dirver), cvs checkouts 15 Oct and 28 Oct both triggering the issue.
 
 -- 
 Regards, Mirya
 ICQ #313898202

From: linimon@lonesome.com (Mark Linimon)
To: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/104966: skype hangs up on 6.2-PRERELEASE
Date: Tue, 31 Oct 2006 13:54:55 -0600

 was this something that worked on older versions, e.g. 6.1-RELEASE?
 
 mcl

From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: kern/104966: skype hangs in uninterruptable state on 6.2-PRERELEASE
Date: Tue, 31 Oct 2006 23:31:30 +0200

 For 6.1 it worked flamelessly. The kernel config was the same
 -- 
 Regards, Mirya
 ICQ #313898202

From: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org>
To: Kyryll A Mirnenko<mirya@zoc.com.ua>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/104966: skype hangs up on 6.2-PRERELEASE
Date: Wed, 1 Nov 2006 08:43:25 +0200

 --Sig_7laa61=EB4zu0wZHYW6s5k4
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 All I can say is that I can reproduce it on my
 6.2-PRERELEASE #12: Sun Oct 29 20:37:04 EET 2006 i386
  > cat /dev/sndstat
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 pcm0: <nVidia nForce4> at io 0xd800, 0x1000 irq 20 bufsz 16384 kld snd_ich =
 (1p/1r/2v channels duplex default)
 
 
 
 --=20
 IOnut - Un^d^dregistered ;) FreeBSD "user"
   "Intellectual Property" is   nowhere near as valuable   as "Intellect"
 
 BOFH excuse #242:
 Software uses US measurements, but the OS is in metric...
 
 
 
 --Sig_7laa61=EB4zu0wZHYW6s5k4
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (FreeBSD)
 
 iD8DBQFFSEIPBX6fi0k6KXsRAn2GAJ4sr7/yXclC2HzpPJDY3Th4n6du1QCeMndD
 5iRaZldpeH/++VL8+AiEw2A=
 =dEL0
 -----END PGP SIGNATURE-----
 
 --Sig_7laa61=EB4zu0wZHYW6s5k4--

From: Kyryll A Mirnenko aka Mirya <mirya@zoc.com.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: kern/104966: skype hangs in uninterruptable state on 6.2-PRERELEASE (regression)
Date: Wed, 1 Nov 2006 14:08:27 +0200

 2IOnut: That's really not about sound subsystem. I've reproduced it a couple 
 of hours ago with a soundcard-less machine
 -- 
 Regards, Mirya
 ICQ #313898202

From: Kyryll A Mirnenko aka Mirya <mirya@matrix.ua>
To: bug-followup@freebsd.org,
 mirya@zoc.com.ua
Cc:  
Subject: Re: kern/104966: skype hangs in uninterruptable state on 6.2-PRERELEASE (regression)
Date: Fri, 3 Nov 2006 01:36:35 +0200

 Good news. GENERIC doesn't trigger the issue, so I diff'ed it to my kernel & 
 tracked down the buggy option, as a result
 
 - GENERIC works fine
 - GENERIC + "maxusers 15" makes skype hang up
 
 plz confirm it those who're running custom configs are suffer from unusable 
 skype
 
 -- 
 Regards, Mirya
 ICQ #313898202
State-Changed-From-To: feedback->closed 
State-Changed-By: kmacy 
State-Changed-When: Fri Nov 16 10:01:14 UTC 2007 
State-Changed-Why:  

timeout on Ion-Mihai Tetcu - please provide your config if you are 
still seeing this issue. It was a PEBKAC for Kyryll. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104966 
>Unformatted:
