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 exp/31671] [gdb/exp] Segmentation fault in value_type
Date: Tue, 23 Apr 2024 12:41:06 +0000	[thread overview]
Message-ID: <bug-31671-4717-tpuQAICYUw@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31671-4717@http.sourceware.org/bugzilla/>

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
In more detail:
...
Breakpoint 5, -[BasicClass(Private) hiddenMethod] (self=0x605170, _cmd=0x601400
<_OBJC_SELECTOR_TABLE+32>) at
/usr/src/packages/BUILD/gdb-13.2/build-x86_64-suse-linux/gdb/testsuite/../../../gdb/testsuite/gdb.objc/basicclass.m:62
62        return self;

Thread 1 "gdb" received signal SIGSEGV, Segmentation fault.
value_type (value=value@entry=0x0) at ../../gdb/value.c:1111
1111      return value->type;
(gdb) bt
#0  value_type (value=value@entry=0x0) at ../../gdb/value.c:1111
#1  0x0000000000683271 in value_arg_coerce (is_prototyped=0,
param_type=<optimized out>, arg=0x0, 
    gdbarch=0x7ffff017c0d0) at ../../gdb/infcall.c:184
#2  call_function_by_hand_dummy (function=function@entry=0x7ffff026bf50, 
    default_return_type=default_return_type@entry=0x0, args=...,
dummy_dtor=dummy_dtor@entry=0x0, 
    dummy_dtor_data=dummy_dtor_data@entry=0x0) at ../../gdb/infcall.c:1112
#3  0x0000000000685c5f in call_function_by_hand
(function=function@entry=0x7ffff026bf50, 
    default_return_type=default_return_type@entry=0x0, args=...) at
../../gdb/infcall.c:786
#4  0x000000000060e291 in eval_op_objc_msgcall (exp=<optimized out>, args=...,
target=0x7ffff02563c0, 
    selector=6304368, noside=EVAL_NORMAL, expect_type=0x0) at
../../gdb/eval.c:2176
#5  expr::objc_msgcall_operation::evaluate (this=<optimized out>,
expect_type=0x0, exp=<optimized out>, 
    noside=EVAL_NORMAL) at ../../gdb/eval.c:2253
#6  0x000000000061288f in expression::evaluate (this=0x7ffff01aca60,
expect_type=expect_type@entry=0x0, 
    noside=noside@entry=EVAL_NORMAL) at ../../gdb/eval.c:101
#7  0x0000000000612a67 in evaluate_expression (exp=<optimized out>,
expect_type=expect_type@entry=0x0)
    at ../../gdb/eval.c:115
#8  0x000000000077c8fd in process_print_command_args (args=0x7ffff01d93ce
"[self printHi]", 
    print_opts=print_opts@entry=0x7fffffffdeb0, voidprint=voidprint@entry=true)
at ../../gdb/printcmd.c:1310
#9  0x000000000077d2ce in print_command_1 (args=<optimized out>,
voidprint=<optimized out>)
    at ../../gdb/printcmd.c:1323
#10 0x0000000000533126 in cmd_func (cmd=<optimized out>, args=<optimized out>,
from_tty=<optimized out>)
    at ../../gdb/cli/cli-decode.c:2543
#11 0x00000000008a24a7 in execute_command (p=<optimized out>,
p@entry=0x7ffff01d93c8 "print [self printHi]", 
    from_tty=0) at ../../gdb/top.c:690
#12 0x0000000000615404 in command_handler (command=0x7ffff01d93c8 "print [self
printHi]")
    at ../../gdb/event-top.c:628
#13 0x000000000089fcec in read_command_file
(stream=stream@entry=0x7ffff0127320) at ../../gdb/top.c:457
#14 0x000000000054228e in script_from_file (stream=stream@entry=0x7ffff0127320, 
    file=file@entry=0x7fffffffe8d5 "outputs/gdb.objc/basicclass/gdb.in.1") at
../../gdb/cli/cli-script.c:1641
#15 0x0000000000530294 in source_script_from_stream (
    file_to_open=0x7ffff0080c48 "outputs/gdb.objc/basicclass/gdb.in.1", 
    file=0x7fffffffe8d5 "outputs/gdb.objc/basicclass/gdb.in.1",
stream=0x7ffff0127320)
    at ../../gdb/cli/cli-cmds.c:729
#16 source_script_with_search (file=0x7fffffffe8d5
"outputs/gdb.objc/basicclass/gdb.in.1", 
    file@entry=<error reading variable: value has been optimized out>, 
    from_tty=<error reading variable: value has been optimized out>, 
    search_path=<error reading variable: value has been optimized out>) at
../../gdb/cli/cli-cmds.c:774
#17 0x00000000006f1d24 in catch_command_errors (command=<optimized out>,
arg=<optimized out>, 
    from_tty=<optimized out>, do_bp_actions=do_bp_actions@entry=false) at
../../gdb/main.c:513
#18 0x00000000006f1df6 in execute_cmdargs
(cmdarg_vec=cmdarg_vec@entry=0x7fffffffe2d0, 
    file_type=file_type@entry=CMDARG_FILE,
cmd_type=cmd_type@entry=CMDARG_COMMAND, ret=ret@entry=0x7fffffffe26c)
    at ../../gdb/main.c:606
#19 0x00000000006f2ffa in captured_main_1
(context=context@entry=0x7fffffffe420) at ../../gdb/main.c:1299
#20 0x00000000006f3efb in captured_main (data=data@entry=0x7fffffffe420) at
../../gdb/main.c:1320
#21 gdb_main (args=args@entry=0x7fffffffe440) at ../../gdb/main.c:1345
#22 0x0000000000414c85 in main (argc=<optimized out>, argv=<optimized out>) at
../../gdb/gdb.c:32
...

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

  reply	other threads:[~2024-04-23 12:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23 12:35 [Bug exp/31671] New: " vries at gcc dot gnu.org
2024-04-23 12:41 ` vries at gcc dot gnu.org [this message]
2024-04-24 17:03 ` [Bug exp/31671] " ssbssa at sourceware dot org
2024-05-03 15:38 ` ssbssa at sourceware dot org
2024-05-03 19:45 ` tromey at sourceware dot org
2024-05-03 19:49 ` 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-31671-4717-tpuQAICYUw@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).