public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug ada/31648] [gdb/ada] segfault in coerce_ref
Date: Thu, 18 Apr 2024 07:37:48 +0000	[thread overview]
Message-ID: <bug-31648-4717-2WNyTba6kb@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31648-4717@http.sourceware.org/bugzilla/>

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Backtrace in gdb:
...
(gdb) bt
#0  0x0000000000d0e5cc in value_type (value=0x0) at
/data/vries/gdb/src/gdb/value.c:1111
#1  0x0000000000d13fc6 in coerce_ref (arg=0x0) at
/data/vries/gdb/src/gdb/value.c:3904
#2  0x0000000000d140f8 in coerce_array (arg=0x0) at
/data/vries/gdb/src/gdb/value.c:3930
#3  0x0000000000cfbab4 in value_struct_elt (argp=0x7fffffffcea8, args=...,
name=0x7fffffffceb0 "LB0", 
    static_memfuncp=0x0, err=0x14b5508 "Bad GNAT array descriptor bounds") at
/data/vries/gdb/src/gdb/valops.c:2342
#4  0x000000000045b93b in desc_one_bound (bounds=0x0, i=1, which=0) at
/data/vries/gdb/src/gdb/ada-lang.c:1965
#5  0x000000000045ee7e in ada_array_length (arr=0x2bd0820, n=1) at
/data/vries/gdb/src/gdb/ada-lang.c:3373
#6  0x000000000046e6ad in ada_unop_atr (exp=0x36bb650, noside=EVAL_NORMAL,
op=OP_ATR_LENGTH, arg1=0x2bd0820, 
    type_arg=0x0, tem=1) at /data/vries/gdb/src/gdb/ada-lang.c:10440
#7  0x000000000046fb77 in expr::ada_unop_atr_operation::evaluate
(this=0x35313f0, expect_type=0x0, exp=0x36bb650, 
    noside=EVAL_NORMAL) at /data/vries/gdb/src/gdb/ada-lang.c:10849
#8  0x000000000076fbcb in expression::evaluate (this=0x36bb650,
expect_type=0x0, noside=EVAL_NORMAL)
    at /data/vries/gdb/src/gdb/eval.c:101
#9  0x000000000076fc78 in evaluate_expression (exp=0x36bb650, expect_type=0x0)
at /data/vries/gdb/src/gdb/eval.c:115
#10 0x00000000009f3fb6 in process_print_command_args (args=0x35b8cd6
"vars'length", print_opts=0x7fffffffd190, 
    voidprint=true) at /data/vries/gdb/src/gdb/printcmd.c:1306
#11 0x00000000009f4038 in print_command_1 (args=0x35b8cd6 "vars'length",
voidprint=1)
    at /data/vries/gdb/src/gdb/printcmd.c:1319
#12 0x00000000009f4480 in print_command (exp=0x35b8cd6 "vars'length",
from_tty=0)
    at /data/vries/gdb/src/gdb/printcmd.c:1452
#13 0x00000000005e7672 in do_simple_func (args=0x35b8cd6 "vars'length",
from_tty=0, c=0x2a23e40)
    at /data/vries/gdb/src/gdb/cli/cli-decode.c:95
#14 0x00000000005ec422 in cmd_func (cmd=0x2a23e40, args=0x35b8cd6
"vars'length", from_tty=0)
    at /data/vries/gdb/src/gdb/cli/cli-decode.c:2543
#15 0x0000000000c3cb4b in execute_command (p=0x35b8ce0 "h", from_tty=0) at
/data/vries/gdb/src/gdb/top.c:690
#16 0x0000000000779fc8 in command_handler (command=0x35b8cd0 "print
vars'length")
    at /data/vries/gdb/src/gdb/event-top.c:616
#17 0x0000000000c3c26b in read_command_file (stream=0x2bcd610) at
/data/vries/gdb/src/gdb/top.c:457
--Type <RET> for more, q to quit, c to continue without paging--
#18 0x0000000000600ad8 in script_from_file (stream=0x2bcd610,
file=0x7fffffffe1ee "gdb.in")
    at /data/vries/gdb/src/gdb/cli/cli-script.c:1641
#19 0x00000000005ded44 in source_script_from_stream (stream=0x2bcd610,
file=0x7fffffffe1ee "gdb.in", 
    file_to_open=0x7fffffffd6e0 "gdb.in") at
/data/vries/gdb/src/gdb/cli/cli-cmds.c:728
#20 0x00000000005dee99 in source_script_with_search (file=0x7fffffffe1ee
"gdb.in", from_tty=0, search_path=0)
    at /data/vries/gdb/src/gdb/cli/cli-cmds.c:773
#21 0x00000000005def15 in source_script (file=0x7fffffffe1ee "gdb.in",
from_tty=0)
    at /data/vries/gdb/src/gdb/cli/cli-cmds.c:782
#22 0x00000000008fab4a in catch_command_errors (command=0x5deef0
<source_script(char const*, int)>, 
    arg=0x7fffffffe1ee "gdb.in", from_tty=0, do_bp_actions=false) at
/data/vries/gdb/src/gdb/main.c:513
#23 0x00000000008face5 in execute_cmdargs (cmdarg_vec=0x7fffffffd970,
file_type=CMDARG_FILE, 
    cmd_type=CMDARG_COMMAND, ret=0x7fffffffd94c) at
/data/vries/gdb/src/gdb/main.c:605
#24 0x00000000008fc0b2 in captured_main_1 (context=0x7fffffffdbb0) at
/data/vries/gdb/src/gdb/main.c:1299
#25 0x00000000008fc2b5 in captured_main (data=0x7fffffffdbb0) at
/data/vries/gdb/src/gdb/main.c:1320
#26 0x00000000008fc320 in gdb_main (args=0x7fffffffdbb0) at
/data/vries/gdb/src/gdb/main.c:1345
#27 0x000000000041909e in main (argc=7, argv=0x7fffffffdcc8) at
/data/vries/gdb/src/gdb/gdb.c:32
...

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

  reply	other threads:[~2024-04-18  7:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-17 11:05 [Bug ada/31648] New: " vries at gcc dot gnu.org
2024-04-18  7:37 ` vries at gcc dot gnu.org [this message]
2024-04-18  7:39 ` [Bug ada/31648] " vries at gcc dot gnu.org
2024-04-18  7:46 ` vries at gcc dot gnu.org
2024-04-18  7:54 ` vries at gcc dot gnu.org
2024-04-18  7:54 ` vries at gcc dot gnu.org
2024-04-18  8:00 ` vries at gcc dot gnu.org
2024-04-18 17:37 ` tromey at sourceware dot org
2024-04-18 18:12 ` tromey at sourceware dot org

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=bug-31648-4717-2WNyTba6kb@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).