[Bug c++/71182] New: parser.c cp_lexer_previous_token sanitizer detects member call on null pointer

2016-05-18 Thread zeccav at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- // ../../gcc7/gcc/cp/parser.c:766:7: runtime error: member call on null pointer of type 'struct vec' class A { template void

[Bug tree-optimization/70876] ICE in chkp_find_bounds: Unexpected tree code with_size_expr

2016-05-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70876 --- Comment #4 from Vittorio Zecca --- Will you please check gcc 6.1 with your fix against bug 70877? I get an ICE, could it be a regression? gcc -fcheck-pointer-bounds -mmpx gccerr36.c gccerr36.c: In function ‘bar’: gccerr36.c:12:8: warning:

[Bug c/71074] New: combine.c in simplify_comparison sanitizer detects left shift of negative value

2016-05-11 Thread zeccav at gmail dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -O2 sanitizer undefined runtime error */ /* In gcc trunk 7.0 */ /* ../../gcc7/gcc/combine.c:12340:18: runtime error: left

[Bug c/71074] combine.c in simplify_comparison sanitizer detects left shift of negative value

2016-05-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71074 Vittorio Zecca changed: What|Removed |Added Severity|normal |minor

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2016-05-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #5 from Vittorio Zecca --- Still in trunk: ../../gcc7/gcc/fortran/data.c:191:32: runtime error: null pointer passed as argument 2, which is declared to never be null here: memcpy ([start], rvalue->value.character.string, len *

[Bug c++/71158] New: ICE in tree_to_uhwi with -fsanitize=address

2016-05-17 Thread zeccav at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Compiling the following with g++ -fsanitize=address int main() { int offset=1; char buf[offset]=""; } I get the following: p.C:5:1: internal compiler error: in tr

[Bug middle-end/70526] [5/6 Regression] GCC 6 miscompiles Firefox JIT compiler

2016-05-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment

[Bug sanitizer/71163] New: ICE in get_ubsan_type_info_for_type

2016-05-17 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com 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 Target Milestone: --- This one seems to be fixed in trunk, I

[Bug middle-end/70526] [5/6 Regression] GCC 6 miscompiles Firefox JIT compiler

2016-05-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526 --- Comment #31 from Vittorio Zecca --- It seems the following is related to the FF compilation issue: The program runs differently depending on the optimization level. With gcc 5.3.0 runs same regardless of the optimization level. // g++

[Bug libstdc++/70722] include_next in cmath skips user-defined wrapper

2016-05-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70722 --- Comment #7 from Vittorio Zecca --- Yes, this fixed my problem with mozilla firefox compilation, Thank you!

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #4 from Vittorio Zecca --- And in 6.1.0 ../../gcc-6.1.0/gcc/fortran/data.c:191:32: runtime error: null pointer passed as argument 2, which is declared to never be null

[Bug fortran/50410] [4.9/5/6/7 Regression] ICE in record_reference

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #22 from Vittorio Zecca --- Same ICE in 6.1.0

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2016-04-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #11 from Vittorio Zecca --- Same ICE in 6.1.0

[Bug other/69412] bootstrap-ubsan profiledbootstrap issues

2016-05-01 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69412 --- Comment #5 from Vittorio Zecca --- Bug in comment 4 still in gcc 7

[Bug rtl-optimization/67483] combine.c sanitizer detects undefined negative left shift

2016-05-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67483 --- Comment #2 from Vittorio Zecca --- Yes I confirm it is in trunk: ../../gcc7/gcc/combine.c:7727:40: runtime error: shift exponent -1 is negative combine.c:7727 is "& unsigned HOST_WIDE_INT) 1 << count)) - 1)) == 0" count==-1 ?

[Bug middle-end/70877] [MPX] ICE in in convert_move

2016-05-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70877 --- Comment #2 from Vittorio Zecca --- I confirm fixed in 6.1.0 and trunk. Thank you!

[Bug debug/67482] dwarf2out.c sanitizer detects undefined behaviour negation of -9223372036854775808

2016-05-08 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67482 --- Comment #3 from Vittorio Zecca --- I confirm I cannot reproduce it on 6.1.0 nor 7

[Bug debug/67482] dwarf2out.c sanitizer detects undefined behaviour negation of -9223372036854775808

2016-05-08 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67482 --- Comment #5 from Vittorio Zecca --- Running the sanitized version of gcc against the testsuite I got no runtime error in dwarf2out.c So I believe this issue can be closed as FIXED.

[Bug fortran/71027] New: -fsanitize=address catches out of bounds access on assumed size array only with -O0

2016-05-09 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! -fsanitize=address -O0 catches out of bounds access on assumed size array ! any other optimization level, even -Og

[Bug fortran/71027] -fsanitize=address catches out of bounds access on assumed size array only with -O0

2016-05-09 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71027 --- Comment #2 from Vittorio Zecca --- Yes, you are right, and probably in real programs the subroutine would not be optimized away. Thank you for the explanation.

[Bug fortran/50410] [5/6/7 Regression] ICE in record_reference

2016-08-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 Vittorio Zecca changed: What|Removed |Added Version|4.8.0 |7.0 --- Comment #26 from Vittorio

[Bug fortran/61907] load of invalid value for 'bool' in trans-array.c trans_array_constructor

2016-08-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61907 Vittorio Zecca changed: What|Removed |Added Version|4.9.1 |7.0 --- Comment #6 from Vittorio Zecca

[Bug fortran/61910] undefined computation in trans-expr.c gfc_conv_cst_int_power

2016-08-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61910 --- Comment #7 from Vittorio Zecca --- Still there in gcc 7.0 trunk 239276

[Bug fortran/61908] load of invalid value for 'expr_t' in interface.c compare_actual_formal

2016-08-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61908 Vittorio Zecca changed: What|Removed |Added Version|4.9.1 |7.0 --- Comment #6 from Vittorio Zecca

[Bug c/74265] address sanitizer detects stack-buffer-overflow in set_nonincremental_init_from_string in c-typeck.c

2016-08-11 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74265 --- Comment #1 from Vittorio Zecca --- The following is a shorter reproducer: struct B { __CHAR32_TYPE__ S[6]; } d[] = { { { U"foo" } }, [0].S[2] = U'x' };

[Bug java/74750] New: Address sanitizer detects stack-buffer-underflow in GC_push_all_eager in mark.c

2016-08-12 Thread zeccav at gmail dot com
: normal Priority: P3 Component: java Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- While generating 7.0 trunk with sanitized java I get the following in mark.c:1468 "q = *p;" libtool: link: /home

[Bug middle-end/67485] expmed.c sanitizer detects overflow

2016-08-15 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485 Vittorio Zecca changed: What|Removed |Added Version|5.2.0 |7.0 --- Comment #3 from Vittorio Zecca

[Bug c++/75860] Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75860 --- Comment #2 from Vittorio Zecca --- The preprocessed source is too big to be meaningful. I did try to shorten it but still too big and using so many firefox header files. It will be faster if you could download the firefox-48 source and try

[Bug c++/75860] Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75860 --- Comment #4 from Vittorio Zecca --- Created attachment 39369 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39369=edit xz-ipped reproducer This is the xzipped test case that is my reproducer for this issue. There are many compilation

[Bug c++/75860] New: Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- While compiling firefox version 48 with the trunk gcc 7.0 I get the following segmentation violation tree.h:3022 is "if (TREE_CODE (__t) !

[Bug c++/75860] Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75860 --- Comment #6 from Vittorio Zecca --- Created attachment 39410 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39410=edit xz-ipped original firefox source file Original firefox source file in xz format. This one is error free except for

[Bug c++/75860] Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75860 --- Comment #8 from Vittorio Zecca --- Compiling the big test case, 231025 lines, with trunk level 239276 of August 9th g++ -v Using built-in specs. COLLECT_GCC=g++

[Bug c++/75860] Segmentation violation in tree_check while compiling firefox 48

2016-08-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75860 --- Comment #11 from Vittorio Zecca --- I applied the fix from bug 72849 and the ICE disappeared. Many thanks for pointing me to the right place!

[Bug libgcc/77273] New: 1 << 31 is undefined in gcc/config/i386/cpuid.h:93

2016-08-16 Thread zeccav at gmail dot com
ponent: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- While compiling gcc itself, the sanitizer complains as follows: gcc-trunk-239276/libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places

[Bug debug/67482] dwarf2out.c sanitizer detects undefined behaviour negation of -9223372036854775808

2016-08-16 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67482 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-08-16 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 Vittorio Zecca changed: What|Removed |Added Version|5.2.0 |7.0 Severity|normal

[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'

2016-08-16 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496 --- Comment #11 from Vittorio Zecca --- Still in trunk 7.0 gcc-trunk-239276/gcc/fortran/trans-array.c:2243:27: runtime error: load of value 48, which is not a valid value for type 'bool'

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2017-02-23 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #7 from Vittorio Zecca --- Traveling now, back home end of March. Did you check the value of variable "len" maybe it's zero so it's not really a bug.

[Bug fortran/77327] AddressSanitizer: heap-use-after-free gcc-trunk-239276/gcc/fortran/interface.c:403 in compare_components

2016-08-24 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77327 --- Comment #5 from Vittorio Zecca --- The test case you propose, dec_structure_13.f90, does not trigger the asan memory checker. As I wrote before, the test case gfortran.dg/import4.f90 does trigger the asan memory checker. In your test case

[Bug fortran/77327] AddressSanitizer: heap-use-after-free gcc-trunk-239276/gcc/fortran/interface.c:403 in compare_components

2016-08-24 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77327 --- Comment #6 from Vittorio Zecca --- After applying the proposed patch the asan memory checker did not report any memory fault, in particular the heap-use-after-free in interface.c Fritz, do you have a -fsanitize=address version of gfortran,

[Bug fortran/77327] AddressSanitizer: heap-use-after-free gcc-trunk-239276/gcc/fortran/interface.c:403 in compare_components

2016-08-24 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77327 --- Comment #4 from Vittorio Zecca --- The reproducer I proposed comes from testcase gfortran.dg/import4.f90

[Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159

2016-08-25 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment

[Bug c/77486] New: ubsan detects runtime error: left shift of negative value -3 at real_hash in real.c:2890

2016-09-05 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Compiling the following with ubsan sanitized gcc f(void) { float y=0; if(y<0.1) y=1.0; } I get ../../gcc-tr

[Bug sanitizer/65828] [LTO] ICE in streamer_get_builtin_tree, at tree-streamer-in.c:1127

2016-09-22 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65828 --- Comment #11 from Vittorio Zecca --- Sorry I am traveling now I cannot help you.

[Bug fortran/77327] New: AddressSanitizer: heap-use-after-free gcc-trunk-239276/gcc/fortran/interface.c:403 in compare_components

2016-08-22 Thread zeccav at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Compiling the following: subroutine foo(a) type myT

[Bug c++/67737] [C++1z] ICE in make_decl_rtl, at varasm.c:1299

2016-08-25 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67737 --- Comment #9 from Vittorio Zecca --- (In reply to Andrew Pinski from comment #8) > (In reply to Vittorio Zecca from comment #7) > > With gcc 6.1.0, maybe a shorter reproducer > > /* gcc -fcheck-pointer-bounds -mmpx p.c */ > > That is a

