https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120165
--- Comment #6 from John Paul Adrian Glaubitz <glaubitz at debian dot org> ---
Here is the backtrace for the segmentation fault:
(gdb) bt full
#0 0xc048dbb2 in strlen () from /usr/lib/m68k-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00001053 in ?? ()
No symbol table info available.
#2 0x81bd9cf6 in libiberty_vprintf_buffer_size (format=0x81bd9acc
<xvasprintf+16> "/", args=0xefffed54) at ../../libiberty/vprintf-support.c:174
prec = <optimized out>
p = 0x2e4759 <error: Cannot access memory at address 0x2e4759>
total_width = 180
ap = 0x80281ac4
<gfc_diagnostic_build_locus_prefix(diagnostics::location_print_policy const&,
bool, expanded_location)>
#3 0x81c0e7e2 in ?? ()
No symbol table info available.
#4 0x81bd9acc in xvasprintf (format=0x81c0e7d6 "%s%s:%d:%d:%s",
args=0xefffed48) at ../../libiberty/xvasprintf.c:57
result = <optimized out>
total_width = <optimized out>
#5 0x81aab628 in build_message_string (msg=0x81c0e7d6 "%s%s:%d:%d:%s") at
../../gcc/diagnostics/context.cc:87
str = <optimized out>
ap = 0xefffed38
#6 0x80281b36 in gfc_diagnostic_build_locus_prefix (loc_policy=...,
colorize=true, s=...) at ../../gcc/fortran/error.cc:508
locus_cs = 0x81d5d253 "\033[01m\033[K"
locus_ce = 0x81d748c8 "\033[m\033[K"
#7 0x80281cf8 in gfc_diagnostic_text_starter (text_output=...,
diagnostic=0x2a2f0024) at ../../gcc/fortran/error.cc:574
context = 0x826d4c30 <global_diagnostic_context>
pp = 0xefffedda
kind_prefix = 0xc241f <error: Cannot access memory at address 0xc241f>
s1 = {file = 0x826eb980 "conftest.f", line = 1, column = 8, data =
<optimized out>, sysp = <optimized out>}
s2 = {file = 0x802111e4 <fputc@plt> "N\373\001q\002H1&/<", line =
675513, column = -1311879185, data = <optimized out>, sysp = <optimized out>}
one_locus = <optimized out>
same_locus = false
loc_policy = {m_column_policy = {m_file_cache = @0x81b0d4d0,
m_column_options = {m_column_unit = (unknown: 0x588f2f42), m_column_origin =
533535,
m_tabstop = 1627324808}}, m_show_column = 248}
colorize = <optimized out>
locus_prefix = <optimized out>
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)