From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 25 Oct 2015 16:31:05 +0000 Message-ID: References: <83r3trulse.fsf@gnu.org> <54E0D7E0.305@87.69.4.28> <83h9unukbg.fsf@gnu.org> <54E0DEF8.7020901@dancol> <83egpruiyp.fsf@gnu.org> <54E0FF93.2000104@dancol.org> <5610ED13.1010406@dancol.org> <56117F37.9060808@dancol.org> <56259FDD.8040401@dancol.org> <87zizeme8k.fsf@tromey.com> <5625B166.3080104@dancol.org> <86zizdczhp.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b343d0e9c9fc50522f05f62 X-Trace: ger.gmane.org 1445790699 3145 80.91.229.3 (25 Oct 2015 16:31:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Oct 2015 16:31:39 +0000 (UTC) Cc: Eli Zaretskii , Daniel Colascione , Stephen Leake , Emacs development discussions , Tom Tromey To: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 25 17:31:36 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZqOCm-0007tx-Ct for ged-emacs-devel@m.gmane.org; Sun, 25 Oct 2015 17:31:36 +0100 Original-Received: from localhost ([::1]:48758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqOCl-0000Vh-Nf for ged-emacs-devel@m.gmane.org; Sun, 25 Oct 2015 12:31:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqOCU-0000Va-Oe for emacs-devel@gnu.org; Sun, 25 Oct 2015 12:31:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqOCT-0006Lz-Qo for emacs-devel@gnu.org; Sun, 25 Oct 2015 12:31:18 -0400 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:33841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqOCR-0006La-SF; Sun, 25 Oct 2015 12:31:16 -0400 Original-Received: by wikq8 with SMTP id q8so134375994wik.1; Sun, 25 Oct 2015 09:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=7n/Flch5WP9AJKK2+ChTgVGrl0gl3XAL7+HmBaJW2wU=; b=tCe0112a06gVLiWVe48bXcuIet1Glz7GTr4QPKpjlWg/BCwKQb/yLQQxjRKVZDjoKV Aojc+MJiv5+J+nwC8SUuc4fn5NMtY+cGcT9XBp3pknxTQnXZOoNp2Dv88SK8Nyo18rlq gLnpyPeXbF+S/pwy6Vqy7K6sYI2zSxNvk4rP2WeYW5iMdMtaNCFRR5hHdOEm1Vh9BRh6 Mwmh79axehVNlu4WECQ1HwmcHSknVwDKYy0ECm1s+5db/BLFSEJarXzWIc1OWxQzTIgM Ogx13lDEbgyBAXZIOkAhYpEnJ7naaZN8MwPb1EP2Mw6y4liGqmwHCWVdbs/O0ncj8BQM iv1w== X-Received: by 10.194.2.5 with SMTP id 5mr40782532wjq.153.1445790675146; Sun, 25 Oct 2015 09:31:15 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192605 Archived-At: --047d7b343d0e9c9fc50522f05f62 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Aur=C3=A9lien Aptel schrieb am So., 25. Ok= t. 2015 um 17:26 Uhr: > Philip, I've tried to merge you latest PR but I have a problem with > module compiled with -fsanitize-address. This compiles the module with > ASan aka AddressSanitizer on GCC. You've enable it to debug memory > problems I guess and it looks useful but I cannot load them. > > [*] ./modt-error: running make > gcc -fsanitize=3Daddress -ggdb3 -Wall -I../../src -fPIC -c modt-error.c > gcc -shared -fsanitize=3Daddress -o modt-error.so modt-error.o > ../../lib-src/make-docfile modt-error.c > modt-error.doc > rm modt-error.o > [*] ./modt-error: running test > ../src/emacs -batch -L . -l ert -l ./modt-error/test.el -f > ert-run-tests-batch-and-exit > =3D=3D24402=3D=3DASan runtime does not come first in initial library list= ; you > should either link runtime to your application or manually preload it > with LD_PRELOAD. > [E] ./modt-error: test failed > > I'm sure I'm missing something obvious... > I mainly use Clang, which is almost, but not entirely compatible with GCC. If the flag causes problems for you, just drop it, of course it's not required. --047d7b343d0e9c9fc50522f05f62 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Aur=C3= =A9lien Aptel <aurel= ien.aptel+emacs@gmail.com> schrieb am So., 25. Okt. 2015 um 17:26=C2= =A0Uhr:
Philip, I've tried to m= erge you latest PR but I have a problem with
module compiled with -fsanitize-address. This compiles the module with
ASan aka AddressSanitizer on GCC. You've enable it to debug memory
problems I guess and it looks useful but I cannot load them.

[*] ./modt-error: running make
gcc -fsanitize=3Daddress -ggdb3 -Wall -I../../src -fPIC -c modt-error.c
gcc -shared -fsanitize=3Daddress -o modt-error.so modt-error.o
../../lib-src/make-docfile modt-error.c > modt-error.doc
rm modt-error.o
[*] ./modt-error: running test
../src/emacs -batch -L . -l ert -l ./modt-error/test.el -f
ert-run-tests-batch-and-exit
=3D=3D24402=3D=3DASan runtime does not come first in initial library list; = you
should either link runtime to your application or manually preload it
with LD_PRELOAD.
[E] ./modt-error: test failed

I'm sure I'm missing something obvious...

=
I mainly use Clang, which is almost, but not entirely compatible= with GCC. If the flag causes problems for you, just drop it, of course it&= #39;s not required.=C2=A0
--047d7b343d0e9c9fc50522f05f62--