[Bug fortran/77327] AddressSanitizer: heap-use-after-free gcc-trunk-239276/gcc/fortran/interface.c:403 in compare_components

2016-08-25 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77327 --- Comment #8 from Vittorio Zecca --- Yes, it seems to me that import4.f90 is sufficient to trigger the asan memory checker. How strange, even without "implicit none" the loader should have complained that "sub2" was referenced but undefined.

[Bug c/77383] New: -fcheck-pointer-bounds -mmpx ICE in make_decl_rtl at varasm.c

2016-08-25 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -fcheck-pointer-bounds -mmpx */ int main () { int size = 10; typedef struct { char val[size]; } block; block b; block

[Bug fortran/49630] [OOP] ICE on obsolescent deferred-length type bound character function

2017-03-25 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49630 --- Comment #14 from Vittorio Zecca --- (In reply to Dominique d'Humieres from comment #13) > > I am still having an ICE as in comment 11. > > Me too even on trunk (7.0.1)!-(I also get an ICE with the original test.) > Reopening the PR. > > >

[Bug middle-end/67338] fold-const sanitizer runtime error in roundup_loc

2017-03-19 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67338 --- Comment #1 from Vittorio Zecca --- Still in 7.0.1 ../../gcc-7-246252/gcc/fold-const.c:14253:11: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself

[Bug testsuite/67359] struct-layout-1_generate.c undefined behaviour

2017-03-19 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67359 Vittorio Zecca changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/33056] [Meta-bug] Data - statement related bugs

