[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #15 from Jakub Jelinek  ---
Fixed.

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

--- Comment #14 from Jakub Jelinek  ---
Author: jakub
Date: Wed Apr  5 13:17:15 2017
New Revision: 246703

URL: https://gcc.gnu.org/viewcvs?rev=246703=gcc=rev
Log:
PR sanitizer/80308
* asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
for big endian.

* c-c++-common/asan/pr80308.c: New test.

Added:
trunk/gcc/testsuite/c-c++-common/asan/pr80308.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/asan.c
trunk/gcc/testsuite/ChangeLog

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

Martin Liška  changed:

   What|Removed |Added

   Assignee|marxin at gcc dot gnu.org  |unassigned at gcc dot 
gnu.org

--- Comment #13 from Martin Liška  ---
Thanks Jakub!

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

--- Comment #12 from Bernd Edlinger  ---
(In reply to Bernd Edlinger from comment #11)
> (In reply to Jakub Jelinek from comment #10)
> > Created attachment 41131 [details]
> > gcc7-pr80308.patch
> > 
> > Full patch (untested so far).
> 
> Thanks!
> I will give it a real-world test.

I can confirm, that the test works on the original target:
crash is there with unpatched gcc and fixed with above patch.

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

--- Comment #11 from Bernd Edlinger  ---
(In reply to Jakub Jelinek from comment #10)
> Created attachment 41131 [details]
> gcc7-pr80308.patch
> 
> Full patch (untested so far).

Thanks!
I will give it a real-world test.

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

--- Comment #10 from Jakub Jelinek  ---
Created attachment 41131
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41131=edit
gcc7-pr80308.patch

Full patch (untested so far).

[Bug sanitizer/80308] [7 Regression] asan crash on big-endian powerpc-linux target

2017-04-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|--- |7.0
Summary|asan crash on big-endian|[7 Regression] asan crash
   |powerpc-linux target|on big-endian powerpc-linux
   ||target