From owner-freebsd-questions Wed Oct 3 14:31:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.acns.ab.ca (h24-68-206-125.sbm.shawcable.net [24.68.206.125]) by hub.freebsd.org (Postfix) with ESMTP id BA0B037B405; Wed, 3 Oct 2001 14:31:29 -0700 (PDT) Received: from colnta.internal (colnta.internal [192.168.1.2]) by mail.acns.ab.ca (8.11.6/8.11.3) with ESMTP id f93LVVe02946; Wed, 3 Oct 2001 15:31:31 -0600 (MDT) (envelope-from davidc@colnta.internal) Received: (from davidc@localhost) by colnta.internal (8.11.6/8.11.3) id f93LVUT96779; Wed, 3 Oct 2001 15:31:30 -0600 (MDT) (envelope-from davidc) Date: Wed, 3 Oct 2001 15:31:30 -0600 From: Chad David To: Oleg Golovanov Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Question about pthread Message-ID: <20011003153130.A96520@colnta.internal> Mail-Followup-To: Oleg Golovanov , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <3BBB77A7.5C4B129E@home.krasnoyarsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BBB77A7.5C4B129E@home.krasnoyarsk.ru>; from olmi@home.krasnoyarsk.ru on Thu, Oct 04, 2001 at 04:40:07AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 04, 2001 at 04:40:07AM +0800, Oleg Golovanov wrote: > Dear Sirs: > > I am using FreeBSD-2.2.8 and after calling pthread_create() > my programs get sigfault (SIGSEGV) and exited with core dump. > > I should like to ask if somebody know the solve of this problem. > My example of using pthread is included below. > > I ask to answer me directly on my e-mail. > > Oleg > ... > pthread_create(NULL, NULL, &coms, confd); ... I am not positive about 2.2.8, but I do not think you can pass NULL as the first argument to pthread_create(). -- Chad David davidc@acns.ab.ca ACNS Inc. Calgary, Alberta Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message