2017-03-18 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33056 Bug 33056 depends on bug 67497, which changed state. Bug 67497 Summary: data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 What

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2017-03-18 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2017-03-18 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #8 from Vittorio Zecca --- Just back from my travel. The sanitizer error message disappeared on trunk level 246252.

[Bug middle-end/80100] New: simplify-rtx.c sanitizer detects undefined behaviour with optimization

2017-03-20 Thread zeccav at gmail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- //gcc 7.0.1 trunk 246252 undefined behaviour with optimization //-O0 and -Og ok, higher levels get undefined long int f2 (long

[Bug middle-end/67338] fold-const sanitizer runtime error in roundup_loc

2017-03-21 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67338 --- Comment #5 from Vittorio Zecca --- I still have a similar issue in 7.0.1 ../../gcc-7-246252/gcc/fold-const.c:14253:11: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value

[Bug fortran/49630] [OOP] ICE on obsolescent deferred-length type bound character function

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49630 --- Comment #12 from Vittorio Zecca --- I am still having an ICE as in comment 11. Opening a new bug.

[Bug fortran/50542] gfortran should detect violation of Fortran 95 R536 (r178939)

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50542 --- Comment #3 from Vittorio Zecca --- Still present in 7.0.1

[Bug c++/68045] [concepts] segfault in contains_struct_check ../../gcc/gcc/tree.h:2971

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68045 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #1

