https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68744

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
(gdb) r
Starting program: /test/gnu/gcc/objdir/gcc/testsuite/gfortran/backtrace_1.exe 
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work.  See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.

Could not print backtrace: backtrace library does not support threads

Program received signal SIGSEGV, Segmentation fault.
backtrace_alloc (state=state@entry=0x0, size=size@entry=4096, 
    error_callback=error_callback@entry=0x0, data=data@entry=0x0)
    at ../../../gcc/libbacktrace/mmap.c:102
102       if (!state->threaded)
(gdb) p state
$1 = (struct backtrace_state *) 0x0
(gdb) bt
#0  backtrace_alloc (state=state@entry=0x0, size=size@entry=4096, 
    error_callback=error_callback@entry=0x0, data=data@entry=0x0)
    at ../../../gcc/libbacktrace/mmap.c:102
#1  0xc0000000003438b0 in backtrace_full (state=state@entry=0x0, 
    skip=skip@entry=0, 
    callback=callback@entry=0xc000000000347380 <full_callback>, 
    error_callback=error_callback@entry=0x800003fffdfdce70, 
    data=data@entry=0x800003fffdff0ba8)
    at ../../../gcc/libbacktrace/backtrace.c:118
#2  0xc0000000003477e8 in _gfortrani_show_backtrace (
    in_signal_handler=in_signal_handler@entry=false)
    at ../../../gcc/libgfortran/runtime/backtrace.c:156
#3  0xc000000000347864 in _gfortran_backtrace ()
    at ../../../gcc/libgfortran/runtime/backtrace.c:172
#4  0x4000000000002bc0 in test ()
    at /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/backtrace_1.f90:8
#5  0x4000000000002c58 in main (argc=-2147482625, 
    argv=0xc000000000347380 <full_callback>)
    at /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/backtrace_1.f90:10

Reply via email to