[Bug sanitizer/61771] Regressions in ASan testsuite on ARM Linux

2014-07-15 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61771 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- So looks like fast unwinding in libsanitizer is not portable to GCC for ARM Linux target because of incompatible frame pointer value. But how is libsanitizer going to identify

[Bug testsuite/62060] g++.dg/tsan/cond_race.C triggers heap-use-after-free

2014-08-08 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62060 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to vries from comment #1) Tentative patch: ... diff --git a/gcc/testsuite/g++.dg/tsan/cond_race.C b/gcc/testsuite/g++.dg/tsan/cond_race.C index a937614..90dfb19

[Bug c++/62017] AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used

2014-09-18 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62017 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added CC||chefmax

[Bug testsuite/63291] New: ASan reports stack-buffer-overflow in some cilkplus tests.

2014-09-18 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu These tests failed with stack-buffer-overflow if run with ASan enabled: FAIL: c-c

[Bug c++/62017] AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used

2014-09-18 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62017 --- Comment #3 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Test fails only if compile on -O0 and -Os optimization levels: $ ~/install/master/bin/g++ diamond_virt.cc -fsanitize=address -Os On -O1, -O2 and -O3 ASan does not report any

[Bug testsuite/63292] New: ASan reports global-buffer-overflow in gcc.dg/vect/pr59594.c.

2014-09-18 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu This test fails at line 20 with global buffer overflow: $ ~/install/master/bin

[Bug testsuite/63297] New: ASan reported heap-use-after-free in g++.old-deja/g++.law/virtual3.C.

2014-09-18 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 33512 -- https://gcc.gnu.org/bugzilla

[Bug testsuite/63299] New: ASan reported alloc-dealloc-mismatch in g++.old-deja/g++.jason/init3.C

2014-09-18 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 33513 -- https://gcc.gnu.org/bugzilla

[Bug testsuite/63305] New: ASan reported heap-buffer-overflow in gcc.target/i386/avx256-unaligned-load{store}-7.c

2014-09-19 Thread chefmax at gcc dot gnu.org
Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu ASan reported

[Bug sanitizer/63369] many asan test cases fail on ARM

2014-09-25 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63369 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added CC||chefmax

[Bug testsuite/63305] ASan reported heap-buffer-overflow in gcc.target/i386/avx256-unaligned-load{store}-7.c

2014-09-25 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63305 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Still fails on trunk: $ ./xgcc -B./ ~/workspace/downloads/gcc/gcc/testsuite/gcc.target/i386/avx256-unaligned-load-7.c -fsanitize=address -O3 -dp -mavx -mavx256-split-unaligned

[Bug testsuite/58867] asan and ubsan tests not run for installed testing

2014-10-03 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58867 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added CC||chefmax

[Bug sanitizer/63507] New: boostrap-asan failure: /usr/bin/ld: /home/max/build/bootstrap-asan/./gcc/liblto_plugin.so: error loading plugin

2014-10-10 Thread chefmax at gcc dot gnu.org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org

[Bug testsuite/59897] FAIL: c-c++-common/asan/use-after-return-1.c -O* output pattern test, is 1: 0x2285020

2014-01-23 Thread chefmax at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59897 --- Comment #5 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Jan 23 12:48:25 2014 New Revision: 206961 URL: http://gcc.gnu.org/viewcvs?rev=206961root=gccview=rev Log: 2014-01-23 Dominique Dhumieres domi...@lps.ens.fr PR

[Bug sanitizer/60055] New: Invalid binding of __tsan_default_options

2014-02-04 Thread chefmax at gcc dot gnu.org
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org It is impossible to override default value

[Bug sanitizer/60055] Invalid binding of __tsan_default_options

2014-02-04 Thread chefmax at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60055 --- Comment #1 from chefmax at gcc dot gnu.org --- Created attachment 32034 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32034action=edit Proposed patch Attached patch seems to fix the bug. $ readelf -s ~/gcc-master-install/lib64

[Bug sanitizer/60055] Invalid binding of __tsan_default_options

2014-02-04 Thread chefmax at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60055 --- Comment #4 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to Dmitry Vyukov from comment #3) Hi, Does this work for you http://llvm.org/viewvc/llvm-project?view=revisionrevision=200747 ? These callbacks are intended

[Bug sanitizer/60055] Invalid binding of __tsan_default_options

2014-02-04 Thread chefmax at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60055 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug other/60681] New: Libbacktrace library doesn't work with QEMU in application mode

2014-03-27 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: v.garbuzov at samsung dot com, y.gribov at samsung dot com The libbacktrace library doesn't work well with QEMU in application mode. $ arm

[Bug sanitizer/61530] [4.10 Regression] segfault with asan

2014-06-20 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61530 --- Comment #7 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Jun 20 10:26:55 2014 New Revision: 211846 URL: https://gcc.gnu.org/viewcvs?rev=211846root=gccview=rev Log: 2014-06-18 Yury Gribov y.gri...@samsung.com

[Bug sanitizer/61771] New: Regressions in ASan testsuite on ARM Linux

2014-07-10 Thread chefmax at gcc dot gnu.org
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, y.gribov at samsung dot com

[Bug ipa/63696] New: Alloc-dealloc-mismatch in ipa-icf.c

2014-10-31 Thread chefmax at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: ygribov at gcc dot gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu Created attachment 33850 -- https

[Bug ipa/63696] Alloc-dealloc-mismatch in ipa-icf.c

2014-10-31 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63696 --- Comment #3 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Oct 31 10:53:36 2014 New Revision: 216954 URL: https://gcc.gnu.org/viewcvs?rev=216954root=gccview=rev Log: gcc/ 2014-10-31 Max Ostapenko m.ostape

[Bug ipa/63696] Alloc-dealloc-mismatch in ipa-icf.c

2014-11-06 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63696 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug driver/64690] -freport-bug issue with comments

2015-01-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64690 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Jan 22 10:55:32 2015 New Revision: 219990 URL: https://gcc.gnu.org/viewcvs?rev=219990root=gccview=rev Log: 2015-01-22 Max Ostapenko m.ostape

[Bug driver/64690] -freport-bug issue with comments

2015-01-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64690 --- Comment #1 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Thanks, I'll send the fix shortly.

[Bug sanitizer/64820] New: Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.

2015-01-27 Thread chefmax at gcc dot gnu.org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.

2015-03-18 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #4 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Fixed by r22145.

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.

2015-03-18 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0) (0x0, 0x0) if ssp is enabled.

2015-03-16 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #2 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Mon Mar 16 11:17:32 2015 New Revision: 221457 URL: https://gcc.gnu.org/viewcvs?rev=221457root=gccview=rev Log: 2015-03-16 Max Ostapenko m.ostape

[Bug target/65624] New: ICE in aarch64-builtins.c when expanding 4-argument aarch64 intrinsic.

2015-03-30 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org Host: i686-linux-gnu Target: aarch64-linux-gnu Build: i686-pc-linux-gnu Created attachment 35178 -- https

[Bug target/65624] ICE in aarch64-builtins.c when expanding 4-argument aarch64 intrinsic.

2015-03-30 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65624 --- Comment #1 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Created attachment 35179 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35179action=edit Trivial fix Trivial fix.

[Bug target/65624] ICE in aarch64-builtins.c when expanding 4-argument aarch64 intrinsic.

2015-03-30 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65624 --- Comment #4 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to ktkachov from comment #3) Actually, r218021 touches the argument expansion rather than builtin expansion functions, so I'm not sure that would fix it. But still, I

[Bug target/65624] ICE in aarch64-builtins.c when expanding 4-argument aarch64 intrinsic.

2015-04-01 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65624 --- Comment #6 from Maxim Ostapenko chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Apr 1 11:18:03 2015 New Revision: 221807 URL: https://gcc.gnu.org/viewcvs?rev=221807root=gccview=rev Log: 2015-04-01 Max Ostapenko m.ostape

[Bug target/65624] ICE in aarch64-builtins.c when expanding 4-argument aarch64 intrinsic.

2015-04-01 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65624 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug testsuite/66046] UBSan output pattern tests fail on target ARM board.

2015-05-07 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66046 --- Comment #5 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to Marek Polacek from comment #3) Oops. Let me prepare a patch. But I won't be able to test -- are you willing to test it once I have something?. If it passes both

[Bug testsuite/66046] New: UBSan output pattern tests fail on target ARM board.

2015-05-07 Thread chefmax at gcc dot gnu.org
Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: tetra2005 at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: arm-linux-gnueabi I see lots of output pattern test

[Bug c++/57271] ARM: gcc generates insufficient alignment for memory passed as extra argument for function return large composite type

