[Bug ada/99624] New: Address sanitizer detects heap-buffer-overflow in namet.adb

2021-03-17 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- While building the ada compiler the address sanitizer detecst an heap-buffer-overflow in namet.adb line 157: Index : constant Int

[Bug c/99623] Code behaves differently at -O2 optimization

2021-03-17 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99623 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #3

[Bug ada/99624] Address sanitizer detects heap-buffer-overflow in namet.adb

2021-03-17 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99624 --- Comment #4 from Vittorio Zecca --- I added pragma Assert (Id in Name_Entries.Table'Range); at namet.adb:156, but then I get at compile time namet.adb:156:25: warning: condition can only be False if invalid values present and the build

[Bug ada/99624] Address sanitizer detects heap-buffer-overflow in namet.adb

2021-03-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99624 Vittorio Zecca changed: What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|---

[Bug other/86656] [meta-bug] Issues found with -fsanitize=address

2021-03-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86656 Bug 86656 depends on bug 99624, which changed state. Bug 99624 Summary: Address sanitizer detects heap-buffer-overflow in namet.adb https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99624 What|Removed |Added

[Bug sanitizer/99662] New: GNAT compiled with the address sanitizer fails at build time

2021-03-19 Thread zeccav at gmail dot com via Gcc-bugs
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 ada/99624] Address sanitizer detects heap-buffer-overflow in namet.adb

2021-03-18 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99624 --- Comment #6 from Vittorio Zecca --- It is not that easy, unfortunately. If I compile the build with -gnata, thereby arming the pragma assert, the build fails. So I had to build without -gnata. Now trying to build Ada with gcc 9.1.0 Earlier

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

2021-03-09 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #30 from Vittorio Zecca --- On the following source code I still have the ICE: type t integer g end type type(t) :: u=t(1) data u%g /2/ ! should emit diagnostic here end gfortran -S gfbug63.f

[Bug d/99337] Sanitizer detect heap-buffer-overflow in checkModFileAlias

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99337 --- Comment #1 from Vittorio Zecca --- This issue was found with the address sanitizer, while issues in bug 63426 were found with the undefined behavior sanitizer.

[Bug d/99337] New: Sanitizer detect heap-buffer-overflow in checkModFileAlias

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: zeccav at gmail dot com Target Milestone: --- The address sanitizer detects the following running /home/vitti/gcc-150221-full-address/gcc/gdc -B/home/vitti/gcc-150221-full-address/gcc compilable

[Bug libgcc/99236] Undefined behaviour in libgcc

2021-02-24 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99236 --- Comment #2 from Vittorio Zecca --- After patching libgcc2.c the test case runs fine without sanitizer messages.

[Bug rtl-optimization/99376] New: Sanitizer detects undefined behaviour in rtlanal.c compiling ada

2021-03-03 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Needs option -O2 -- /home/vitti/gcc-150221-full-undefined/gcc/xgcc -S -B/home/vitti/gcc-150221-full-undefined/gcc/ -I/home

[Bug fortran/52622] heap-use-after-free with instrumented compiler

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52622 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment

[Bug fortran/79524] [8/9/10/11 Regression] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #9

[Bug fortran/82721] [8/9/10/11 Regression] Error message with corrupted text, sometimes ICE

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82721 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment

[Bug d/99337] Sanitizer detect heap-buffer-overflow in checkModFileAlias

2021-03-02 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99337 --- Comment #4 from Vittorio Zecca --- (In reply to Iain Buclaw from comment #3) > Fix is trivial > > --- a/gcc/d/dmd/dmodule.c > +++ b/gcc/d/dmd/dmodule.c > @@ -195,7 +195,7 @@ static void checkModFileAlias(OutBuffer *buf, OutBuffer >

[Bug libstdc++/99382] New: Address sanitizer detects stack-buffer-overflow in stl_construct.h

2021-03-04 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- // From test case sizes.cc // must be compiled and executed // /home/vitti/gcc-150221-full-address/./gcc/xg++ -B/home/vitti/gcc

[Bug libgcc/67379] libgcc2.c negation of -2147483648 cannot be represented in type 'int'

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67379 Vittorio Zecca changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/50525] gfortran should not allow early reference to entry dummy argument (r178939)

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50525 --- Comment #6 from Vittorio Zecca --- Still in trunk. The NAG nagfor and Intel ifort compilers detect the issue. ifort -S -w gfbug72.f gfbug72.f(4): error #6482: An ENTRY dummy argument is referenced in an executable statement before it

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50541 --- Comment #7 from Vittorio Zecca --- The NAG nagfor and Intel ifort detect the issue. gfortran -S gfbug81.f [vitti f95]$nagfor -S gfbug81.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug81.f, line 4: Multiply defined

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82083 Vittorio Zecca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/50535] transformational intrinsic functions not allowed in statement functions

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50535 --- Comment #2 from Vittorio Zecca --- Still in version 11. Both Intel ifort and NAG nagfor detect the issue. ifort -S gfbug73.f -w gfbug73.f(5): error #6736: This transformational intrinsic function is invalid in this context; statement

