From: Pedro Alves <palves@redhat.com>
To: Sanimir Agovic <sanimir.agovic@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: C99 variable length array support
Date: Thu, 21 Nov 2013 18:52:00 -0000 [thread overview]
Message-ID: <528E55EB.5080606@redhat.com> (raw)
In-Reply-To: <1382366424-21010-1-git-send-email-sanimir.agovic@intel.com>
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 ", <incomplete sequence \375>, 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 <captured_command_loop>, 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 <captured_main>, 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
next prev parent reply other threads:[~2013-11-21 18:50 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 14:40 Sanimir Agovic
2013-10-21 14:40 ` [PATCH 02/10] type: add c99 " Sanimir Agovic
2013-11-07 19:02 ` Tom Tromey
2013-11-19 15:31 ` Agovic, Sanimir
2013-11-22 20:00 ` Tom Tromey
2013-11-27 17:08 ` Agovic, Sanimir
[not found] ` <0377C58828D86C4588AEEC42FC3B85A7176BC3DE@IRSMSX105.ger.corp.intel.com>
2013-11-27 17:15 ` Agovic, Sanimir
2013-11-07 19:10 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 07/10] test: evaluate pointers to C99 vla correctly Sanimir Agovic
2013-11-07 20:57 ` Tom Tromey
2013-11-08 6:37 ` Tom Tromey
2013-11-07 21:14 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 09/10] test: basic c99 vla tests Sanimir Agovic
2013-11-07 21:23 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 10/10] test: add mi vla test Sanimir Agovic
2013-11-07 21:31 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 01/10] vla: introduce new bound type abstraction adapt uses Sanimir Agovic
2013-11-07 19:00 ` Tom Tromey
2013-11-18 11:15 ` Agovic, Sanimir
2013-10-21 14:40 ` [PATCH 08/10] test: multi-dimensional c99 vla Sanimir Agovic
2013-11-07 21:19 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 04/10] vla: enable sizeof operator for indirection Sanimir Agovic
2013-11-07 19:57 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 06/10] vla: update type from newly created value Sanimir Agovic
2013-11-07 20:56 ` Tom Tromey
2013-11-20 7:56 ` Agovic, Sanimir
2013-11-20 11:02 ` Pedro Alves
2013-11-20 13:08 ` Agovic, Sanimir
2013-11-21 18:50 ` Pedro Alves
2013-11-23 19:27 ` Doug Evans
2013-10-21 14:40 ` [PATCH 03/10] vla: enable sizeof operator to work with variable length arrays Sanimir Agovic
2013-11-07 19:10 ` Tom Tromey
2013-10-21 14:40 ` [PATCH 05/10] vla: allow side effects for sizeof argument Sanimir Agovic
2013-10-24 19:55 ` Tom Tromey
2013-10-25 8:13 ` Agovic, Sanimir
2013-10-28 21:00 ` Tom Tromey
2013-11-18 9:37 ` Agovic, Sanimir
2013-11-18 15:56 ` Tom Tromey
2013-11-20 12:18 ` Agovic, Sanimir
2013-11-19 17:08 ` Pedro Alves
2013-11-20 12:47 ` Agovic, Sanimir
2013-11-20 13:24 ` Pedro Alves
2013-11-21 18:52 ` Pedro Alves [this message]
2013-11-21 19:01 ` C99 variable length array support Pedro Alves
2013-11-21 19:10 ` Pedro Alves
2013-11-22 10:53 ` Agovic, Sanimir
2013-11-22 12:35 ` Pedro Alves
2013-11-22 17:06 ` Agovic, Sanimir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528E55EB.5080606@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=sanimir.agovic@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox