From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28540 invoked by alias); 17 Feb 2015 18:45:27 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 28515 invoked by uid 48); 17 Feb 2015 18:45:27 -0000 From: "msebor at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17993] New: [ppc64] SIGABRT in dw2_find_pc_sect_compunit_symtab reading a kernel module Date: Wed, 18 Feb 2015 15:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00271.txt.bz2 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 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: . Find the GDB manual and other documentation resources online at: . 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: . /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=, warn_if_readin=) at /home/remote/msebor/fsf/binutils-gdb/gdb/dwarf2read.c:4072 #2 0x0000000010214e30 in find_pc_sect_compunit_symtab (pc=, section=) at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:3009 #3 0x0000000010214e98 in find_pc_compunit_symtab (pc=) at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:3027 #4 0x0000000010216d0c in search_symbols (regexp=, 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=, from_tty=) at /home/remote/msebor/fsf/binutils-gdb/gdb/symtab.c:4778 #6 0x00000000101282c0 in do_cfunc (c=, args=, from_tty=) at /home/remote/msebor/fsf/binutils-gdb/gdb/cli/cli-decode.c:105 #7 0x000000001012b538 in cmd_func (cmd=, args=, from_tty=) at /home/remote/msebor/fsf/binutils-gdb/gdb/cli/cli-decode.c:1893 #8 0x0000000010372504 in execute_command (p=, from_tty=) 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=) 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=) at /home/remote/msebor/fsf/binutils-gdb/gdb/event-top.c:171 #13 0x00000000102664f4 in stdin_event_handler (error=, 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=) 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=) 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=) at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:321 #21 0x0000000010257b20 in catch_errors ( func=@0x1083e0d0: 0x1025cb70 , func_args=0x0, errstring=0x1068bbb0 "", mask=) at /home/remote/msebor/fsf/binutils-gdb/gdb/exceptions.c:237 #22 0x000000001025e394 in captured_main (data=) at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:1149 #23 0x0000000010257b20 in catch_errors ( func=@0x1083e150: 0x1025d350 , func_args=0x3fffffffeb80, errstring=0x1068bbb0 "", mask=) at /home/remote/msebor/fsf/binutils-gdb/gdb/exceptions.c:237 #24 0x000000001025e608 in gdb_main (args=) at /home/remote/msebor/fsf/binutils-gdb/gdb/main.c:1157 #25 0x00000000100876a8 in main ( argc=, argv=) 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.