[Bug fortran/44265] Link error with reference to parameter array in specification expression

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44265 --- Comment #24 from Vittorio Zecca --- It works on my x86_64-pc-linux-gnu with gfortran 7.0.1

[Bug fortran/50406] ld undefined reference to __MOD_str

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50406 --- Comment #5 from Vittorio Zecca --- With 7.0.1 20170318 compiles links and executes correctly.

[Bug fortran/50538] formal argument cannot be same as procedure name in ENTRY

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50538 --- Comment #3 from Vittorio Zecca --- Still in 7.0.1

[Bug c/67410] [5 Regression] c/c-typeck.c references out of bounds array

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67410 --- Comment #8 from Vittorio Zecca --- Fixed on 7.0.1

[Bug middle-end/77383] -fcheck-pointer-bounds -mmpx ICE with VLA struct return type

2017-03-20 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77383 --- Comment #3 from Vittorio Zecca --- Still in 7.0.1

[Bug middle-end/80100] simplify-rtx.c sanitizer detects undefined behaviour with optimization

2017-04-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80100 --- Comment #2 from Vittorio Zecca --- simplify-rtx.c:2743 is "HOST_WIDE_INT mask = INTVAL (trueop1) << count;"

[Bug middle-end/80100] simplify-rtx.c sanitizer detects undefined behaviour with optimization

2017-04-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80100 --- Comment #7 from Vittorio Zecca --- (In reply to Jakub Jelinek from comment #5) > Author: jakub > Date: Tue Apr 11 17:21:51 2017 > New Revision: 246851 > > URL: https://gcc.gnu.org/viewcvs?rev=246851=gcc=rev > Log: > PR

[Bug c/80413] New: sanitizer detects undefined behaviour in gcov-io.c using -ftest-coverage

