Date: Wed, 12 Nov 2008 14:52:03 -0500 (EST) From: Daniel Eischen <deischen@freebsd.org> To: Mikhail Teterin <mi+mill@aldan.algebra.com> Cc: Kostik Belousov <kostikbel@gmail.com>, stable@freebsd.org Subject: Re: dlopen-ing a library with OpenMP by a non-OpenMP process Message-ID: <Pine.GSO.4.64.0811121451260.4280@sea.ntplx.net> In-Reply-To: <491B3270.5080402@aldan.algebra.com> References: <491B1BD2.4050903@aldan.algebra.com> <20081112194350.GJ47073@deviant.kiev.zoral.com.ua> <491B3270.5080402@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >>> #2 0x00000008011a6537 in omp_get_nested () from /usr/lib/libgomp.so.1 >>> #3 0x00000008011a3466 in ?? () from /usr/lib/libgomp.so.1 >>> #4 0x0000000000000002 in ?? () >>> #5 0x00000008005072b2 in dlsym () from /libexec/ld-elf.so.1 >>> #6 0x0000000800507cd2 in dlopen () from /libexec/ld-elf.so.1 >>> ... >>> >> Try "kldload sem". >> > Uhm... That worked... I see... Shouldn't sem_init be nicer about it, though? > Thanks, Or perhaps you should read sem(4) ;-) -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0811121451260.4280>