From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11917 invoked by alias); 21 Nov 2013 18:50:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 11906 invoked by uid 89); 21 Nov 2013 18:50:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Nov 2013 18:50:29 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rALIoLgW029911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Nov 2013 13:50:21 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rALIoJx6027038; Thu, 21 Nov 2013 13:50:20 -0500 Message-ID: <528E55EB.5080606@redhat.com> Date: Thu, 21 Nov 2013 18:52:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Sanimir Agovic CC: gdb-patches@sourceware.org Subject: Re: C99 variable length array support References: <1382366424-21010-1-git-send-email-sanimir.agovic@intel.com> In-Reply-To: <1382366424-21010-1-git-send-email-sanimir.agovic@intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-11/txt/msg00647.txt.bz2 Hi! I had this series applied locally (on top of 2acaf6f), and now noticed that running "$ ./gdb ./gdb", and then "start" triggers an assertion: ../../src/gdb/dwarf2read.c:22435: internal-error: attr_to_locexprbaton_1: Assertion `attribute != NULL && cu != NULL && attr_form_is_block (attribute)' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. #0 internal_error (file=0x8d3105 "../../src/gdb/dwarf2read.c", line=22435, string=0x8d2a40 "%s: Assertion `%s' failed.") at ../../src/gdb/utils.c:829 #1 0x000000000066f0d6 in attr_to_locexprbaton_1 (attribute=0x1838158, cu=0xfd6d20, additional_data=0x7fffffffb827 "\006 ", , extra_size=1) at ../../src/gdb/dwarf2read.c:22434 #2 0x000000000066f54a in attr_to_dwarf2_prop (die=0x1848130, attr=0x1848168, cu=0xfd6d20, prop=0x7fffffffb870) at ../../src/gdb/dwarf2read.c:22490 #3 0x000000000065db20 in read_subrange_type (die=0x1848130, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:14338 #4 0x0000000000665cf6 in read_type_die_1 (die=0x1848130, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:18151 #5 0x0000000000665b3d in read_type_die (die=0x1848130, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:18093 #6 0x000000000065b563 in read_array_type (die=0x18480e0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:13256 #7 0x0000000000665bde in read_type_die_1 (die=0x18480e0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:18121 #8 0x0000000000665b3d in read_type_die (die=0x18480e0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:18093 #9 0x0000000000665ac4 in lookup_die_type (die=0x1837360, attr=0x1837398, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:18065 #10 0x0000000000665554 in die_type (die=0x1837360, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:17915 #11 0x000000000066402b in new_symbol_full (die=0x1837360, type=0x0, cu=0xfd6d20, space=0x0) at ../../src/gdb/dwarf2read.c:17390 #12 0x0000000000664b2d in new_symbol (die=0x1837360, type=0x0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:17723 #13 0x000000000064e3d9 in process_die (die=0x1837360, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8099 #14 0x000000000065551c in read_lexical_block_scope (die=0x1837260, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:11158 #15 0x000000000064e213 in process_die (die=0x1837260, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8033 #16 0x000000000065551c in read_lexical_block_scope (die=0x1833c40, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:11158 #17 0x000000000064e213 in process_die (die=0x1833c40, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8033 #18 0x0000000000654f70 in read_func_scope (die=0x1833b50, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:11053 #19 0x000000000064e1fb in process_die (die=0x1833b50, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8028 #20 0x0000000000654f70 in read_func_scope (die=0x1832be0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:11053 #21 0x000000000064e1fb in process_die (die=0x1832be0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8028 #22 0x000000000064fafd in read_file_scope (die=0x17d56d0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8903 #23 0x000000000064e1cb in process_die (die=0x17d56d0, cu=0xfd6d20) at ../../src/gdb/dwarf2read.c:8021 #24 0x000000000064daf4 in process_full_comp_unit (per_cu=0x179c400, pretend_language=language_minimal) at ../../src/gdb/dwarf2read.c:7822 #25 0x000000000064ca6a in process_queue () at ../../src/gdb/dwarf2read.c:7362 #26 0x0000000000641dca in dw2_do_instantiate_symtab (per_cu=0x179c400) at ../../src/gdb/dwarf2read.c:2625 #27 0x000000000064cd29 in psymtab_to_symtab_1 (pst=0x179f690) at ../../src/gdb/dwarf2read.c:7451 #28 0x000000000064c755 in dwarf2_read_symtab (self=0x179f690, objfile=0x1793af0) at ../../src/gdb/dwarf2read.c:7231 #29 0x00000000005af163 in psymtab_to_symtab (objfile=0x1793af0, pst=0x179f690) at ../../src/gdb/psymtab.c:779 #30 0x00000000005ae403 in find_pc_sect_symtab_from_partial (objfile=0x1793af0, msymbol=0x178d360, pc=215771788970, section=0x0, warn_if_readin=1) at ../../src/gdb/psymtab.c:391 #31 0x00000000005a7fff in find_pc_sect_symtab (pc=215771788970, section=0x0) at ../../src/gdb/symtab.c:2191 #32 0x00000000005a8054 in find_pc_symtab (pc=215771788970) at ../../src/gdb/symtab.c:2208 #33 0x00000000006fa506 in select_frame (fi=0xd9e670) at ../../src/gdb/frame.c:1519 #34 0x00000000006fa433 in get_selected_frame (message=0x0) at ../../src/gdb/frame.c:1457 #35 0x0000000000584bd8 in evaluate_subexp_standard (expect_type=0xf46980, exp=0xed0920, pos=0x7fffffffce6c, noside=EVAL_NORMAL) at ../../src/gdb/eval.c:835 #36 0x00000000006a9b8f in evaluate_subexp_c (expect_type=0xf46980, exp=0xed0920, pos=0x7fffffffce6c, noside=EVAL_NORMAL) at ../../src/gdb/c-lang.c:701 #37 0x00000000005830df in evaluate_subexp (expect_type=0xf46980, exp=0xed0920, pos=0x7fffffffce6c, noside=EVAL_NORMAL) at ../../src/gdb/eval.c:71 #38 0x000000000058a3bf in evaluate_subexp_standard (expect_type=0xf46980, exp=0xed0920, pos=0x7fffffffce6c, noside=EVAL_NORMAL) at ../../src/gdb/eval.c:2571 #39 0x00000000005266a4 in stap_evaluate_probe_argument (probe_generic=0x1774a10, n=1) at ../../src/gdb/stap-probe.c:1110 #40 0x0000000000524050 in elf_evaluate_probe_argument (probe=0x1774a10, n=1) at ../../src/gdb/elfread.c:1532 #41 0x000000000072865d in evaluate_probe_argument (probe=0x1774a10, n=1) at ../../src/gdb/probe.c:662 #42 0x0000000000484717 in svr4_handle_solib_event () at ../../src/gdb/solib-svr4.c:1819 #43 0x000000000070b994 in handle_solib_event () at ../../src/gdb/solib.c:1249 #44 0x0000000000557a73 in bpstat_stop_status (aspace=0xe03f20, bp_addr=215771788970, ptid=..., ws=0x7fffffffd2e0) at ../../src/gdb/breakpoint.c:5338 #45 0x00000000005d452f in handle_signal_stop (ecs=0x7fffffffd2c0) at ../../src/gdb/infrun.c:4234 #46 0x00000000005d30ec in handle_inferior_event (ecs=0x7fffffffd2c0) at ../../src/gdb/infrun.c:3721 #47 0x00000000005d1103 in wait_for_inferior () at ../../src/gdb/infrun.c:2757 #48 0x00000000005d04b7 in proceed (addr=215771780400, siggnal=GDB_SIGNAL_0, step=0) at ../../src/gdb/infrun.c:2330 #49 0x00000000005c84c0 in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=1) at ../../src/gdb/infcmd.c:611 #50 0x00000000005c855d in start_command (args=0x0, from_tty=1) at ../../src/gdb/infcmd.c:644 #51 0x00000000004dd637 in do_cfunc (c=0xd7a920, args=0x0, from_tty=1) at ../../src/gdb/cli/cli-decode.c:107 #52 0x00000000004e06cc in cmd_func (cmd=0xd7a920, args=0x0, from_tty=1) at ../../src/gdb/cli/cli-decode.c:1882 #53 0x00000000006edfb9 in execute_command (p=0xcbf6c5 "", from_tty=1) at ../../src/gdb/top.c:467 #54 0x00000000005f2807 in command_handler (command=0xcbf6c0 "") at ../../src/gdb/event-top.c:435 #55 0x00000000005f2dc6 in command_line_handler (rl=0x162a3b0 "main") at ../../src/gdb/event-top.c:632 #56 0x0000000000747ac2 in rl_callback_read_char () at ../../src/readline/callback.c:220 #57 0x00000000005f2329 in rl_callback_read_char_wrapper (client_data=0x0) at ../../src/gdb/event-top.c:164 #58 0x00000000005f271e in stdin_event_handler (error=0, client_data=0x0) at ../../src/gdb/event-top.c:375 #59 0x00000000005f12ae in handle_file_event (data=...) at ../../src/gdb/event-loop.c:768 #60 0x00000000005f0757 in process_event () at ../../src/gdb/event-loop.c:342 #61 0x00000000005f07f9 in gdb_do_one_event () at ../../src/gdb/event-loop.c:394 #62 0x00000000005f086f in start_event_loop () at ../../src/gdb/event-loop.c:431 #63 0x00000000005f235b in cli_command_loop (data=0x0) at ../../src/gdb/event-top.c:179 #64 0x00000000005e8e87 in current_interp_command_loop () at ../../src/gdb/interps.c:327 #65 0x00000000005e98b3 in captured_command_loop (data=0x0) at ../../src/gdb/main.c:267 #66 0x00000000005e72aa in catch_errors (func=0x5e9898 , func_args=0x0, errstring=0x8afe14 "", mask=RETURN_MASK_ALL) at ../../src/gdb/exceptions.c:524 #67 0x00000000005eacd5 in captured_main (data=0x7fffffffda20) at ../../src/gdb/main.c:1067 #68 0x00000000005e72aa in catch_errors (func=0x5e9b4f , func_args=0x7fffffffda20, errstring=0x8afe14 "", mask=RETURN_MASK_ALL) at ../../src/gdb/exceptions.c:524 #69 0x00000000005ead0b in gdb_main (args=0x7fffffffda20) at ../../src/gdb/main.c:1076 #70 0x000000000045b8da in main (argc=2, argv=0x7fffffffdb28) at ../../src/gdb/gdb.c:34 (top-gdb) I haven't tried the v2 series. -- Pedro Alves