From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAB673858415; Wed, 6 Oct 2021 11:22:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAB673858415 From: "kapinos at rz dot rwth-aachen.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56659] Segfault due to missing libcpp error handler for "gfortran -cpp" Date: Wed, 06 Oct 2021 11:22:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kapinos at rz dot rwth-aachen.de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2021 11:22:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56659 --- Comment #5 from Paul --- Just tried all versions of gfortran available up to 10.2.0: the very same 'internal compiler error' is still reported using the initial reproducer.=20 May that be connected to the old Linux we're using (CentOS 7.8)?=20 pk224850@linuxc2:~/bugreports/GCC/007-ICE_unavailbale_Idir[524]$ ./runme007= .sh=20=20 mkdir: cannot create directory =E2=80=98foo=E2=80=99: Permission denied ---------------------------------------------------------------------------= --- f951: Warning: Include directory =E2=80=98./foo/bar=E2=80=99: Permission de= nied f951: internal compiler error: in cpp_diagnostic_at, at libcpp/errors.c:41 0x14f3468 cpp_diagnostic_at ../../../SOURCES/gcc-10.2.0/libcpp/errors.c:41 0x14f3468 cpp_diagnostic_at ../../../SOURCES/gcc-10.2.0/libcpp/errors.c:34 0x14f3468 cpp_diagnostic ../../../SOURCES/gcc-10.2.0/libcpp/errors.c:75 0x14f34f9 cpp_error(cpp_reader*, cpp_diagnostic_level, char const*, ...) ../../../SOURCES/gcc-10.2.0/libcpp/errors.c:89 0x9d5326 remove_duplicates ../../../SOURCES/gcc-10.2.0/gcc/incpath.c:260 0x9d58c9 merge_include_chains ../../../SOURCES/gcc-10.2.0/gcc/incpath.c:371 0x9d58c9 register_include_chains(cpp_reader*, char const*, char const*, char const*, int, int, int) ../../../SOURCES/gcc-10.2.0/gcc/incpath.c:498 0x654169 gfc_cpp_register_include_paths() ../../../SOURCES/gcc-10.2.0/gcc/fortran/cpp.c:722 0x654169 gfc_cpp_post_options() ../../../SOURCES/gcc-10.2.0/gcc/fortran/cpp.c:494 0x6c8b50 gfc_post_options(char const**) ../../../SOURCES/gcc-10.2.0/gcc/fortran/options.c:488 0x63044a process_options ../../../SOURCES/gcc-10.2.0/gcc/toplev.c:1384 0x63044a do_compile ../../../SOURCES/gcc-10.2.0/gcc/toplev.c:2200 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---------------------------------------------------------------------------= --- Using built-in specs. COLLECT_GCC=3Dgfortran COLLECT_LTO_WRAPPER=3D/usr/local_rwth/sw/gcc/10.2.0/libexec/gcc/x86_64-pc-l= inux-gnu/10.2.0/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none Target: x86_64-pc-linux-gnu Configured with: ../../SOURCES/gcc-10.2.0/configure --prefix=3D/usr/local_rwth/sw/gcc/10.2.0 --enable-offload-targets=3Dnvptx-n= one --enable-languages=3Dc,c++,objc,obj-c++,fortran --enable-lto --enable-install-libiberty --with-gmp=3D/w0/tmp/pk224850/GCC/build/destdir/usr/local_rwth/sw/gcc/10.2.0 --with-mpfr=3D/w0/tmp/pk224850/GCC/build/destdir/usr/local_rwth/sw/gcc/10.2= .0 --with-mpc=3D/w0/tmp/pk224850/GCC/build/destdir/usr/local_rwth/sw/gcc/10.2.0 --with-ppl=3D/w0/tmp/pk224850/GCC/build/destdir/usr/local_rwth/sw/gcc/10.2.0 --with-isl --with-default-libstdcxx-abi=3Dgcc4-compatible LDFLAGS=3D'-Wl,-rpath,/usr/local_rwth/sw/gcc/10.2.0/lib64 -Wl,-rpath,/usr/local_rwth/sw/gcc/10.2.0/lib' Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.2.0 (GCC)=