Re: [Evolution] [solved] Using the memory error detector AddressSanitizer (ASan)

2015-05-15 Thread Paul Menzel
Am Freitag, den 15.05.2015, 15:10 + schrieb Reid Thompson:
> On Wed, 2015-05-13 at 08:36 +0200, Paul Menzel wrote:
> > Am Montag, den 11.05.2015, 12:54 + schrieb Reid Thompson:
> > > On Mon, 2015-05-11 at 12:43 +, Reid Thompson wrote:
> > > > On Sat, 2015-05-09 at 16:08 +0200, Paul Menzel wrote:
> > > > > Am Dienstag, den 05.05.2015, 13:11 + schrieb Reid Thompson:
> > > > > > On Tue, 2015-05-05 at 07:55 +0200, Paul Menzel wrote:
> > > > > > > Am Samstag, den 02.05.2015, 11:58 + schrieb Joakim Tjernlund:
> > > > > > > > You need to set LDFLAGS too
> > > > > > > 
> > > > > > > Unfortunately it still fails to build when passing
> > > > > > > `LDFLAGS='-fsanitize=address'`.

[…]

> add linking to asan to your compile command
> 
> -lasan
> 
> that seems to work for my environment

thank you so much! Building Evolution-Data-Server worked for me too!

$ CFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer" 
LDFLAGS="-fsanitize=address -lasan" ./configure --disable-uoa
$ CFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer" 
LDFLAGS="-fsanitize=address -lasan" make # environment variables not necessary

Let’s see what bugs will get caught now!


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] [RFH] Using the memory error detector AddressSanitizer (ASan)

2015-05-15 Thread Reid Thompson
On Wed, 2015-05-13 at 08:36 +0200, Paul Menzel wrote:
> Am Montag, den 11.05.2015, 12:54 + schrieb Reid Thompson:
> > On Mon, 2015-05-11 at 12:43 +, Reid Thompson wrote:
> > > On Sat, 2015-05-09 at 16:08 +0200, Paul Menzel wrote:
> > > > Am Dienstag, den 05.05.2015, 13:11 + schrieb Reid Thompson:
> > > > > On Tue, 2015-05-05 at 07:55 +0200, Paul Menzel wrote:
> > > > > > Am Samstag, den 02.05.2015, 11:58 + schrieb Joakim Tjernlund:
> > > > > > > You need to set LDFLAGS too
> > > > > > 
> > > > > > Unfortunately it still fails to build when passing
> > > > > > `LDFLAGS='-fsanitize=address'`.
> > > > > 
> > > > > what is your complete build command and the error output
> > > > 
> > > > /bin/sh ../libtool  --tag=CC   --mode=link gcc ...
> > >
> > > from the brief looking that I did, building as you want requires the
> > > compilation to be done with clang -- correct???   not gcc ??? 
> > 
> > ok - i see both:
> > AddressSanitizer is a part of LLVM starting with version 3.1 and a part
> > of GCC starting with version 4.8
> > 
> > and
> > 
> > In order to use AddressSanitizer you will need to compile and link
> > your program using clang with the -fsanitize=address switch.
> > 
> > on https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer
> 
> The information is outdated as you found out. Current GCC supports ASan
> too.
> 
> > i have 
> > gcc version 4.8.4 (Gentoo 4.8.4 p1.4, pie-0.6.1)
> > 
> > and  the below works for me.
> > 
> > % cat tests/use-after-free.c
> > #include 
> > int main() {
> >   char *x = (char*)malloc(10 * sizeof(char*));
> >   free(x);
> >   return x[5];
> > }
> > 
> > gcc  -fsanitize=address -O1 -fno-omit-frame-pointer -g 
> > tests/use-after-free.c
> > 
> > this also works for me
> > 
> > clang -fsanitize=address -O1 -fno-omit-frame-pointer -g   
> > tests/use-after-free.c
> 
> Yes, that works for me too. The problem seems to be with Evolution’s
> build system.
> 
> 
> Thanks,
> 
> Paul

add linking to asan to your compile command

-lasan

that seems to work for my environment

reid

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] saved draft edited as new message shows html (signs)

2015-05-15 Thread John Lauterbach
Problem appears to be solved by upgrading Ubuntu from 14.04 to 15.04 
and downloading Evolution 3.16.0 from Fabien Tassin's webpage.
Thank you for your assistance.
John
-Original Message-
From: Milan Crha 
To: evolution-list@gnome.org
Subject: Re: [Evolution] saved draft edited as new message shows html 
(signs)
Date: Wed, 13 May 2015 08:14:05 +0200
On Wed, 2015-05-13 at 00:24 -0400, John Lauterbach wrote:
> and no change in evolution (3.13.7)
Hi,
and it had been surely fixed [1] in the stable version of evolution,
like the current 3.16.2. Your 3.13.7 is utterly old *development*
version. Please build the stable version, like the 3.16.x series.
> How do I get the message I want to edit?
Use updated stable version.
Bye,
Milan
[1] https://bugzilla.gnome.org/show_bug.cgi?id=740754
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list