From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0FBAF3858C50; Tue, 23 Apr 2024 12:41:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FBAF3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713876067; bh=VVUPk0gYSQVtSqMcQ5Au+6vBQvJL3OEeiVwKsMyZF9M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iJctPMkaIx0qcz5yiZDbTobpbHZ4Krj7rsdT+PA/aYgP5poN++tjYFWMNXTdjJJkG prscgevkE+/lTmHfHYky4HAvvPFyqE8j5PINa5D4E7n10gRXHozat75bjb0+0h1B68 s8HsAVQdyEWthpPciaL4JeGSUpwNdC/XIIRoJqUQ= From: "vries at gcc dot gnu.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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31671 --- Comment #1 from Tom de Vries --- In more detail: ... Breakpoint 5, -[BasicClass(Private) hiddenMethod] (self=3D0x605170, _cmd=3D= 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=3Dvalue@entry=3D0x0) at ../../gdb/value.c:1111 1111 return value->type; (gdb) bt #0 value_type (value=3Dvalue@entry=3D0x0) at ../../gdb/value.c:1111 #1 0x0000000000683271 in value_arg_coerce (is_prototyped=3D0, param_type=3D, arg=3D0x0,=20 gdbarch=3D0x7ffff017c0d0) at ../../gdb/infcall.c:184 #2 call_function_by_hand_dummy (function=3Dfunction@entry=3D0x7ffff026bf50= ,=20 default_return_type=3Ddefault_return_type@entry=3D0x0, args=3D..., dummy_dtor=3Ddummy_dtor@entry=3D0x0,=20 dummy_dtor_data=3Ddummy_dtor_data@entry=3D0x0) at ../../gdb/infcall.c:1= 112 #3 0x0000000000685c5f in call_function_by_hand (function=3Dfunction@entry=3D0x7ffff026bf50,=20 default_return_type=3Ddefault_return_type@entry=3D0x0, args=3D...) at ../../gdb/infcall.c:786 #4 0x000000000060e291 in eval_op_objc_msgcall (exp=3D, args= =3D..., target=3D0x7ffff02563c0,=20 selector=3D6304368, noside=3DEVAL_NORMAL, expect_type=3D0x0) at ../../gdb/eval.c:2176 #5 expr::objc_msgcall_operation::evaluate (this=3D, expect_type=3D0x0, exp=3D,=20 noside=3DEVAL_NORMAL) at ../../gdb/eval.c:2253 #6 0x000000000061288f in expression::evaluate (this=3D0x7ffff01aca60, expect_type=3Dexpect_type@entry=3D0x0,=20 noside=3Dnoside@entry=3DEVAL_NORMAL) at ../../gdb/eval.c:101 #7 0x0000000000612a67 in evaluate_expression (exp=3D, expect_type=3Dexpect_type@entry=3D0x0) at ../../gdb/eval.c:115 #8 0x000000000077c8fd in process_print_command_args (args=3D0x7ffff01d93ce "[self printHi]",=20 print_opts=3Dprint_opts@entry=3D0x7fffffffdeb0, voidprint=3Dvoidprint@e= ntry=3Dtrue) at ../../gdb/printcmd.c:1310 #9 0x000000000077d2ce in print_command_1 (args=3D, voidprint=3D) at ../../gdb/printcmd.c:1323 #10 0x0000000000533126 in cmd_func (cmd=3D, args=3D, from_tty=3D) at ../../gdb/cli/cli-decode.c:2543 #11 0x00000000008a24a7 in execute_command (p=3D, p@entry=3D0x7ffff01d93c8 "print [self printHi]",=20 from_tty=3D0) at ../../gdb/top.c:690 #12 0x0000000000615404 in command_handler (command=3D0x7ffff01d93c8 "print = [self printHi]") at ../../gdb/event-top.c:628 #13 0x000000000089fcec in read_command_file (stream=3Dstream@entry=3D0x7ffff0127320) at ../../gdb/top.c:457 #14 0x000000000054228e in script_from_file (stream=3Dstream@entry=3D0x7ffff= 0127320,=20 file=3Dfile@entry=3D0x7fffffffe8d5 "outputs/gdb.objc/basicclass/gdb.in.= 1") at ../../gdb/cli/cli-script.c:1641 #15 0x0000000000530294 in source_script_from_stream ( file_to_open=3D0x7ffff0080c48 "outputs/gdb.objc/basicclass/gdb.in.1",=20 file=3D0x7fffffffe8d5 "outputs/gdb.objc/basicclass/gdb.in.1", stream=3D0x7ffff0127320) at ../../gdb/cli/cli-cmds.c:729 #16 source_script_with_search (file=3D0x7fffffffe8d5 "outputs/gdb.objc/basicclass/gdb.in.1",=20 file@entry=3D,=20 from_tty=3D,=20 search_path=3D) at ../../gdb/cli/cli-cmds.c:774 #17 0x00000000006f1d24 in catch_command_errors (command=3D, arg=3D,=20 from_tty=3D, do_bp_actions=3Ddo_bp_actions@entry=3Dfalse= ) at ../../gdb/main.c:513 #18 0x00000000006f1df6 in execute_cmdargs (cmdarg_vec=3Dcmdarg_vec@entry=3D0x7fffffffe2d0,=20 file_type=3Dfile_type@entry=3DCMDARG_FILE, cmd_type=3Dcmd_type@entry=3DCMDARG_COMMAND, ret=3Dret@entry=3D0x7fffffffe26= c) at ../../gdb/main.c:606 #19 0x00000000006f2ffa in captured_main_1 (context=3Dcontext@entry=3D0x7fffffffe420) at ../../gdb/main.c:1299 #20 0x00000000006f3efb in captured_main (data=3Ddata@entry=3D0x7fffffffe420= ) at ../../gdb/main.c:1320 #21 gdb_main (args=3Dargs@entry=3D0x7fffffffe440) at ../../gdb/main.c:1345 #22 0x0000000000414c85 in main (argc=3D, argv=3D) at ../../gdb/gdb.c:32 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=