2017-04-12 Thread zeccav at gmail dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* gcc -ftest-coverage */ /* gcc-trunk-246751/gcc/gcov-io.c:351:10: runtime error: null pointer passed as argument 2, which

[Bug middle-end/77486] ubsan detects runtime error: left shift of negative value -3 at real_hash in real.c:2890

2017-04-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77486 --- Comment #2 from Vittorio Zecca --- Still in trunk /home/vitti/1tb/vitti/test/gcc-trunk-239276/gcc/real.c:2889:25: runtime error: left shift of negative value -3

[Bug middle-end/77486] ubsan detects runtime error: left shift of negative value -3 at real_hash in real.c:2890

2017-04-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77486 Vittorio Zecca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/77486] ubsan detects runtime error: left shift of negative value -3 at real_hash in real.c:2890

2017-04-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77486 --- Comment #7 from Vittorio Zecca --- (In reply to Jakub Jelinek from comment #5) > Even r246252 is more than 2 weeks old. Why not latest trunk? Because I have no time to download and check every trunk.

[Bug middle-end/77486] ubsan detects runtime error: left shift of negative value -3 at real_hash in real.c:2890

2017-04-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77486 --- Comment #4 from Vittorio Zecca --- This is on trunk level 239276. Going to check on newer level 246252.

[Bug fortran/80395] New: verify_gimple fails with Error: invalid reference prefix with -O3 -finline-functions

2017-04-11 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Created attachment 41175 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41175=edit To be compiled with

[Bug libfortran/67540] string_intrinsics_inc.c sanitizer detects null pointer passed to memcpy

2017-04-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67540 --- Comment #9 from Vittorio Zecca --- This test case is wrong. It dereferences thrice a NULL pointer str4. Unfortunately -fcheck=pointer does not detect this one. Just added to the CC list the test case author.

[Bug libfortran/67540] string_intrinsics_inc.c sanitizer detects null pointer passed to memcpy

2017-04-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67540 --- Comment #13 from Vittorio Zecca --- In C strings are pointers, in Fortran they are not. So ptr="string" is wrong. As in the following: character, pointer :: cptr cptr="qwerty" end Running it I get a SIGSEGV.

[Bug sanitizer/80424] New: libasan uses tempnam tmpnam tmpnam_r

2017-04-14 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com 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 Target Milestone: --- Host: x86_64-pc-linux-gnu

[Bug libfortran/67540] string_intrinsics_inc.c sanitizer detects null pointer passed to memcpy

2017-04-13 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67540 --- Comment #11 from Vittorio Zecca --- Actually, the null pointer str4 is dereferenced four times: at lines 39, 40, 68, 69.

[Bug c++/80489] New: Regression no matching function

2017-04-22 Thread zeccav at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu // REGRESSION g++ 6.3.0 compiles successfully // g++ 7.0.1 trunk 246751 emits error message // In static member function ‘static void

[Bug c++/80489] Regression no matching function

2017-04-22 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80489 --- Comment #2 from Vittorio Zecca --- I did not know that one, my C++ knowledge is so limited. This is a fragment I took from chromium web browser and I was fooled because it is succesfully compiled by older g++, clang, and Intel icpc.

[Bug libfortran/80365] New: undefined memcpy while writing zero length array on unformatted stream in unix.c

2017-04-08 Thread zeccav at gmail dot com
Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu ! undefined memcpy writing zero

[Bug libfortran/67540] string_intrinsics_inc.c sanitizer detects null pointer passed to memcpy

2017-04-07 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67540 Vittorio Zecca changed: What|Removed |Added Target||x86_64-pc-linux-gnu

[Bug c/80364] New: sanitizer detects signed integer overflow in gimple-ssa-sprintf.c

2017-04-07 Thread zeccav at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu /* from pr72858.c */ /*../../gcc-trunk-246751/gcc/gimple-ssa

[Bug middle-end/80100] simplify-rtx.c sanitizer detects undefined behaviour with optimization

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80100 --- Comment #1 from Vittorio Zecca --- Still in trunk 246751.

[Bug middle-end/67486] ira-color.c sanitizer detects signed integer overflow

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486 Vittorio Zecca changed: What|Removed |Added Version|5.2.0 |7.0.1 --- Comment #2 from Vittorio

[Bug tree-optimization/62058] Undefined behaviour in tree-data-ref.c with options -O1 -ftree-loop-vectorize

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058 Vittorio Zecca changed: What|Removed |Added Version|4.9.1 |7.0.1 --- Comment #5 from Vittorio

[Bug rtl-optimization/66940] ifcvt.c:1907 signed integer overflow

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66940 Vittorio Zecca changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/71074] combine.c in simplify_comparison sanitizer detects left shift of negative value

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71074 Vittorio Zecca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/66940] ifcvt.c:1907 signed integer overflow

2017-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66940 --- Comment #5 from Vittorio Zecca --- Fixed in trunk 246751.

[Bug libfortran/80365] undefined memcpy while writing zero length array on unformatted stream in unix.c

2017-07-09 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80365 --- Comment #4 from Vittorio Zecca --- Or you may add assert(buf); just before the memcpy library call. If nbyte==0 then it should be harmless, but undefined. assert(buf || !nbyte) should catch an error situation

[Bug fortran/80751] NULL pointer dereferencing in gfc_trans_call on compiling call to an elemental procedure (trunk 247930)

2017-07-01 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751 --- Comment #3 from Vittorio Zecca --- (In reply to Dominique d'Humieres from comment #1) > > This issue is exposed by adding a gcc_assert at trans-stmt.c:455 > > Could you please be more explicit about what you changed in trans-stmt.c and >

[Bug fortran/80751] NULL pointer dereferencing in gfc_trans_call on compiling call to an elemental procedure (trunk 247930)

2017-07-01 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751 --- Comment #4 from Vittorio Zecca --- I believe I answered your question. The NULL pointer dereferencing is still in trunk 249961

[Bug fortran/80751] NULL pointer dereferencing in gfc_trans_call on compiling call to an elemental procedure (trunk 247930)

2017-07-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751 --- Comment #6 from Vittorio Zecca --- I am sorry, I went by memory and I swapped two digits, I have trunk 249691, tomorrow I am downloading the latest trunk.

[Bug c/81302] [7/8 Regression] Segmentation fault in diagnose_tm_1 at trans-mem.c

2017-07-04 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81302 --- Comment #2 from Vittorio Zecca --- Maybe is this related? // trunk 249883 // from pr46269.C // Segmentation fault // must be compiled with command g++ -fsanitize=address -fgnu-tm template class shared_ptr { public: shared_ptr( T * p )

[Bug c/81302] New: Segmentation fault in diagnose_tm_1 at trans-mem.c

2017-07-04 Thread zeccav at gmail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* from volatile-1.c */ /* in trunk 249883 */ /* must be compiled with command gcc -fgnu-tm -fsanitize=address */ __attribute ((transaction_safe)) int f() { int x

[Bug c++/81293] New: sanitized g++ crashes heap-use-after-free gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:543 in printf_common

2017-07-03 Thread zeccav at gmail dot com
: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- // in trunk 249883 // from devirt-45.C

[Bug fortran/80751] NULL pointer dereferencing in gfc_trans_call on compiling call to an elemental procedure (trunk 247930)

2017-07-03 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751 --- Comment #7 from Vittorio Zecca --- After downloading trunk 249883 I can confirm the bug disappeared.

[Bug sanitizer/81322] New: -fsanitize=address ICE in prepare_function_start, at function.c

2017-07-05 Thread zeccav at gmail dot com
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com 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, marxin at gcc dot

[Bug c/81319] New: ICE in output_operand_lossage at final.c

2017-07-05 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- /* from shrink-wrap-separate-0.c */ /* in trunk 249883 */ /* ICE in output_operand_lossage at final.c */ void f(int x) { register int r20 asm("20") = x; } /* * In f

[Bug target/79636] [5/6/7/8 Regression] ICE in assign_by_spills, at lra-assigns.c:1457

2017-07-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79636 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #3

[Bug fortran/50402] ICE in gfc_conv_expr_descriptor

2017-07-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50402 Vittorio Zecca changed: What|Removed |Added Version|4.8.0 |8.0 --- Comment #6 from Vittorio Zecca

[Bug fortran/50402] ICE in gfc_conv_expr_descriptor

2017-07-05 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50402 --- Comment #8 from Vittorio Zecca --- 1) Sometimes error reports slip through the cracks, it happened to me, and I found it's good to remind that the bug is still around. Sometimes it happened the contrary, the bug silently disappears

<    1   2   3   4   5   6   >