From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 09:40:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45E7C1065676 for ; Sat, 30 Aug 2008 09:40:05 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57006.mail.re3.yahoo.com (web57006.mail.re3.yahoo.com [66.196.97.110]) by mx1.freebsd.org (Postfix) with SMTP id CFEB58FC22 for ; Sat, 30 Aug 2008 09:40:04 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 16777 invoked by uid 60001); 30 Aug 2008 09:40:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=1GTHQbV8aHJhjyICLp0KZED6FaoznBI4sU16gL7OpcKKCgdTOiGpii5Qu5UENKmK1zkjS5vc1+7vYAM5EmDPy8kEseprPfBxGQZhwYWGR6enelvukX+tzIaVgElTyBjy1emH/b5GjaPDL6GKCUNUagUxtP1gwPakd22lD7Ko3Es=; X-YMail-OSG: I42QcAAVM1myZJ9Xt3xswsahtE5dph5dNPt9e.MTfUhJO6Vu0ZHynH898hu7iTvKQUq27GxG2tBOsLcRzlgXKL53FmN_vZeiLxUQZIatNQ-- Received: from [220.255.7.226] by web57006.mail.re3.yahoo.com via HTTP; Sat, 30 Aug 2008 02:40:03 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Sat, 30 Aug 2008 02:40:03 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <942225.15686.qm@web57006.mail.re3.yahoo.com> Subject: Segmentation fault: _pthread_mutex_init_calloc_cb() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2008 09:40:05 -0000 Hi all When my C program executing exit(EX_OK); I get following error message in ddd: Program received signal SIGSEGV, Segmentation fault. 0x28102600 in _pthread_mutex_init_calloc_cb () from /lib/libc.so.7 I'm running FreeBSD 7.0 on i386. I noted I got this issue after I introduced a code section with strsep. I'm not sure whether there is anything to do with strsep, ddd shows strsep works well. Any idea what is wrong? Many thanks in advance. kind regards Unga