Re: GCC 5.3.0: ASAN gives "unknown-crash" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2016-01-11 at 09:35 +0100, Markus Trippelsdorf wrote:
> On 2016.01.10 at 22:45 -0500, Paul Smith wrote:
> > On Sun, 2016-01-10 at 22:04 -0500, Paul Smith wrote:
> > > ==7750==ERROR: AddressSanitizer: unknown-crash on address
> > > 0x7f8522ce3850 
> > >   at pc 0x0000008a3784 bp 0x7fff20876dd0 sp 0x7fff20876dc8
> > >   WRITE of size 800008 at 0x7f8522ce3850 thread T0
> > 
> > FWIW I just rebuilt my code with the system compiler that comes with my
> > system (Ubuntu GNOME 15.10), "gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1
> > 20151010" and I see identical behavior to this there as well.
> 
> It is hard to tell what is going on without seeing the code.  The first
> thing you should try is to build your app and testsuite with
> -fsanitize=undefined and see if anything pops up.
> 
> If not, then please try to reduce the issue further and open a
> bugreport.

Yeah.  Unfortunately this is a very complicated bit of code
(implementing a thread-tolerant hash table completely in a header file
using templates, so the method is inlined).

I've confirmed that taking out optimization "solves" the problem in that
my unoptimized test suite runs without any ASAN errors.

I'll try to come up with a reduced test case.  I'll see if I can run
with ubsan but when I last tried it I got linker errors that I'll have
to work around (I owe you a bug report for that as well).



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux