From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D18E53858024; Tue, 6 Sep 2022 09:55:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D18E53858024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662458145; bh=5uDRP/H8NPmA9gvBJGJHnQEJEgldv+hYY1dR0QRHON4=; h=From:To:Subject:Date:From; b=KTLJWvZkQCj+E3ultQZqfiHoa7FsoUGsENfASdsz7bteBuhuIrbnYhXAYvp1v3rJm l+jZfd868cTt5sJHhFCUx81i2z4XLlyxnW7+JfmROgAECat9h0ZmrCBTxWsPNdECxg 0vWBUp+c6NaUXJReojAB/RpnaayjVUqFrGeYYh4I= From: "eigelc at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug rust/29550] New: Segmentation fault in infrun.c Date: Tue, 06 Sep 2022 09:55:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eigelc at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D29550 Bug ID: 29550 Summary: Segmentation fault in infrun.c Product: gdb Version: 12.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: rust Assignee: unassigned at sourceware dot org Reporter: eigelc at gmail dot com Target Milestone: --- I am debugging a rather complex rust application. gdb crashes. (gdb) set follow-fork-mode child (gdb) b src/runtime/fork/init/mod.rs:150 Breakpoint 1 at 0x559ebe2aab9d: file mod.rs, line 150. (gdb) c Continuing. [Attaching after Thread 0x7fdec5453cc0 (LWP 28777) fork to child process 46= 624] [New inferior 2 (process 46624)] [Detaching after fork from parent process 28777] [Inferior 1 (process 28777) detached] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Attaching after Thread 0x7fdec5453cc0 (LWP 46624) fork to child process 46= 625] [New inferior 3 (process 46625)] [Detaching after fork from parent process 46624] [Inferior 2 (process 46624) detached] warning: Target and debugger are in different PID namespaces; thread lists = and other data are likely unreliable. Connect to gdbserver inside the containe= r. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Attaching after Thread 0x7fdec5453cc0 (LWP 46625) fork to child process 46= 626] [New inferior 4 (process 46626)] Fatal signal: Segmentation fault ----- Backtrace ----- 0x562325f90c20 gdb_internal_backtrace_1 /home/cristianeigel/tmp/gdb-12.1/gdb/bt-utils.c:122 0x562325f90c20 _Z22gdb_internal_backtracev /home/cristianeigel/tmp/gdb-12.1/gdb/bt-utils.c:168 0x5623260931f9 handle_fatal_signal /home/cristianeigel/tmp/gdb-12.1/gdb/event-top.c:904 0x5623260933b8 handle_sigsegv /home/cristianeigel/tmp/gdb-12.1/gdb/event-top.c:977 0x7f53b8ee151f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x5623260fb6c7 maybe_set_commit_resumed_all_targets /home/cristianeigel/tmp/gdb-12.1/gdb/infrun.c:2785 0x562325ed4d42 _ZN29scoped_disable_commit_resumed5resetEv /home/cristianeigel/tmp/gdb-12.1/gdb/infrun.c:2895 0x562325ed4d42 _ZN29scoped_disable_commit_resumedD4Ev /home/cristianeigel/tmp/gdb-12.1/gdb/infrun.c:2927 0x562325ed4d42 _Z20fetch_inferior_eventv /home/cristianeigel/tmp/gdb-12.1/gdb/infrun.c:4151 0x562326425395 gdb_wait_for_event /home/cristianeigel/tmp/gdb-12.1/gdbsupport/event-loop.cc:700 0x562326425879 gdb_wait_for_event /home/cristianeigel/tmp/gdb-12.1/gdbsupport/event-loop.cc:596 0x562326425879 _Z16gdb_do_one_eventv /home/cristianeigel/tmp/gdb-12.1/gdbsupport/event-loop.cc:212 0x562326152d64 start_event_loop /home/cristianeigel/tmp/gdb-12.1/gdb/main.c:421 0x562326152d64 captured_command_loop /home/cristianeigel/tmp/gdb-12.1/gdb/main.c:481 0x562326154964 captured_main /home/cristianeigel/tmp/gdb-12.1/gdb/main.c:1351 0x562326154964 _Z8gdb_mainP18captured_main_args /home/cristianeigel/tmp/gdb-12.1/gdb/main.c:1366 0x562325ee87ff main /home/cristianeigel/tmp/gdb-12.1/gdb/gdb.c:32 --------------------- A fatal error internal to GDB has been detected, further debugging is not possible. GDB will now terminate. This is a bug, please report it. For instructions, see: . [1] 46554 segmentation fault sudo -E /home/cristianeigel/.cargo/bin/rust-gdb --pid 28777 --=20 You are receiving this mail because: You are on the CC list for the bug.=