This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Wed Sep 27 21:27:27 2023 Received: from spaans.ds9a.nl (adsl-xs4all.ds9a.nl [213.84.159.51]) by kylie.puddingonline.com (8.11.6/8.11.6) with SMTP id g8IEs1X20359 for ; Wed, 18 Sep 2002 16:54:02 +0200 Received: (qmail 2901 invoked from network); 18 Sep 2002 06:55:26 -0000 Received: from unknown (HELO spaans.ds9a.nl) (3ffe:8280:10:360:202:44ff:fe2a:a1dd) by mayo.ipv6.ds9a.nl with SMTP; 18 Sep 2002 06:55:26 -0000 Received: (qmail 12672 invoked by uid 1000); 17 Sep 2002 20:30:14 -0000 Received: (maildatabase); juh Received: (qmail 1983 invoked by alias); 28 Sep 2001 11:49:07 -0000 Received: (qmail 1980 invoked from network); 28 Sep 2001 11:49:06 -0000 Received: from vvtp.tn.tudelft.nl (HELO vvtp.nl) (qmailr@130.161.252.29) by spaans.ds9a.nl with SMTP; 28 Sep 2001 11:49:06 -0000 Received: (qmail 29312 invoked by uid 2547); 28 Sep 2001 11:47:50 -0000 Received: (qmail 29229 invoked from network); 28 Sep 2001 11:47:47 -0000 Received: from vger.kernel.org (199.183.24.194) by vvtp.tn.tudelft.nl with SMTP; 28 Sep 2001 11:47:47 -0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Sep 2001 07:39:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Sep 2001 07:39:06 -0400 Received: from artemis.rus.uni-stuttgart.de ([129.69.1.28]:38288 "EHLO artemis.rus.uni-stuttgart.de") by vger.kernel.org with ESMTP id ; Fri, 28 Sep 2001 07:38:54 -0400 Received: from hlrs.de (pcgpc9.rus.uni-stuttgart.de [129.69.14.81]) by artemis.rus.uni-stuttgart.de with ESMTP id NAA28035; Fri, 28 Sep 2001 13:38:55 +0200 (MET DST) env-from (Keller@hlrs.de) Message-Id: <3BB4614C.500D04AA@hlrs.de> Date: Fri, 28 Sep 2001 13:38:52 +0200 From: Rainer Keller Organization: Rechenzentrum =?iso-8859-1?Q?Universit=E4t?= Stuttgart X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.9 i686) X-Accept-Language: de, en Mime-Version: 1.0 To: Balazs Scheidler , linux-kernel@vger.kernel.org Subject: reproducible bug in 2.2.19 & 2.4.x Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Hi Balazs, Well, reading & running (on UP, no SIGSEGVs) Your code, I get the impression, that there might be a small bug in it. Your while-loop looks like this: while (1) { int newfd; int tmplen; pthread_t t; tmplen = sizeof(sin); newfd = accept(fd, (struct sockaddr *) &sin, &tmplen); ... pthread_create(&t, NULL, thread_func, &newfd); } Now, if the thread_func is not started immediately on Your SMP-machine, the next iteration of the loop might already have started the accept with a new file-descriptor, leaving two threads reading on the same fd. This should be per-thread data. Just my 2 cents. Greetings, raY  - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/