2015-05-05 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57271 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added Target|arm |arm-linux

[Bug target/57271] ARM: gcc generates insufficient alignment for memory passed as extra argument for function return large composite type

2015-05-13 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57271 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added CC||ktkachov

[Bug sanitizer/66908] Uninitialized variable when compiled with UBsan

2015-07-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66908 --- Comment #10 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to Marek Polacek from comment #9) Oh silly me! This should work; Maxim, could you possibly try this patch? Sorry, Marek, nothing changed for C++ testcase: D

[Bug sanitizer/66908] Uninitialized variable when compiled with UBsan

2015-07-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66908 --- Comment #12 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to Marek Polacek from comment #11) Hmm, still can't reproduce even with vanilla trunk: A = A.0; D.2679 = get.__pfn; D.2680 = (long int) D.2679; D.2681

[Bug sanitizer/66908] Uninitialized variable when compiled with UBsan

2015-07-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66908 Maxim Ostapenko chefmax at gcc dot gnu.org changed: What|Removed |Added CC||chefmax

[Bug sanitizer/66908] Uninitialized variable when compiled with UBsan

2015-07-23 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66908 --- Comment #15 from Maxim Ostapenko chefmax at gcc dot gnu.org --- (In reply to Marek Polacek from comment #14) This particular issue is fixed for GCC 6. Maxim, could you please open a separate PR for the ARM issue? I'll try to fix

[Bug sanitizer/66977] New: -fsanitize=shift may introduce uninitialized variables

2015-07-23 Thread chefmax at gcc dot gnu.org
Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, mpolacek at gcc dot

[Bug sanitizer/66880] New: 'error: case label does not reduce to an integer constant' with -fsanitize=shift -std=gnu99.

2015-07-15 Thread chefmax at gcc dot gnu.org
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #5 from Maxim Ostapenko --- (In reply to Dominique d'Humieres from comment #4) > With the patch in comment 2, bootstrap completed without any problem. > > Preliminary tests for g++ and asan > > === g++ Summary for

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #8 from Maxim Ostapenko --- Created attachment 36556 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36556=edit The patch I've posted to gcc-patches ML for review.

[Bug sanitizer/68042] [6 Regression] c-c++-common/asan/(memcmp-1.c|sanity-check-pure-c-1.c) failures on x86_64-apple-darwin14 after r229111

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68042 --- Comment #1 from Maxim Ostapenko --- I wonder if the fix would be just output patterns adjustment (just like here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63939)?

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #12 from Maxim Ostapenko --- Should be fixed on trunk. Dominique, let me know if the issue still occurs.

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #11 from Maxim Ostapenko --- Author: chefmax Date: Thu Oct 22 09:47:17 2015 New Revision: 229168 URL: https://gcc.gnu.org/viewcvs?rev=229168=gcc=rev Log: Fix bootstrap on x86_64-apple-darwin14 after r229119. libsanitizer/

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #10 from Maxim Ostapenko --- (In reply to Dominique d'Humieres from comment #9) > > Created attachment 36556 [details] > > The patch I've posted to gcc-patches ML for review. > > I have not tested the part "removes -lc++abi flag for

[Bug sanitizer/68042] [6 Regression] c-c++-common/asan/(memcmp-1.c|sanity-check-pure-c-1.c) failures on x86_64-apple-darwin14 after r229111

2015-10-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68042 --- Comment #3 from Maxim Ostapenko --- Created attachment 36562 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36562=edit Draft patch. Here an expected patch for memcmp-1.c and sanity-check-pure-c-1.c output patterns. Does it fix the

[Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.

2015-10-22 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68016 Maxim Ostapenko changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.

2015-10-26 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68016 --- Comment #4 from Maxim Ostapenko --- Actualy, LLVM is not better here (perhaps even worse). Consider the following testcase (it's the same Jakub provided in PR63888): max@max:/tmp$ cat libfoo.c long f = 4; long foo (long *p) { return *p;

[Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.

2015-10-27 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68016 --- Comment #8 from Maxim Ostapenko --- (In reply to Reid Kleckner from comment #7) > (In reply to Jakub Jelinek from comment #6) > > Because symbol size is part of the ABI, and LLVM emits different symbol size > > between -fsanitize=address and

[Bug sanitizer/68099] arm-*-linux-gnueabihf -fsanitize=undefined warning: '' is used uninitialized in this function

2015-10-26 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68099 --- Comment #5 from Maxim Ostapenko --- (In reply to Jonathan Ben-Avraham from comment #3) > (In reply to Maxim Ostapenko from comment #2) > > I actually believe this is a dup of PR66977, that was fixed by Marek quite > > time ago. Could you try

[Bug sanitizer/68122] ICE in gcc/toplev.c:353 with -fsanitize=undefined and -fgnu-tm

2015-10-28 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68122 Maxim Ostapenko changed: What|Removed |Added CC||chefmax at gcc dot gnu.org

[Bug sanitizer/68099] arm-*-linux-gnueabihf -fsanitize=undefined warning: '' is used uninitialized in this function

2015-10-26 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68099 Maxim Ostapenko changed: What|Removed |Added CC||chefmax at gcc dot gnu.org

[Bug sanitizer/68042] [6 Regression] c-c++-common/asan/(memcmp-1.c|sanity-check-pure-c-1.c) failures on x86_64-apple-darwin14 after r229111

2015-10-23 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68042 --- Comment #6 from Maxim Ostapenko --- Should be fix on trunk.

[Bug sanitizer/68042] [6 Regression] c-c++-common/asan/(memcmp-1.c|sanity-check-pure-c-1.c) failures on x86_64-apple-darwin14 after r229111

2015-10-23 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68042 --- Comment #5 from Maxim Ostapenko --- Author: chefmax Date: Fri Oct 23 07:22:37 2015 New Revision: 229212 URL: https://gcc.gnu.org/viewcvs?rev=229212=gcc=rev Log: Fix ASan output pattern tests on Darwin. gcc/testsuite/ PR

[Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68016 --- Comment #2 from Maxim Ostapenko --- Ok, I guess won't fix here.

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.

2015-11-17 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #7 from Maxim Ostapenko --- (In reply to joakim.tjernl...@transmode.se from comment #6) > Is this fix in gcc 4.9.3? No, this didn't go to GCC 4.9, only to GCC 5. > If not, will go into 4.9.4? Well, actually we didn't plan backport

[Bug sanitizer/68016] New: ASan doesn't catch overflow in globals when COPY relocation is involved.

2015-10-19 Thread chefmax at gcc dot gnu.org
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

[Bug bootstrap/63888] [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror

2015-10-19 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63888 Maxim Ostapenko changed: What|Removed |Added CC||chefmax at gcc dot gnu.org

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #1 from Maxim Ostapenko --- Yes, this is mine.

[Bug bootstrap/68041] [6 Regression] Bootstrap broken on x86_64-apple-darwin14 at revision r229119

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68041 --- Comment #2 from Maxim Ostapenko --- Created attachment 36555 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36555=edit First version of the fix. Dominique, I'm sorry about that. Could you please try attached patch? There may be other

[Bug sanitizer/63958] [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63958 --- Comment #14 from Maxim Ostapenko --- Author: chefmax Date: Wed Oct 21 07:44:35 2015 New Revision: 229113 URL: https://gcc.gnu.org/viewcvs?rev=229113=gcc=rev Log: libsanitizer/ PR sanitizer/63958 Reapply: 2014-10-14

[Bug bootstrap/63888] [5 Regression] bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror

2015-10-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63888 --- Comment #41 from Maxim Ostapenko --- Author: chefmax Date: Wed Oct 21 07:47:54 2015 New Revision: 229114 URL: https://gcc.gnu.org/viewcvs?rev=229114=gcc=rev Log: libsanitizer/ PR bootstrap/63888 Reapply: 2015-02-20

[Bug sanitizer/67867] UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

2015-10-06 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67867 --- Comment #2 from Maxim Ostapenko --- Created attachment 36451 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36451=edit Reprocase.

[Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

2015-10-06 Thread chefmax at gcc dot gnu.org
: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: chefmax at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.

2015-12-08 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #9 from Maxim Ostapenko --- Author: chefmax Date: Tue Dec 8 11:34:28 2015 New Revision: 231405 URL: https://gcc.gnu.org/viewcvs?rev=231405=gcc=rev Log: 2015-12-08 Maxim Ostapenko

[Bug sanitizer/64820] Libsanitizer fails with ((AddrIsAlignedByGranularity(addr + size))) != (0)" (0x0, 0x0) if ssp is enabled.

2015-12-08 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64820 --- Comment #10 from Maxim Ostapenko --- Should be fixed on gcc-4_9-branch.

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-11 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #2 from Maxim Ostapenko --- Dominique, could you please run ASan tests with ASAN_OPTIONS=debug=1:verbosity=2? This might be helpful for further debugging.

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-12 Thread chefmax at gcc dot gnu.org
ktrace available. > > > Le 11 janv. 2016 à 17:20, chefmax at gcc dot gnu.org > > <gcc-bugzi...@gcc.gnu.org> a écrit : > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 > > > > --- Comment #6 from Maxim Ostapenko --- > > Ok, it see

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-12 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #10 from Maxim Ostapenko --- Created attachment 37310 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37310=edit Proposed fix. « El Capitan » is OS X 10.11, right? So, this is my vision of the problem: In OS X 10.11+ or iOS

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-13 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #18 from Maxim Ostapenko --- Author: chefmax Date: Wed Jan 13 09:27:38 2016 New Revision: 232316 URL: https://gcc.gnu.org/viewcvs?rev=232316=gcc=rev Log: Cherry-pick r224315 and r241487 from upstream. PR sanitizer/69147

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-12 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #13 from Maxim Ostapenko --- Created attachment 37313 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37313=edit Second fix. My bad, could you try this one?

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-12 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #15 from Maxim Ostapenko --- Created attachment 37316 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37316=edit Third attempt. Eh, it seems that I missed one another commit from upstream that needed to be backported, sorry

[Bug sanitizer/71480] ASan should align string constants to shadow granularity.

2016-06-10 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71480 --- Comment #4 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Jun 10 12:57:14 2016 New Revision: 237306 URL: https://gcc.gnu.org/viewcvs?rev=237306=gcc=rev Log: 2016-06-10 Maxim Ostapenko <m.ostape...@samsung.com>

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-11 Thread chefmax at gcc dot gnu.org
test love? If yes, how? If no, I guess I have to > do a bootstrap with it, but how? > > TIA > > Dominique > > > Le 11 janv. 2016 à 10:23, chefmax at gcc dot gnu.org > > <gcc-bugzi...@gcc.gnu.org> a écrit : > > > > https://gcc.gnu.org/bugzilla/sho

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-11 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #6 from Maxim Ostapenko --- Ok, it seems that libasan calls some function to be intercepted while AsanInitInternal still not completed. Could you try to run memcmp-1.exe under gdb to provide a backtrace from failed CHECK? This way,

[Bug sanitizer/69147] [5 Regression] Several hundred asan failures with 5.3.1 on x86_64-apple-darwin15

2016-01-13 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69147 --- Comment #19 from Maxim Ostapenko --- Should be fixed now.

[Bug sanitizer/70541] unnoticed invalid dereference when using address sanitizer

2016-04-08 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70541 --- Comment #5 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Apr 8 10:46:13 2016 New Revision: 234827 URL: https://gcc.gnu.org/viewcvs?rev=234827=gcc=rev Log: 2016-04-08 Maxim Ostapenko <m.ostape...@samsung.com>

[Bug sanitizer/70474] [4.9 Regression] Several hundred asan failures with 4.9.4 on x86_64-apple-darwin15

2016-04-05 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70474 --- Comment #6 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Tue Apr 5 11:52:34 2016 New Revision: 234744 URL: https://gcc.gnu.org/viewcvs?rev=234744=gcc=rev Log: Cherry-pick r224315,221379 and r241487 from upstream. libsanitizer

[Bug sanitizer/64354] no preprocessor symbol __SANITIZE_THREAD__

2016-05-19 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64354 --- Comment #2 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu May 19 12:05:59 2016 New Revision: 236457 URL: https://gcc.gnu.org/viewcvs?rev=236457=gcc=rev Log: 2016-05-19 Maxim Ostapenko <m.ostape...@samsung.com>

[Bug sanitizer/70624] [6/7 Regression] Several hundred asan failures with 6.0 on x86_64-apple-darwin10.8

2016-04-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70624 --- Comment #11 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Apr 21 12:19:54 2016 New Revision: 235338 URL: https://gcc.gnu.org/viewcvs?rev=235338=gcc=rev Log: Cherry-pick r266868 from upstream. PR sanitizer/70624

[Bug sanitizer/70624] [6/7 Regression] Several hundred asan failures with 6.0 on x86_64-apple-darwin10.8

2016-04-21 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70624 --- Comment #10 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Apr 21 12:12:53 2016 New Revision: 235337 URL: https://gcc.gnu.org/viewcvs?rev=235337=gcc=rev Log: Cherry-pick r266868 from upstream. PR sanitizer/70624

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-02-02 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #32 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Feb 3 07:17:38 2017 New Revision: 245144 URL: https://gcc.gnu.org/viewcvs?rev=245144=gcc=rev Log: PR lto/79061 * asan.c (asan_add_global): Force

[Bug sanitizer/78663] [7 Regression] Hundreds of asan failures on x86_64-apple-darwin10 at r243019

2017-02-03 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78663 --- Comment #9 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Feb 3 12:17:59 2017 New Revision: 245149 URL: https://gcc.gnu.org/viewcvs?rev=245149=gcc=rev Log: PR sanitizer/78663 * sanitizer_common

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-02-03 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #33 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Feb 3 09:13:06 2017 New Revision: 245148 URL: https://gcc.gnu.org/viewcvs?rev=245148=gcc=rev Log: PR lto/79061 * asan.c (asan_add_global): Force

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-01-23 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #17 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Mon Jan 23 09:12:29 2017 New Revision: 244773 URL: https://gcc.gnu.org/viewcvs?rev=244773=gcc=rev Log: Revert fix for PR lto/79061 due to this regresses compile-time

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-01-24 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #19 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Jan 25 07:45:40 2017 New Revision: 244890 URL: https://gcc.gnu.org/viewcvs?rev=244890=gcc=rev Log: PR lto/79061 gcc/ * asan.c (get_translation_unit_decl

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-01-30 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #30 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Mon Jan 30 16:06:15 2017 New Revision: 245033 URL: https://gcc.gnu.org/viewcvs?rev=245033=gcc=rev Log: PR lto/79061 * asan.c (get_translation_unit_decl

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-01-18 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #15 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Jan 18 16:06:31 2017 New Revision: 244581 URL: https://gcc.gnu.org/viewcvs?rev=244581=gcc=rev Log: PR lto/79061 gcc/ * asan.c

[Bug sanitizer/63958] [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu

2016-11-08 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63958 --- Comment #15 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Tue Nov 8 22:06:02 2016 New Revision: 241978 URL: https://gcc.gnu.org/viewcvs?rev=241978=gcc=rev Log: PR sanitizer/63958 Reapply: 2014-10-14

[Bug sanitizer/78307] [7 Regression] missing symbols in libubsan without changing the soname

2016-11-16 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78307 --- Comment #8 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Nov 16 11:13:19 2016 New Revision: 242478 URL: https://gcc.gnu.org/viewcvs?rev=242478=gcc=rev Log: PR sanitizer/78307 * ubsan/ubsan_handlers.cc

[Bug lto/79042] LTO doesn't propagate node->dynamically_initialized bit for varpool nodes.

2017-01-11 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79042 --- Comment #4 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Jan 12 07:44:17 2017 New Revision: 244347 URL: https://gcc.gnu.org/viewcvs?rev=244347=gcc=rev Log: PR lto/79042 * lto-cgraph.c (lto_output_varpool_node

[Bug sanitizer/78887] [7 Regression] Failure to build aarch64 allmodconfig Linux kernel 4.9

2017-01-13 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78887 --- Comment #8 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Fri Jan 13 10:08:50 2017 New Revision: 244402 URL: https://gcc.gnu.org/viewcvs?rev=244402=gcc=rev Log: PR sanitizer/78887 * asan.c

[Bug lto/79042] LTO doesn't propagate node->dynamically_initialized bit for varpool nodes.

2017-01-11 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79042 --- Comment #2 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Jan 11 12:57:42 2017 New Revision: 244314 URL: https://gcc.gnu.org/viewcvs?rev=244314=gcc=rev Log: PR lto/79042 * lto-cgraph.c (lto_output_varpool_node

[Bug lto/79042] LTO doesn't propagate node->dynamically_initialized bit for varpool nodes.

2017-01-11 Thread chefmax at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79042 --- Comment #3 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Wed Jan 11 16:53:52 2017 New Revision: 244324 URL: https://gcc.gnu.org/viewcvs?rev=244324=gcc=rev Log: PR lto/79042 * lto-cgraph.c (lto_output_varpool_node

  1   2   >