NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/56153: gdb is broken for alpha



>Number:         56153
>Category:       toolchain
>Synopsis:       gdb is broken for alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 07 12:40:01 +0000 2021
>Originator:     Rin Okuyama
>Release:        9.99.82
>Organization:
Department of Physics, Meiji University
>Environment:
NetBSD ds10 9.99.82 NetBSD 9.99.82 (GENERIC-$Revision: 1.410 $) #52: Fri May  7 19:53:47 JST 2021  rin@latipes:/sys/arch/alpha/compile/DS10 alpha
>Description:
gdb is broken for alpha. It cannot even load cat.core:

----
ds10$ cat
^\[1]   Quit (core dumped)      cat
ds10$ gdb cat cat.core
GNU gdb (GDB) 11.0.50.20200914-git
...(snip)...
Reading symbols from cat...
Reading symbols from /usr/libdata/debug//bin/cat.debug...
[New process 18637]
[1]   Abort trap (core dumped) gdb cat cat.core
----

Backtrace by gdb.old reads:

----
ds10$ ./gdb.old gdb gdb.core
GNU gdb (GDB) 8.3
...(snip)...
Type "apropos word" to search for commands related to "word"...
Reading symbols from gdb...
Reading symbols from /usr/libdata/debug//usr/bin/gdb.debug...
[New process 6099]
[New process 5797]
Core was generated by `gdb'.
Program terminated with signal SIGABRT, Aborted.
#0  0x000003fffd9365d8 in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 6099)]
(gdb) bt
#0  0x000003fffd9365d8 in _lwp_kill () from /usr/lib/libc.so.12
#1  0x000003fffd936568 in raise (s=<optimized out>)
    at /usr/src/lib/libc/gen/raise.c:48
#2  0x000003fffd936964 in abort () at /usr/src/lib/libc/stdlib/abort.c:74
#3  0x000000012004c118 in handle_sigsegv (sig=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/event-top.c:885
#4  <signal handler called>
#5  atomic_load_p (mo=atomic_memory_order_relaxed, a=0x3fff8)
    at /usr/src/external/bsd/jemalloc/lib/../include/jemalloc/internal/atomic_gcc_atomic.h:31
#6  rtree_leaf_elm_bits_read (dependent=true, elm=0x3fff8,
    rtree=<optimized out>, tsdn=<optimized out>)
    at /usr/src/external/bsd/jemalloc/lib/../include/jemalloc/internal/rtree.h:175
#7  rtree_szind_slab_read (r_slab=<synthetic pointer>,
    r_szind=<synthetic pointer>, dependent=true, key=8589928040,
    rtree_ctx=0x3fffde9a468, rtree=<optimized out>, tsdn=<optimized out>)
    at /usr/src/external/bsd/jemalloc/lib/../include/jemalloc/internal/rtree.h:464
#8  ifree (slow_path=false, tcache=0x3fffde9a600, ptr=0x1ffffe668,
    tsd=<optimized out>)
    at /usr/src/external/bsd/jemalloc/lib/../dist/src/jemalloc.c:2243
#9  free (ptr=0x1ffffe668)
    at /usr/src/external/bsd/jemalloc/lib/../dist/src/jemalloc.c:2433
#10 0x000000012055b4a8 in freea (p=0x1)
    at /usr/src/external/gpl3/gdb/lib/libgnulib/../../dist/gnulib/import/malloca.c:95
#11 0x000000012055ad54 in rpl_realpath (name=<optimized out>,
    resolved=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgnulib/../../dist/gnulib/import/canonicalize-lgpl.c:379
#12 0x000000012052a31c in gdb_realpath (filename=0x3fffde9a568 "")
    at /usr/src/external/gpl3/gdb/lib/libgdbsupport/../../dist/gdbsupport/pathstuff.cc:72
#13 0x00000001202157fc in openp (path=<optimized out>, opts=...,
    string=<optimized out>, mode=<optimized out>,
    filename_opened=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/source.c:916
#14 0x00000001201fc83c in symfile_bfd_open (
    name=0x3fffd5da040 "/usr/libdata/debug//lib/libc.so.12.218.debug")
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdbsupport/enum-flags.h:193
#15 0x000000012039c688 in elf_symfile_read (objfile=0x3fffd6db900,
    symfile_flags=...)
    at /build/dest/alpha/usr/include/g++/bits/basic_string.h:2299
#16 0x0000000120202d7c in read_symbols (objfile=0x3fffde9a578, add_flags=...)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/symfile.c:781
--Type <RET> for more, q to quit, c to continue without paging--
#17 0x00000001202023d0 in syms_from_objfile_1 (add_flags=...,
    addrs=0x1fffff318, objfile=0x3fffd6db900)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/symfile.c:978
#18 syms_from_objfile (add_flags=..., addrs=<optimized out>,
    objfile=0x3fffd6db900)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/symfile.c:995
#19 symbol_file_add_with_addrs (abfd=<optimized out>,
    name=0x3fffd682a10 "/lib/libc.so.12", add_flags=...,
    addrs=<optimized out>, flags=..., parent=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/symfile.c:1098
#20 0x000000012021f20c in solib_read_symbols (so=0x3fffd682800, flags=...)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdbsupport/enum-flags.h:125
#21 0x0000000120220d54 in solib_add (pattern=0x0, from_tty=<optimized out>,
    readsyms=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/solib.c:1010
#22 0x00000001200188b4 in post_create_inferior (target=0x3fffd513da0,
    from_tty=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infcmd.c:334
#23 0x00000001200963ac in core_target_open (arg=<optimized out>,
    from_tty=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/corelow.c:521
#24 0x000000012000c468 in catch_command_errors (
    command=0x3fffd931534 <memmove>, arg=0x0, from_tty=0)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/main.c:457
#25 0x000000012000f4c0 in captured_main_1 (context=<optimized out>)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/main.c:1167
#26 0x000000012000fa80 in captured_main (data=0x3fffde9a578)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/main.c:1268
#27 gdb_main (args=0x3fffde9a578)
    at /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/main.c:1268
#28 0x00000001205c1a34 in main (argc=1, argv=0x3fffde9a568)
    at /usr/src/external/gpl3/gdb/bin/gdb/../../dist/gdb/gdb.c:32
Warning: the current language does not match this frame.
(gdb)
----
>How-To-Repeat:
Described above.
>Fix:
N/A



Home | Main Index | Thread Index | Old Index