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

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #9 from Jakub Jelinek --- Short testcase (meant for c-c++-common/asan/pr80308.c (or gcc.dg/asan/pr80308.c): /* PR sanitizer/80308 */ /* { dg-do run } */ __attribute__((noinline, noclone)) int foo (char *a) { int i, j = 0; asm vol

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

2017-04-04 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #8 from Bernd Edlinger --- Yeah, the patched asan.c works!

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

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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

2017-04-04 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #6 from Bernd Edlinger --- this looks suspicious: --- asan.c.jj 2017-03-27 10:25:01.0 +0200 +++ asan.c 2017-04-04 21:15:31.444941816 +0200 @@ -2762,7 +2762,8 @@ asan_store_shadow_bytes (gimple_stmt_ite unsigned

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

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #5 from Jakub Jelinek --- (In reply to Bernd Edlinger from comment #4) > weird, in function OTServerBaseNode::addReference > the shadow ram is initialize correctly, and it > is overwritten in line 671 immediately before the crash: >

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

2017-04-04 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #4 from Bernd Edlinger --- weird, in function OTServerBaseNode::addReference the shadow ram is initialize correctly, and it is overwritten in line 671 immediately before the crash: => 0x129fc870 rlwinm r9,r29,29,3,31 2: x/i 0x3

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

2017-04-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #3 from Martin Liška --- Ok, looks there's just ppc64 in the compile farm. Running on gcc110, asan.exp works all fine except c-c++-common/asan/swapcontext-test-1.c. I also verified that w/ -m32, shadow memory in properly prepared: =

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

2017-04-04 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 --- Comment #2 from Bernd Edlinger --- (In reply to Martin Liška from comment #1) > I'll take a look. Can I reproduce it on a machine we have in compile farm? No, idea, if I find time, I will try to get a smaller test case.

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

2017-04-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80308 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org Assig