Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B4D2104C7 for ; Tue, 18 Feb 2014 15:04:50 +0000 (UTC) Received: (qmail 23833 invoked by uid 500); 18 Feb 2014 15:04:49 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 23486 invoked by uid 500); 18 Feb 2014 15:04:47 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 23474 invoked by uid 99); 18 Feb 2014 15:04:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 15:04:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pe.retzlaff@gmail.com designates 209.85.215.178 as permitted sender) Received: from [209.85.215.178] (HELO mail-ea0-f178.google.com) (209.85.215.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 15:04:39 +0000 Received: by mail-ea0-f178.google.com with SMTP id a15so7894326eae.37 for ; Tue, 18 Feb 2014 07:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=eDumMo1o/igTANUlmBF8NRkC2eo4LDzOhSWkYRn2plY=; b=Q9CuekF2h8PXa8yEbaHQnGyNT/Ah0H+SnmOD9/0/uNK4kVHebCNM7BK2m7sO5NVIp/ M9ySvl6W/2Akoyv/YRo6C1F3/9xY3dHa0pgg+tHGrIQOLIrmPSu7Uyr/9No2apIKYLYy UN57rAuuMECycMb0TZIPyJ7zVkb/MDtCoUMCrN5YhAeNJT9oFQ4+Nfx2/xRRElgm28f9 /QkZ8Z0+vrbNm969Lt3ofAf1/OcxBQzB1SGTVhKV4lE/A9KZR5aaoVcYstb6163/Jne1 c/oyvnFQWIJskjKcJSCR8PZvj9wLwIOBlYIa9nV3dNqxeha13+YTIa9r6n25jn+r+6/o lhWw== X-Received: by 10.14.48.72 with SMTP id u48mr45365eeb.114.1392735859725; Tue, 18 Feb 2014 07:04:19 -0800 (PST) Received: from [192.168.0.11] (91-64-242-155-dynip.superkabel.de. [91.64.242.155]) by mx.google.com with ESMTPSA id k6sm71330823eep.17.2014.02.18.07.04.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 07:04:18 -0800 (PST) Message-ID: <53037656.3050100@gmail.com> Date: Tue, 18 Feb 2014 16:03:50 +0100 From: Peter Retzlaff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: dlclose Assertion fails for C++-Analysis Engine References: <53034532.6060203@gmail.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8b2VC92titvqev0cHpquD6DW111xnUcPF" X-Virus-Checked: Checked by ClamAV on apache.org --8b2VC92titvqev0cHpquD6DW111xnUcPF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I already cross-referenced the ldd-output of libuima and libopencv_core. There are some common dependencies (I got a list on my other computer), but there are no version differences. Also, if I'm not mistaken, libs pulled in with dlopen won't even appear in ldd's output, right? Therefore, I also combed through the code to check if maybe UIMA and OpenCV dlopen the same libs. As far as I can tell, this is not the case. Peter On 02/18/2014 02:22 PM, Eddie Epstein wrote: > UIMA-C++ uses several libraries including APR, ICU and xercesc. Does Op= enCV > drag in any of these at different version levels? >=20 > Eddie >=20 >=20 > On Tue, Feb 18, 2014 at 6:34 AM, Peter Retzlaff = wrote: >=20 >> Hello, >> >> we are working on a UIMA project with several C++-Analysis Engines >> (UIMA-AS 2.4 + UIMACPP 2.4). For a while now, we've been getting this >> error message, when one of these AEs exits: >> >> Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion= >> `map->l_init_called' >> >> In particular, this happens with AEs that use OpenCV. I have construct= ed >> a toy example that does nothing, except defining an Annotator, linking= >> it against OpenCV and UIMA and executing it with runAECpp. >> >> The error message seems to be related to the fact, that some calls to >> dlclose happen in library destructors which are called _after_ all >> dynamically loaded libraries have been unloaded. (see >> https://bugzilla.novell.com/show_bug.cgi?id=3D622977, for example) >> >> So this error might not be specific to UIMA, but what's baffling me is= >> that it only occurs, when UIMA and OpenCV are both linked into the lib= =2E >> Linking either one of them on it's own doesn't produce the error messa= ge. >> >> Has anyone ever seen this problem with C++-AEs before? I'm desperately= >> looking for any pointers or hints, how this problem could be resolved.= >> >> Thanks and best regards >> Peter >> >> >> P.S.: This is the test code I use: >> TestAnnotator.cpp: >> "#include "uima/api.hpp" >> using namespace uima; >> >> class TestAnnotator: public Annotator { >> }; >> // This macro exports an entry point that is used to create the annota= tor. >> >> MAKE_AE( TestAnnotator); >> " >> >> Makefile: >> " >> UIMACPP_HOME=3D/opt/apache-uima-as/uimacpp >> UIMA_HOME=3D/opt/apache-uima-as >> TARGET_FILE=3DTestAnnotator >> OBJS=3DTestAnnotator.o >> USER_LINKFLAGS=3D/usr/local/lib/libopencv_core.so.2.4.3-1 >> DEBUG=3D1 >> DLL_BUILD=3D1 >> >> all: >> # include file with generic compiler instructions >> include $(UIMACPP_HOME)/lib/base.mak >> >> Executing it with: >> /opt/apache-uima-as/uimacpp/bin/runAECpp ./TestAnnotatorAE.xml -x >> testdata/cas.xml . >> >> >=20 --8b2VC92titvqev0cHpquD6DW111xnUcPF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTA3ZWAAoJEMDfsLR6AC0x+vYP/20dzeNtABLCalWxxU4hlyNo UlrhtpcKAL5ZCh9hOA8K9C0MkpPpX59scMknRjuUiog1wMT2IwY6mq2geE4WrzsX HuWpNZ6rvRrlxKKiILKhU5XB7RbhNDj9NqDqCunRd/VomCdS4VaoYdGvdV65WO2C xxV9lsKHeKNthgsMlF07k5W9TRRdyjM5DPl19mMVQEA9GrW6BRZDlLP4y9rY3W/h WbGcmPW03QMAyah4YOrhiePGTHWiPg8lL9zCnA+aX46a6SBBBOmn+2K49SaSeml2 9grvp8HEyIL+rXeZ3hUf4yNH3JDH9DF3r0uG8BEgySJx+MeO22eDKYTCnyFNMFpe MD20JkaJz8khr18AC53gJQ0fiM7B1FNXmKrSb4fFtB8sv5s94H9QLVPVZ0GIuFMo HP9PQ0r4uCcg0G5y2Q6U3EVsBmmD5WjEpRXg401rsEUISZaW+doy8pABuyi7QP/R cViY56Jgi9cdSueYbw8g7nj9JIZQJa0oU91Ua1Q5VNYxquWeXQFlqsJwvvL/P1iA BeY0k5pS5kJmr6mpX+lpuUjI3aNqmIb0VfRd5RojOGqg2Mi97vSXcS6lhpyPPeZn sWrDRMR8ULZdVbpPArLOOCPkUpNs8RzZI85usT9vHv6sXe/DN+fqjgF9voRPaA8Y C9HciZB8eo+oO+zVDXuI =nYqC -----END PGP SIGNATURE----- --8b2VC92titvqev0cHpquD6DW111xnUcPF--