[Bug libfortran/85253] [8 Regression] asan detects heap-buffer-overflow in matmul_r4.c

2018-04-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85253 --- Comment #4 from Vittorio Zecca --- After applying the fix in comment #3 the asan message disappeared.

[Bug libfortran/85253] New: asan detects heap-buffer-overflow in matmul_r4.c

2018-04-06 Thread zeccav at gmail dot com
: 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 ! In trunk 258946 asan detects heap buffer overflow in libgfortran/generated/matmul_r4.c

[Bug middle-end/64920] bootstrap-ubsan [build/gengtype -r gtype.state]: libiberty/regex.c:6970:11: runtime error: left shift of negative value -1

2018-04-03 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64920 --- Comment #4 from Vittorio Zecca --- Sorry for late answer, but I was traveling. I did not see it any longer.

[Bug middle-end/64327] ../../gcc/gcc/rtlanal.c:4881:48: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64327 --- Comment #9 from Vittorio Zecca --- Sorry for the delay in answering but I was traveling. I cannot reproduce on version 7, while it reproduces on 6.4.0.

[Bug fortran/50550] does not recognize pointer variable at initialization (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550 --- Comment #7 from Vittorio Zecca --- Sorry about that, long time I did not blush, I'll try to remember the lesson.

[Bug fortran/50550] does not recognize pointer variable at initialization (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50550 --- Comment #5 from Vittorio Zecca --- Bug still present in 7.3.0 and trunk 258946.

[Bug fortran/50541] gfortran should not accept a pointer as a generic-name (r178939)

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50541 --- Comment #6 from Vittorio Zecca --- Bug still there in 7.3.0 and trunk 258946.

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

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61910 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 61910, which changed state. Bug 61910 Summary: undefined computation in trans-expr.c gfc_conv_cst_int_power https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61910 What|Removed |Added

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

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61907 Vittorio Zecca changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 61907, which changed state. Bug 61907 Summary: load of invalid value for 'bool' in trans-array.c trans_array_constructor https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61907 What|Removed

[Bug fortran/70870] Segmentation violation in gfc_assign_data_value

2018-04-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70870 --- Comment #5 from Vittorio Zecca --- After applying the fix in comment 3 to trunk 258946 the ICE disappears and an error message appears, as it should be.

[Bug libfortran/81983] sanitizer detects undefined runtime error in libbacktrace

2017-12-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 --- Comment #2 from Vittorio Zecca --- I am traveling abroad now, sorry I cannot help.

[Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189

2017-09-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318 --- Comment #24 from Vittorio Zecca --- I confirm this bug prevents building the Linux kernel 4.12 with gcc trunk 251201. gcc 7.2 seems to build the kernel just fine.

[Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN

2017-09-02 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82072 --- Comment #10 from Vittorio Zecca --- A related issue is the following: /* UB sanitizer should detect undefined negation of LLONG_MIN */ /* must be compiled with -fsanitize=undefined and run */ #include int main() { long long int

[Bug middle-end/82083] New: sanitizer detects signed integer overflow in tree-data-ref.c with -O3

2017-09-02 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: --- Host: x86_64-pc-linux-gnu Build: trunk 251201 // from test case pr60183.c // must be compiled with -O3

[Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN

2017-09-01 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82072 --- Comment #9 from Vittorio Zecca --- Applying the proposed fix and compiling the test case with -fsanitize=undefined I get testcase.c:8:3: runtime error: signed integer overflow: 0 - -9223372036854775808 cannot be represented in type 'long

[Bug sanitizer/82072] New: sanitizer does not detect on overflow from LLONG_MIN

2017-09-01 Thread zeccav at gmail dot com
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 gnu.org Target Milestone

[Bug libfortran/81939] valgrind error message in build_float_string and heap-buffer-overflow on address sanitized libgfortran.so

2017-08-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81939 --- Comment #4 from Vittorio Zecca --- Dominique, this should be the same traceback as yours but with line numbers: = ==21064==ERROR: AddressSanitizer: heap-buffer-overflow on

[Bug libfortran/81984] NULL string pointer dereferencing forces undefined behaviour in libgfortran

2017-08-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81984 --- Comment #4 from Vittorio Zecca --- There is no core dump because by default the ubsan sanitizer does not abort. But I am pretty sure len1==0 at that point.

[Bug libfortran/81939] valgrind error message in build_float_string and heap-buffer-overflow on address sanitized libgfortran.so

2017-08-30 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81939 --- Comment #2 from Vittorio Zecca --- Did you get MALLOC checks? *** Error in `./a.out': free(): invalid pointer: 0x00c0b560 *** *** Error in `./a.out': free(): invalid pointer: 0x00c0b6a0 *** *** Error in `./a.out': free():

[Bug fortran/81974] [8 Regression] ICE verify_gimple failed type mismatch in binary expression

2017-08-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81974 --- Comment #5 from Vittorio Zecca --- I applied the fix and I confirm it works. Thank you Thomas for your fast intervention.

[Bug sanitizer/81986] sanitizer detects negation of large number in string.c

2017-08-28 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81986 --- Comment #2 from Vittorio Zecca --- I do not know if this is a libgfortran or a sanitizer bug. What I do know is that changing string.c:199 from t = - n; into t = -(GFC_UINTEGER_LARGEST)n; as it should be, the sanitizer message

[Bug libfortran/81986] New: sanitizer detects negation of large number in string.c

2017-08-25 Thread zeccav at gmail dot com
Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Build: trunk 251201 ! from test case pr66311.f90 ! must be compiled and run ! libgfortran/runtime/string.c:199

[Bug libfortran/81985] New: several sanitizer undefined runtime errors in sanitized libgfortran

2017-08-25 Thread zeccav at gmail dot com
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 Build: trunk 251201 ! test case mvbits_1.f90 ! several sanitizer undefined

[Bug libfortran/81984] New: NULL string pointer dereferencing forces undefined behaviour in libgfortran

2017-08-25 Thread zeccav at gmail dot com
: 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 Build: trunk 251201 ! From test case allocate_deferred_char_scalar_1

[Bug libfortran/81983] New: sanitizer detects undefined runtime error in libbacktrace

2017-08-25 Thread zeccav at gmail dot com
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 Build: trunk 251201 ! sanitizer detects runtime error in libbacktrace ! This file MUST

[Bug fortran/81974] New: ICE verify_gimple failed type mismatch in binary expression

2017-08-24 Thread zeccav at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Build: trunk 251201 ! ICE verify_gimple failed Error: type mismatch in binary expression

[Bug libfortran/81939] New: valgrind error message in build_float_string and heap-buffer-overflow on address sanitized libgfortran.so

2017-08-23 Thread zeccav at gmail dot com
Status: UNCONFIRMED 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 Build: trunk 251201

[Bug libfortran/81938] New: valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so

2017-08-23 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 Build: trunk 251201 ! test case fmt_cache_1.f ! compiled

[Bug libfortran/81937] New: stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4)

2017-08-23 Thread zeccav at gmail dot com
: 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 Build: trunk 251201 ! dtio_14.f90 test case ! compiled

[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/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

[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 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 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 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 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 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 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-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 sanitizer/70878] [5/6 Regression] ICE in expand_expr_addr_expr_1, at expr.c:7680

2017-05-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70878 --- Comment #9 from Vittorio Zecca --- You are welcome.

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

2017-05-29 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80413 --- Comment #8 from Vittorio Zecca --- You are welcome.

[Bug fortran/59093] Segfault in gfc_trans_pointer_assignment

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

[Bug sanitizer/80797] -fsanitize=null doesn't instrument >x

2017-05-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80797 --- Comment #4 from Vittorio Zecca --- I applied your patch to version 8 trunk 247930 and it seems to work, but on your example I get ubsan-1.c:10:8: runtime error: member access within null pointer of type 'struct S' ubsan-1.c:11:8: runtime

[Bug sanitizer/80797] -fsanitize=null doesn't instrument >x

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

[Bug fortran/80751] NULL pointer dereferencing in gfc_trans_call on calling elemental procedure (trunk 247930)

2017-05-17 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751 --- Comment #2 from Vittorio Zecca --- I found that at trans-stmt.c:455 a NULL pointer is being dereferenced at line 455 compiling test case gfortran.dg/bounds_check_fail_2.f90 and others. This is the code fragment: gfc_conv_ss_startstride ();

[Bug fortran/80774] New: ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c

2017-05-16 Thread zeccav at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! gfortran 8.0.0 trunk 247930 ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c ! must be compiled with option -fcoarray=single

[Bug fortran/50392] SIGSEGV in gfc_trans_label_assign

2017-05-15 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50392 --- Comment #13 from Vittorio Zecca --- Steve, you know why I do not like you. If you are so sensitive please take care of the sensitivity of people submitting bugs and do not call them "idiot". But this is not relevant here. What is relevant

[Bug fortran/80768] New: NULL pointer dereferenced in gfc_check_num_images at fortran/check.c

2017-05-15 Thread zeccav at gmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! NULL pointer dereferenced in gfc_check_num_images at fortran/check.c:5150 ! gfortran 8.0.0 trunk 247930 ! Target: x86_64-pc-linux

[Bug fortran/50392] SIGSEGV in gfc_trans_label_assign

2017-05-15 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50392 --- Comment #11 from Vittorio Zecca --- You still around, Steven? I cannot say I missed you. Nobody asked me to apply those fixes, I imagined that Tobias Burnus, their author, would try them and eventually apply them. It seems that it did not

[Bug fortran/80751] New: NULL pointer dereferencing in gfc_trans_call on calling elemental procedure (trunk 247930)

2017-05-14 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: --- This issue is exposed by adding a gcc_assert at trans-stmt.c:455 ! NULL pointer dereferencing

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

2017-05-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486 --- Comment #4 from Vittorio Zecca --- Still in 8.0.0 trunk 247930

[Bug fortran/50402] ICE in gfc_conv_expr_descriptor

2017-05-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50402 --- Comment #5 from Vittorio Zecca --- ICE still in 7.1.0 and trunk 8.0.0 Even if the code is invalid the compiler should not just crash.

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

2017-05-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #27 from Vittorio Zecca --- Still in 7.1.0 and trunk 8.0.0

[Bug fortran/50392] SIGSEGV in gfc_trans_label_assign

2017-05-14 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50392 --- Comment #9 from Vittorio Zecca --- Still in 7.1.0 and in trunk 8.0.0! Will it ever be fixed?

[Bug rtl-optimization/80715] NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c

2017-05-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80715 --- Comment #4 from Vittorio Zecca --- I see the ICE on trunk 247930. To reproduce it you need ira_assert working, definining ENABLE_IRA_CHECKING implied by CHECKING_P, best way to make it happen is configuring gcc with --enable-checking=yes

[Bug middle-end/80715] NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c

2017-05-12 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80715 --- Comment #2 from Vittorio Zecca --- gcc gccerr55.c -O2 -flive-range-shrinkage -E # 1 "gccerr55.c" # 1 "" # 1 "" # 31 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 32 "" 2 # 1 "gccerr55.c" # 25 "gccerr55.c" void f() { } gcc gccerr55.c -O2

[Bug middle-end/80715] New: NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c

2017-05-11 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: --- This seems to be linked to 78650 /*NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c:1748 */ /* must

[Bug middle-end/80364] [7 Regression]sanitizer detects signed integer overflow in gimple-ssa-sprintf.c

2017-05-10 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80364 --- Comment #7 from Vittorio Zecca --- Marek, I believe this issue has been fixed.

[Bug ipa/80663] New: signed integer overflow in ipa-split.c

2017-05-08 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- // from PR ipa/80212 // { dg-options "-O2 --param partial-inlining-entry-probability=1234567" } // gcc/ipa-split.c:448:4: runtime error: signed integer overflow: 1 * 1234

[Bug fortran/80657] Loop in character function declaration

2017-05-07 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80657 --- Comment #2 from Vittorio Zecca --- You do not get line numbers but offset in f951. Need rebuild with -g option or addr2line usage?

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

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

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

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

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2017-05-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 61908, which changed state. Bug 61908 Summary: load of invalid value for 'expr_t' in interface.c compare_actual_formal https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61908 What|Removed

[Bug fortran/67498] interface.c sanitizer runtime error: load of value 1818451807, which is not a valid value for type 'expr_t'

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

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

2017-05-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058 --- Comment #6 from Vittorio Zecca --- Still there in 7.1.0

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

2017-05-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77383 --- Comment #4 from Vittorio Zecca --- Still in 7.1.0

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

2017-05-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486 --- Comment #3 from Vittorio Zecca --- Still in 7.1.0

[Bug fortran/80657] New: Loop in character function declaration

2017-05-06 Thread zeccav at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- The following forces gfortran into a loop: function f(x) implicit character(len(f)) (x) character(len(x)) f end

[Bug c++/50184] Segmentation fault. Copy Constructor.

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

[Bug sanitizer/71158] ICE in tree_to_uhwi with -fsanitize=address

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

[Bug c++/16994] [meta-bug] VLA and C++

2017-05-06 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16994 Bug 16994 depends on bug 71158, which changed state. Bug 71158 Summary: ICE in tree_to_uhwi with -fsanitize=address https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71158 What|Removed |Added

[Bug sanitizer/70878] [5/6 Regression] ICE in expand_expr_addr_expr_1, at expr.c:7680

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

[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 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 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 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 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/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 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 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 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 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 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 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 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 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 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 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/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 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 #4 from Vittorio Zecca --- This is on trunk level 239276. Going to check on newer level 246252.

[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

<    1   2   3   4   5   6   >