public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17993] New: [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab reading a kernel module
@ 2015-02-18 15:09 msebor at redhat dot com
  2021-05-18 22:10 ` [Bug gdb/17993] " cel at us dot ibm.com
  0 siblings, 1 reply; 2+ messages in thread
From: msebor at redhat dot com @ 2015-02-18 15:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17993

            Bug ID: 17993
           Summary: [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab
                    reading a kernel module
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: msebor at redhat dot com

On ppc64, the command 'info functions' crashes GDB with a SIGABRT due to an
internal error after loading a kernel module with separate debug info.  The
following is one example of such a crash.

$ /build/gdb-fsf/gdb/gdb /usr/lib/modules/$(uname
-r)/kernel/arch/powerpc/oprofile/oprofile.ko
GNU gdb (GDB) 7.9.50.20150213-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
/usr/lib/modules/3.10.0-227.el7.ppc64/kernel/arch/powerpc/oprofile/oprofile.ko...Reading
symbols from
/usr/lib/debug/lib/modules/3.10.0-227.el7.ppc64/kernel/arch/powerpc/oprofile/oprofile.ko.debug...done.
done.
(gdb) info functions
warning: (Internal error: pc 0x0 in read in CU, but not in symtab.)
/home/remote/msebor/fsf/binutils-gdb/gdb/dwarf2read.c:4072: internal-error:
dw2_find_pc_sect_compunit_symtab: Assertion `result != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

/home/remote/msebor/fsf/binutils-gdb/gdb/dwarf2read.c:4072: internal-error:
dw2_find_pc_sect_compunit_symtab: Assertion `result != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n



A stack trace at the point of the abort:

#0  internal_error (
    file=0x1070e6f8 "/home/remote/msebor/fsf/binutils-gdb/gdb/dwarf2read.c", 
    line=4072, fmt=0x10684048 "%s: Assertion `%s' failed.")
    at /home/remote/msebor/fsf/binutils-gdb/gdb/common/errors.c:51
During symbol reading, incomplete CFI data; DW_CFA_restore unspecified
register lr (#67) at 0x102f3cd4.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r2) at
0x102f3ce0.
#1  0x00000000102f3d14 in dw2_find_pc_sect_compunit_symtab (
    objfile=0x10a91190, msymbol=..., pc=0, section=<optimized out>, 
    warn_if_readin=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/dwarf2read.c:4072
#2  0x0000000010214e30 in find_pc_sect_compunit_symtab (pc=<optimized out>, 
    section=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:3009
#3  0x0000000010214e98 in find_pc_compunit_symtab (pc=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:3027
#4  0x0000000010216d0c in search_symbols (regexp=<optimized out>, 
    regexp@entry=0x0, kind=kind@entry=FUNCTIONS_DOMAIN, nfiles=nfiles@entry=0, 
    files=files@entry=0x0, matches=matches@entry=0x3fffffffdea0)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:4566
#5  0x0000000010217990 in symtab_symbol_info (regexp=0x0, 
    kind=<optimized out>, from_tty=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:4778
#6  0x00000000101282c0 in do_cfunc (c=<optimized out>, args=<optimized out>, 
    from_tty=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/cli/cli-decode.c:105
#7  0x000000001012b538 in cmd_func (cmd=<optimized out>, args=<optimized out>, 
    from_tty=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/cli/cli-decode.c:1893
#8  0x0000000010372504 in execute_command (p=<optimized out>, 
    from_tty=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/top.c:476
#9  0x0000000010266384 in command_handler (command=0x10891390 "info functions")
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:494
#10 0x0000000010266e38 in command_line_handler (rl=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:692
#11 0x000000001058f28c in rl_callback_read_char ()
    at /home/remote/msebor/fsf/binutils-gdb/readline/callback.c:220
#12 0x0000000010266438 in rl_callback_read_char_wrapper (
    client_data=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:171
#13 0x00000000102664f4 in stdin_event_handler (error=<optimized out>, 
    client_data=0x0)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:432
#14 0x0000000010264208 in handle_file_event (file_ptr=0x10a79f60, 
    ready_mask=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-loop.c:657
#15 0x0000000010264934 in gdb_wait_for_event (block=block@entry=1)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-loop.c:772
#16 0x0000000010264c84 in gdb_do_one_event ()
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-loop.c:309
#17 0x0000000010264d54 in start_event_loop ()
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-loop.c:334
#18 0x0000000010266918 in cli_command_loop (data=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:186
#19 0x000000001025bae8 in current_interp_command_loop ()
    at /home/remote/msebor/fsf/binutils-gdb/gdb/interps.c:317
#20 0x000000001025cb94 in captured_command_loop (data=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:321
#21 0x0000000010257b20 in catch_errors (
    func=@0x1083e0d0: 0x1025cb70 <captured_command_loop>, func_args=0x0, 
    errstring=0x1068bbb0 "", mask=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/exceptions.c:237
#22 0x000000001025e394 in captured_main (data=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:1149
#23 0x0000000010257b20 in catch_errors (
    func=@0x1083e150: 0x1025d350 <captured_main>, func_args=0x3fffffffeb80, 
    errstring=0x1068bbb0 "", mask=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/exceptions.c:237
#24 0x000000001025e608 in gdb_main (args=<optimized out>)
    at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:1157
#25 0x00000000100876a8 in main (
    argc=<error reading variable: value has been optimized out>, 
    argv=<optimized out>) at /home/remote/msebor/fsf/binutils-gdb/gdb/gdb.c:32

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/17993] [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab reading a kernel module
  2015-02-18 15:09 [Bug gdb/17993] New: [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab reading a kernel module msebor at redhat dot com
@ 2021-05-18 22:10 ` cel at us dot ibm.com
  0 siblings, 0 replies; 2+ messages in thread
From: cel at us dot ibm.com @ 2021-05-18 22:10 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17993

Carl E Love <cel at us dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cel at us dot ibm.com

--- Comment #1 from Carl E Love <cel at us dot ibm.com> ---
I attempted to reproduce the bug with the current gdb and current Oprofile user
module.  The "info functions" worked fine.  I was unable to reproduce the
failure.

Is anyone else able to reproduce the failure?  If not, can the bugzilla be
closed?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-18 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 15:09 [Bug gdb/17993] New: [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab reading a kernel module msebor at redhat dot com
2021-05-18 22:10 ` [Bug gdb/17993] " cel at us dot ibm.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).