public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/16405] New: call-sites lock up backtrace on Fedora 20
@ 2014-01-07 18:16 jan.kratochvil at redhat dot com
  2014-01-07 20:30 ` [Bug symtab/16405] backtrace locks up " jan.kratochvil at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-01-07 18:16 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16405
           Summary: call-sites lock up backtrace on Fedora 20
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
            Target: x86_64-unknown-linux-gnu

Attempt to backtrace LibreOffice on Fedora 20 x86_64 locks up, each frame gets
up to minutes to print, GDB RSS grows to 1GB and more.

The queue in process_queue() in the backtrace below (randomly stopped GDB) had
166 symtab entries.

It is probably a regression since call sites exist; unaware why it did not
reproduce before.  But expansion of a single symtab should not cause 166
symtabs to be expanded.

FAIL: GNU gdb (GDB) 7.6.50.20140107-cvs
FAIL: GNU gdb (GDB) 7.6.1.20131021-cvs
FAIL: gdb-7.6.50.20130731-16.fc20.x86_64
N/A:  GNU gdb (GDB) 7.5.1.20130125-cvs - it cannot parse Fedora 20 DWARF


LibreOffice backtrace:
(gdb) bt
Python Exception <type 'exceptions.ImportError'> No module named gdb.frames: 
#0  0x0000003eaaceaa8d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003ead4495b4 in g_main_context_poll (priority=2147483647, n_fds=3,
fds=0x14da140, timeout=9915, 
    context=0xa4db60) at gmain.c:4007
#2  g_main_context_iterate (context=context@entry=0xa4db60,
block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at gmain.c:3708
<locked up>


GDB backtrace:
#0  process_queue
#1  in dw2_do_instantiate_symtab
#2  in dw2_instantiate_symtab
#3  in dw2_find_pc_sect_symtab
#4  in find_pc_sect_symtab
#5  in find_pc_symtab
#6  in call_site_for_pc
#7  in call_site_find_chain_1
#8  in call_site_find_chain
#9  in dwarf2_tailcall_sniffer_first
#10 in dwarf2_frame_prev_register
#11 in frame_unwind_register_value
#12 in frame_register_unwind
#13 in frame_register_unwind_location
#14 in get_prev_frame_1
#15 in get_prev_frame
#16 in value_of_dwarf_reg_entry
#17 in value_of_dwarf_block_entry
#18 in loclist_read_variable_at_entry
#19 in read_frame_arg
#20 in print_frame_args
#21 in print_frame
#22 in print_frame_info
#23 in backtrace_command_1
#24 in backtrace_command
#25 in do_cfunc
#26 in cmd_func
#27 in execute_command
#28 in command_handler
#29 in command_line_handler
#30 in rl_callback_read_char
#31 in rl_callback_read_char_wrapper
#32 in stdin_event_handler
#33 in handle_file_event
#34 in process_event
#35 in gdb_do_one_event
#36 in start_event_loop
#37 in cli_command_loop
#38 in current_interp_command_loop
#39 in captured_command_loop
#40 in catch_errors
#41 in captured_main
#42 in catch_errors
#43 in gdb_main
#44 in main

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


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

end of thread, other threads:[~2015-01-25 15:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-07 18:16 [Bug symtab/16405] New: call-sites lock up backtrace on Fedora 20 jan.kratochvil at redhat dot com
2014-01-07 20:30 ` [Bug symtab/16405] backtrace locks up " jan.kratochvil at redhat dot com
2014-01-10 20:49 ` jan.kratochvil at redhat dot com
2014-01-10 20:50 ` [Bug symtab/16405] backtrace takes GBs and minutes with dwz -m jan.kratochvil at redhat dot com
2014-05-05 21:42 ` mjw at redhat dot com
2014-10-01 18:24 ` jan.kratochvil at redhat dot com
2014-10-01 19:49 ` jan.kratochvil at redhat dot com
2014-10-06 17:58 ` sergiodj at redhat dot com
2015-01-24 15:03 ` jan.kratochvil at redhat dot com
2015-01-25 15:33 ` jan.kratochvil at redhat dot 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).