[Bug fortran/50402] ICE in gfc_conv_expr_descriptor

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50402 --- Comment #9 from Vittorio Zecca --- Still in current trunk. The compilers NAG nagfor and Intel ifort correctly detect a syntax error. nagfor -S -w gfbug43.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug43.f, line 12:

[Bug fortran/50549] should detect different type parameters in structure constructors (r178939)

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50549 --- Comment #2 from Vittorio Zecca --- Still present on version 11. NAG nagfor compiler detecs it. nagfor -S gfbug87.f -w NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug87.f, line 13: Wrong character length (1 instead of 2)

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50542 --- Comment #4 from Vittorio Zecca --- Still present in version 11. The compilers NAG nagfor and Intel ifort detect the issue. ifort -S -w gfbug82.f -warn stderrors gfbug82.f(9): error #8252: A DATA implied-DO variable must be an array element

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81986 Vittorio Zecca changed: What|Removed |Added Component|sanitizer |libfortran --- Comment #4 from

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81319 Vittorio Zecca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/50377] gfortran must not accept an external formal argument not declared external

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50377 --- Comment #4 from Vittorio Zecca --- Still present at version 11. The Intel ifort and NAG nagfor compilers decet the issue. nagfor -S gfbug158.f -w NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug158.f, line 3: External

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50538 --- Comment #4 from Vittorio Zecca --- Still present in current trunk. The compilers NAG nagfor and Intel ifort detect the issue. nagfor -S -w gfbug78.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug78.f, line 4: Dummy

[Bug testsuite/44798] inconsistent interfaces

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44798 Vittorio Zecca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/50536] an input item shall not appear as the do-variable of any io-implied-do

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50536 --- Comment #9 from Vittorio Zecca --- Still present in version 11. Detected by NAG nagfor and Intel ifort. [vitti f95]$nagfor -S -w gfbug74.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug74.f, line 4: Input item L cannot

[Bug fortran/58224] -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58224 --- Comment #3 from Vittorio Zecca --- Still in trunk. The NAG nagfor compiler detects the issue at compile time. nagfor gfbug103.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Warning: gfbug103.f, line 8: Pointer Q never

[Bug fortran/80774] [8/9/10/11 Regression][Coarray] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80774 --- Comment #6 from Vittorio Zecca --- Still in current trunk. gfortran -S gfbug132.f -fcoarray=single gfbug132.f:18:72: 18 | deallocate(obj%link) | 1

[Bug fortran/50551] Argumentless NULL() cannot be used with assumed-length dummy (r178939)

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50551 --- Comment #3 from Vittorio Zecca --- Still in trunk. The NAG nagfor and Intel ifort compilers detect the issue. gfortran -S gfbug89.f [vitti f95]$nagfor -S -w gfbug89.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug89.f,

[Bug testsuite/44922] undefined variable in execute/921202-1.c

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44922 Vittorio Zecca changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058 Vittorio Zecca changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 62058, which changed state. Bug 62058 Summary: Undefined behaviour in tree-data-ref.c with options -O1 -ftree-loop-vectorize https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058 What|Removed

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

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486 Vittorio Zecca changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug rtl-optimization/85789] Signed integer overflow with nonzero optimization in cse.c

2021-02-27 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85789 --- Comment #2 from Vittorio Zecca --- Still in trunk: ~/local/gcc-150221-undefined/bin/gcc -S gccerr67.c -O ../../gcc-150221/gcc/cse.c:2204:34: runtime error: signed integer overflow: 1 - -9223372036854775807 cannot be represented in type

[Bug testsuite/44792] data.f90 accesses undefined variable

2021-02-23 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44792 --- Comment #3 from Vittorio Zecca --- Still unmodified, I cannot see the modification of Tobias Burnus. NAG nagfor compiler stll produces run time error message. Runtime Error: gcc/testsuite/gfortran.fortran-torture/execute/data.f90, line 28:

[Bug libgcc/99236] New: Undefined behaviour in libgcc

2021-02-23 Thread zeccav at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! must be compiled and run ! It does not need sanitized compiler, but ! must be loaded with sanitized version of libgcc_s.so.1 ! ldd a.out -> libgcc_s.so.1 => /home/vitti/local/gcc-

[Bug fortran/99255] ICE in gfc_dt_upper_string, at fortran/module.c:441

2021-02-25 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99255 Vittorio Zecca changed: What|Removed |Added CC||zeccav at gmail dot com --- Comment #1

[Bug sanitizer/99190] Undefined behaviour in libubsan

2021-02-23 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99190 --- Comment #8 from Vittorio Zecca --- I can confirm the new libubsan works on my test case. Keep up the good work!

[Bug libquadmath/99202] Undefined behaviour in libquadmath file rem_pio2q.c function __quadmath_rem_pio2q

2021-02-23 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99202 --- Comment #2 from Vittorio Zecca --- I believe you need LD_PRELOAD if the object program uses the address sanitizer.

