From owner-freebsd-stable@FreeBSD.ORG Wed Nov 12 20:02:29 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63DD71065688 for ; Wed, 12 Nov 2008 20:02:29 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 3C54D8FC14 for ; Wed, 12 Nov 2008 20:02:29 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: (qmail 16328 invoked from network); 12 Nov 2008 20:02:28 -0000 Received: from aldan.algebra.com (HELO [127.0.0.1]) (mi@[216.254.65.224]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 12 Nov 2008 20:02:28 -0000 Message-ID: <491B3653.5080209@aldan.algebra.com> Date: Wed, 12 Nov 2008 15:02:27 -0500 From: Mikhail Teterin User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: Daniel Eischen References: <491B1BD2.4050903@aldan.algebra.com> <20081112194350.GJ47073@deviant.kiev.zoral.com.ua> <491B3270.5080402@aldan.algebra.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , stable@freebsd.org Subject: Re: dlopen-ing a library with OpenMP by a non-OpenMP process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 20:02:29 -0000 Sent by Daniel Eischen: > On Wed, 12 Nov 2008, Mikhail Teterin wrote: > >> Sent by Kostik Belousov: >>> On Wed, Nov 12, 2008 at 01:09:22PM -0500, Mikhail Teterin wrote: >>> >>>> Hello! >>>> >>>> Currently, when a program built without OpenMP (-fopenmp) is trying >>>> to dlopen a library, built with the feature, the result is a crash >>>> from "bad system call": >>>> >>>> #0 0x00000008009a223c in ksem_init () from /lib/libc.so.7 >>>> #1 0x0000000800998a8f in sem_init () from /lib/libc.so.7 >> Uhm... That worked... I see... Shouldn't sem_init be nicer about it, >> though? Thanks, > Or perhaps you should read sem(4) ;-) Daniel, what are saying? That it is all my own fault? Generic kernel does not have sem in it... I build a port with an option (OpenMP), that make perfect sense, and try to use it. Software crashes... There is a bug -- and you, instead of contemplating a fix, are telling me to read a man-page? Wow... -mi