From owner-freebsd-questions@FreeBSD.ORG Tue May 1 19:04:28 2012 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 289BC1065670 for ; Tue, 1 May 2012 19:04:28 +0000 (UTC) (envelope-from kickbsd@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [IPv6:2a02:6b8:0:602::5]) by mx1.freebsd.org (Postfix) with ESMTP id 8F6788FC17 for ; Tue, 1 May 2012 19:04:27 +0000 (UTC) Received: from web5d.yandex.ru (web5d.yandex.ru [77.88.47.183]) by forward5.mail.yandex.net (Yandex) with ESMTP id 11F0D1200E84; Tue, 1 May 2012 23:04:26 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1335899066; bh=uEn1sc53vKLC2PaJcbCaG5BgTgYSxRwClZxtM0dmjYo=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=vc1T50oND46jmUp/Yvfp+srSSkEZqXjM2pHeczJgW3KpZnnO49zVu/rzSZXl7kGT3 d3uwIZ+kUPoylukLHMcWoGi0gxyovIGJoUvNDkV4QutgTPonInmD4jXH1KjNKHwZIh JxsBWA86UsAMKBDpfRddcOxNeM09RN8+1fM47N/4= Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web5d.yandex.ru (Yandex) with ESMTP id C624E4928119; Tue, 1 May 2012 23:04:25 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1335899065; bh=uEn1sc53vKLC2PaJcbCaG5BgTgYSxRwClZxtM0dmjYo=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=G5eiYTPGYQbK7HiP77qwTX05+5w2HBXvXf/wITxOwa0PbhbNRYyxP8Zjj47zmbyvL pcBUhaRseiPtF5tyM65YiksyE/sCaEMK1rtK0IsROUtCXU7AqjlNmyWLnNw1VXHKxi COO1VcH1zZUvMcZtgTIvmjUEMy5k8JUESZdxS5x4= Received: from leo.de.teleglobe.net (leo.de.teleglobe.net [64.86.53.146]) by web5d.yandex.ru with HTTP; Tue, 01 May 2012 23:04:25 +0400 From: Darren Baginski Envelope-From: kickbsd@yandex.ru To: Unga In-Reply-To: <1335895711.57204.YahooMailNeo@web160104.mail.bf1.yahoo.com> References: <1335895711.57204.YahooMailNeo@web160104.mail.bf1.yahoo.com> MIME-Version: 1.0 Message-Id: <393231335899065@web5d.yandex.ru> Date: Tue, 01 May 2012 23:04:25 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Cc: "freebsd-questions@freebsd.org" Subject: Re: Segmentation fault in FreeBSD 9.0 flockfile () X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2012 19:04:28 -0000 Hi! Mind to share code snippet caused the problem? 01.05.2012, 22:08, "Unga" : > Hi all > > I'm getting aš Segmentation fault in FreeBSD 9.0 as follows for myprog.c: > > Reading symbols from /libexec/ld-elf.so.1...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0š 0x28ebb062 in flockfile () from /lib/libc.so.7 > [New Thread 29c04900 (LWP 100575/SDLTimer)] > [New Thread 29c04300 (LWP 100416/myprog)] > (gdb) > (gdb) info threads > * 2 Thread 29c04300 (LWP 100416/myprog)š 0x28ebb062 in flockfile () > šš from /lib/libc.so.7 > š 1 Thread 29c04900 (LWP 100575/SDLTimer)š 0x28e1527b in _umtx_op () > šš from /lib/libc.so.7 > (gdb) > > I don't use flockfile () directly in my program. > > I use -lpthread. > > Same program runs without any issue on FreeBSD 8.1. > > Any idea what's going on? > > Best regards > Unga > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"