[Bug libfortran/99148] New: sanitizer detects stack-buffer-overflow in unpack_generic.c

2021-02-18 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! from char_length_8.f90 ! address sanitizer detects stack-buffer-overflow in libgfortran ! Must compile libgfortran with -fsanitize

[Bug fortran/99146] New: ICE in gfc_find_specific_dtio_proc

2021-02-18 Thread zeccav at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! gfortran trunk 150221 ICE SIGSEGV MODULE p TYPE :: person sequence END TYPE person INTERFACE READ(UNFORMATTED) MODULE PROCEDURE pruf END

[Bug fortran/99147] New: Sanitizer detects heap-use-after-free in gfc_add_flavor

2021-02-18 Thread zeccav at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! trunk 150221 gfortran -fdec ! ERROR: AddressSanitizer: heap-use-after-free ! READ of size 1 at 0x61301f18 thread T0 !#0 0xe1a258

[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810

2021-02-18 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 --- Comment #7 from Vittorio Zecca --- Fixed in trung February 15th, 2021.

[Bug fortran/99145] New: gfortran LOOP

2021-02-18 Thread zeccav at gmail dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Loop compiling the following code: ! gfortran LOOP? character (len=2_8**32_8+4_8), parameter :: s = "" end

[Bug fortran/99145] gfortran LOOP

2021-02-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99145 --- Comment #4 from Vittorio Zecca --- (In reply to Jerry DeLisle from comment #3) > Initially it is creating the very large string in the frontend passes and > then via resolution and translation phases, and finally into the middle-end > and

[Bug libfortran/99148] sanitizer detects stack-buffer-overflow in unpack_generic.c

2021-02-20 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99148 --- Comment #1 from Vittorio Zecca --- Reproduction of this issue requires an address sanitized version of libgfortran. I narrowed the issue to unpack0_char changing { gfc_array_char tmp; if (unlikely(compile_options.bounds_check))

[Bug fortran/99147] Sanitizer detects heap-use-after-free in gfc_add_flavor

2021-02-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99147 --- Comment #5 from Vittorio Zecca --- I ran the testsuite against the proposed fix and it was successful, no sanitizer errors in symbol.c. Only remaining error as in bug 99148.

[Bug libobjc/67516] class.c left shift of 1271241028 by 4 places cannot be represented in type 'int'

2021-02-21 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67516 Vittorio Zecca changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/61158] negative shift at fold-const.c:12095

2021-02-20 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61158 Vittorio Zecca changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

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

2021-02-20 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485 Vittorio Zecca changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/59065] questionable bounds for unassociated allocatable/pointer arrays?

2021-02-20 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59065 --- Comment #10 from Vittorio Zecca --- This issue seems to have been resolved in the trunk gfortran 11.0.0 gfortran gfbug109.f -fcheck=pointer -g [vitti f95]$./a.out At line 9 of file gfbug109.f Fortran runtime error: Allocatable argument

[Bug sanitizer/99190] New: Undefined behaviour in libubsan

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
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: --- // gcc -fsanitize

[Bug libfortran/99191] New: sanitizer detects undefined behaviour in libgfortran

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! from pr66311.f90 ! must be compiled and run with sanitized libgfortran !../../../gcc-150221/libgfortran/io/write.c:835:7: runtime error: negation

[Bug fortran/99145] gfortran LOOP

2021-02-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99145 --- Comment #2 from Vittorio Zecca --- I am sorry I should have taken more time analyzing this issue. Actually it is not and infinite loop, I clocked the compilation first with the -S option, then with the -c option. The compiler takes 4'52" of

[Bug fortran/99147] Sanitizer detects heap-use-after-free in gfc_add_flavor

2021-02-19 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99147 --- Comment #3 from Vittorio Zecca --- I changed symbol.c as per your suggestion and now the address sanitized gfortran compiles fine. Now I am going to check it against the testsuite. Results tomorow.

[Bug sanitizer/99190] Undefined behaviour in libubsan

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99190 --- Comment #4 from Vittorio Zecca --- To generate a sanitized version of libgfortran I built whole sanitized gcc with the following command: CFLAGS="-g -O0 -fsanitize=undefined -lubsan" LIBS="-lubsan" CXXFLAGS=$CFLAGS ../gcc-150221/configure

[Bug sanitizer/99190] Undefined behaviour in libubsan

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99190 --- Comment #5 from Vittorio Zecca --- Sorry I meant libubsan, but I am building the whole gcc, g++, and gfortran sanitized version.

[Bug libquadmath/99202] New: Undefined behaviour in libquadmath file rem_pio2q.c function __quadmath_rem_pio2q

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! from dec_math.f90 ! must be compiled and run ! gfortran compiler needs not be sanitized ! must load sanitized

[Bug libquadmath/99203] New: Undefined behaviour in libquadmath file print_fp.c function __quadmath_printf_fp

2021-02-22 Thread zeccav at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! from fmt_en.f90 ! must be compiled and run ! gfortran compiler needs not be sanitized ! must load sanitized

<    1   2   3   4   5   6