From owner-freebsd-stable Fri Nov 3 15: 3:57 2000 Delivered-To: freebsd-stable@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 8FF7337B479 for ; Fri, 3 Nov 2000 15:03:54 -0800 (PST) Received: (qmail 95182 invoked from network); 3 Nov 2000 23:03:53 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 3 Nov 2000 23:03:53 -0000 Received: (qmail 6229 invoked from network); 3 Nov 2000 23:04:13 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 3 Nov 2000 23:04:13 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.0/8.11.0) id eA3N3o465362; Fri, 3 Nov 2000 15:03:50 -0800 (PST) (envelope-from mikko) Date: Fri, 3 Nov 2000 15:03:50 -0800 (PST) From: Mikko Tyolajarvi Message-Id: <200011032303.eA3N3o465362@explorer.rsa.com> To: kate@gutatelecom.ru Cc: freebsd-stable@freebsd.org Subject: Re: Possible problem in threads lib in -STABLE ? Newsgroups: local.freebsd-stable References: <20001103183733.A3580@hub.all.yans.ru> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd-stable you write: >This is my third attempt at getting help, after trying freebsd-bugs and >freebsd-hackers mailing lists. Folks, please, do have a look. I'm certain nobody is ignoring you just to be mean -- your problem looks sort-of complex... :-) >I was pursuing a strange bug which causes mysqld to hang (that is not to >accept any new connections) on FreeBSD 4.1 after working for some time >properly and MySQL folks suggested that there may be some pecularity in >FreeBSD threads library. I cvsup'ed FreeBSD on Nov 2 (after the code freeze >I presume). The problem persists. >Just tell me, is it normal that an app should be stuck in _thread_sys_poll >when clients are trying to connect to it ? Probably not, unless it is no longer polling the fd that clients connect to. If it possible for you to list the exact steps necessary to recreate this state, chances of someone being able to help you out would increase greatly. Ideally, write a shellscript that can start with a fresh install of mysqld, populate it with some data and run clients until the server hangs. In the meantime, you could look at the array of pollfds used as argument to _thread_sys_poll(): - Are there suspiciously few? - How do they correlate to the output of "fstat"/"sockstat"? - What about the file descriptor limit? (Check with "cat /proc/$PID/rlimit" for example) - One of the descriptors should be the socket listening for clients -- is it there? - Etc... >Please bear with me as I know nothing of threads programming :(. Sadly, the same is true for a lot of people programming with threads. $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message