Bug#1107136: gfortran: 14.2.0-1 internal compiler error on arm64/PinePhone with -W(maybe-)uninitialized
Package: gfortran
Version: 4:14.2.0-1
Severity: normal
X-Debbugs-Cc: debian-arm@lists.debian.org
User: debian-arm@lists.debian.org
Usertags: arm64
Dear Maintainer,
* What led up to the situation?
I tried to compile some fortran source files on my Pinephone,
including the '-Wall' compiler option.
* What exactly did you do (or not do) that was effective (or
ineffective)?
My minimal working example is:
--------------------------------------------------
$ cat mwe.f90
function myfunc(xnew) result(ynew)
real, intent(in) :: xnew(:)
real :: ynew
integer :: i
if(size(xnew).ge.1)then
ynew = xnew(1)
endif
end function
$ gfortran -c -Wuninitialized mwe.f90 -o mwe.o ; \
gfortran -c -Wmaybe-uninitialized mwe.f90 -o mwe.o
--------------------------------------------------
* What was the outcome of this action?
Every repeat gave the same result:
--------------------------------------------------
during GIMPLE pass: early_uninit
mwe.f90:8:12:
8 | end function
| ^
internal compiler error: Segmentation fault
0xffffxxxx229b __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0xffffxxxx237b __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
during GIMPLE pass: early_uninit
mwe.f90:8:12:
8 | end function
| ^
internal compiler error: Segmentation fault
0xffffxxxx229b __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0xffffxxxx237b __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
--------------------------------------------------
* What outcome did you expect instead?
I expected 'mwe.o' to have been created with no reported errors.
----------------------------------------------------------------------
-- System Information:
Debian Release: trixie/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: arm64 (aarch64)
Kernel: Linux 6.12-sunxi64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gfortran depends on:
ii cpp 4:14.2.0-1
ii cpp-aarch64-linux-gnu 4:14.2.0-1
ii gcc 4:14.2.0-1
ii gfortran-14 14.2.0-19
ii gfortran-aarch64-linux-gnu 4:14.2.0-1
gfortran recommends no packages.
Versions of packages gfortran suggests:
pn gfortran-doc <none>
-- no debconf information
Other system info:
$ inxi -zxxxF # extract
System:
Kernel: 6.12-sunxi64 arch: aarch64 bits: 64 compiler: gcc v: 12.2.0
clocksource: arch_sys_counter
Console: pty pts/1 LM: greetd Distro: Debian GNU/Linux trixie/sid
Machine:
Type: ARM System: Pine64 PinePhone (1.2) details: N/A serial: <filter>
CPU:
Info: quad core model: N/A variant: cortex-a53 bits: 64 type: MCP smt: <unsupported> arch: ARMv8
rev: 4 cache: L1: 256 KiB L2: 512 KiB
Speed (MHz): avg: 1152 min/max: 648/1152 cores: 1: 1152 2: 1152 3: 1152 4: 1152 bogomips: N/A
Features: aes asimd cpuid crc32 evtstrm fp pmull sha1 sha2
----------------------------------------------------------------------
Possibly related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106736 (I forgot
to put a 'Subject' for that bug, sorry).
Cheers
Boud
Reply to: