Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EFF3188DF for ; Fri, 4 Mar 2016 10:07:24 +0000 (UTC) Received: (qmail 16428 invoked by uid 500); 4 Mar 2016 10:07:23 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 16334 invoked by uid 500); 4 Mar 2016 10:07:23 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 16323 invoked by uid 99); 4 Mar 2016 10:07:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 10:07:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 20D601A0389 for ; Fri, 4 Mar 2016 10:07:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.971 X-Spam-Level: X-Spam-Status: No, score=0.971 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fL4TU19wxbIl for ; Fri, 4 Mar 2016 10:07:22 +0000 (UTC) Received: from biz190.inmotionhosting.com (biz190.inmotionhosting.com [192.145.239.36]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 944B6610F8 for ; Fri, 4 Mar 2016 09:59:36 +0000 (UTC) Received: from ip70-181-175-67.sd.sd.cox.net ([70.181.175.67]:49623 helo=[192.168.1.113]) by biz190.inmotionhosting.com with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.86_1) (envelope-from ) id 1abmWE-002PCO-9K for dev@openoffice.apache.org; Fri, 04 Mar 2016 01:59:35 -0800 Subject: Re: Profile.c bugs (was RE: Some thoughts on the learning curve) To: dev@openoffice.apache.org References: <003c01d17323$b021a6a0$1064f3e0$@acm.org> <56D72FF5.9090307@acm.org> <00ab01d174bb$a5d0dc90$f17295b0$@acm.org> <005c01d17580$ecab0670$c6011350$@acm.org> <56D8BCC3.4070008@acm.org> <00d801d175b1$4fff2f00$effd8d00$@acm.org> <56D8E840.8050205@acm.org> From: Patricia Shanahan Message-ID: <56D95C86.5010602@acm.org> Date: Fri, 4 Mar 2016 01:59:34 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biz190.inmotionhosting.com X-AntiAbuse: Original Domain - openoffice.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - acm.org X-Get-Message-Sender-Via: biz190.inmotionhosting.com: authenticated_id: pats+patriciashanahan.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: biz190.inmotionhosting.com: pats@patriciashanahan.com On 3/4/2016 12:54 AM, Damjan Jovanovic wrote: > ELF binaries (Linux, *BSD) fundamentally use one of the worst ideas of > all time: symbols are process scoped (unlike on Windows and MacOS > where they're library scoped), meaning that symbols with the same name > can clash even if in different libraries loaded through arbitrary > layers of indirection. For example, compiling AOO with GCC on recent > FreeBSD easily crashes AOO because both GCC's and Clang's C++ runtime > libraries are loaded, their symbols clash with each other, and their > ABIs are not fully compatible -> memory corruption -> undebuggable > crash. Symbol map files are supposed to work around the problem > because the UDK_3_0_0 becomes part of the symbol name and makes it > more globally unique. > > I don't know if UDK_3_0_0 is correct since we are on AOO version 4 now > (or do we version UDK differently?). Embedding version numbers in source code should be done very sparingly, because it grows old fast. > > Also UNO is all good in theory, but in practice plugins can always use > run-time dynamic linking to load any library and call any exported > function (which the profile functions are) - even when running in a > separate process, or written a different language (eg. JNA/BridJ for > Java). Whether they actually do this in practice is the more important > question. I have a possibly pathetic hope that the 14 year deprecation of the functions may have discouraged their direct use in plugins. Patricia --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org For additional commands, e-mail: dev-help@openoffice.apache.org