public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "levraiphilippeblain at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/26861] internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed. OS: Mac OSX Catalina; Compiler: GCC; Language: C Date: Tue, 23 Feb 2021 03:53:09 +0000 [thread overview] Message-ID: <bug-26861-4717-QgBm1DRDuU@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26861-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26861 --- Comment #9 from Philippe Blain <levraiphilippeblain at gmail dot com> --- Ok so it appears core dumps are not written to the current working directory on macOS, you learn something new everyday... So you need to do the following ([1], [2]): ~~~shell $ ulimit -c unlimited $ chmod o+w /cores $ gdb --batch ./test -ex 'b here' -ex run # GDB fails as above $ ls /cores core.32580 $ lldb -c /cores/core.32580 (lldb) target create --core "/cores/core.32580" Core file '/cores/core.32580' (x86_64) was loaded. (lldb) bt * thread #1: tid = 0x0000, 0x00007fff98713f06 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP * frame #0: 0x00007fff98713f06 libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00007fff94c264ec libsystem_pthread.dylib`pthread_kill + 90 frame #2: 0x00007fff8a4e36df libsystem_c.dylib`abort + 129 frame #3: 0x00000001003547cd gdb`internal_vproblem(internal_problem*, char const*, int, char const*, __va_list_tag*) [inlined] dump_core() + 1325 at utils.c:204 [opt] frame #4: 0x00000001003547a4 gdb`internal_vproblem(problem=<unavailable>, file=<unavailable>, line=<unavailable>, fmt=<unavailable>, ap=<unavailable>) + 1284 at utils.c:414 [opt] frame #5: 0x000000010035427e gdb`internal_verror(file=<unavailable>, line=<unavailable>, fmt=<unavailable>, ap=<unavailable>) + 30 at utils.c:439 [opt] frame #6: 0x0000000100414ad4 gdb`internal_error(file=<unavailable>, line=<unavailable>, fmt=<unavailable>) + 116 at errors.cc:55 [opt] frame #7: 0x00000001003035ac gdb`target_mourn_inferior(ptid=<unavailable>) + 124 at target.c:2149 [opt] frame #8: 0x00000001000df487 gdb`darwin_nat_target::kill(this=<unavailable>) + 791 at darwin-nat.c:1535 [opt] frame #9: 0x000000010032796f gdb`quit_force(int*, int) [inlined] kill_or_detach(inf=<unavailable>, from_tty=<unavailable>) + 207 at top.c:1689 [opt] frame #10: 0x0000000100327921 gdb`quit_force(exit_arg=<unavailable>, from_tty=<unavailable>) + 129 at top.c:1780 [opt] frame #11: 0x00000001001f06a8 gdb`captured_main_1(context=<unavailable>) + 9592 at main.c:1234 [opt] frame #12: 0x00000001001ee06f gdb`gdb_main(captured_main_args*) [inlined] captured_main(void*) + 11 at main.c:1243 [opt] frame #13: 0x00000001001ee064 gdb`gdb_main(args=<unavailable>) + 4 at main.c:1268 [opt] frame #14: 0x0000000100000bea gdb`main(argc=<unavailable>, argv=<unavailable>) + 42 at gdb.c:32 [opt] frame #15: 0x00007fff8b1495ad libdyld.dylib`start + 1 (lldb) ~~~ I've never debugged a debugger before, nor done system-level programming so I'm really at the limit of my knowledge here... I'm willing to help further though. I'll start by recompiling GDB without optimization. [1] https://stackoverflow.com/questions/9412156/how-to-generate-core-dumps-in-mac-os-x [2] https://developer.apple.com/library/archive/technotes/tn2124/_index.html#//apple_ref/doc/uid/DTS10003391-CH1-SECCOREDUMPS -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-02-23 3:53 UTC|newest] Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-10 9:46 [Bug gdb/26861] New: " ntvallone at ucdavis dot edu 2020-11-10 9:47 ` [Bug gdb/26861] " ntvallone at ucdavis dot edu 2020-11-29 19:25 ` ethanrob122 at gmail dot com 2020-11-29 19:37 ` ethanrob122 at gmail dot com 2021-01-20 1:15 ` fishinfuglers at gmail dot com 2021-01-31 7:42 ` frankshe175 at gmail dot com 2021-02-01 19:07 ` simark at simark dot ca 2021-02-01 19:10 ` simark at simark dot ca 2021-02-10 15:05 ` rostyslav.skrypnyk at gmail dot com 2021-02-23 3:27 ` levraiphilippeblain at gmail dot com 2021-02-23 3:53 ` levraiphilippeblain at gmail dot com [this message] 2021-02-24 4:19 ` levraiphilippeblain at gmail dot com 2021-02-24 16:41 ` simark at simark dot ca 2021-02-24 17:11 ` simark at simark dot ca 2021-02-24 20:07 ` levraiphilippeblain at gmail dot com 2021-02-24 20:16 ` levraiphilippeblain at gmail dot com 2021-02-24 22:04 ` simark at simark dot ca 2021-02-25 20:53 ` cvs-commit at gcc dot gnu.org 2021-02-25 20:55 ` cvs-commit at gcc dot gnu.org 2021-02-25 20:57 ` simark at simark dot ca 2021-02-28 11:41 ` brobecker at gnat dot com 2021-06-27 17:47 ` ahmedsayeed1982 at yahoo dot com 2021-08-18 13:52 ` jamesrogan59 at gmail dot com 2021-08-25 5:16 ` marlenesanchez231+wilmar at gmail dot com 2021-09-02 11:03 ` donipah907 at mtlcz dot com 2021-09-02 11:05 ` donipah907 at mtlcz dot com 2021-09-02 11:17 ` mark at klomp dot org 2021-09-05 7:36 ` kimolsun2020 at yahoo dot com 2021-09-06 9:06 ` focixujo at livinginsurance dot co.uk 2021-09-06 9:12 ` focixujo at livinginsurance dot co.uk 2021-09-06 13:09 ` ntvallone at ucdavis dot edu 2021-09-10 19:37 ` mehmetgelisin at aol dot com 2021-09-13 8:40 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-28 1:40 ` marlenesanchez231+jaime at gmail dot com 2021-10-08 19:40 ` vficaj at gmail dot com 2021-10-09 11:00 ` gulsenenginar at aol dot com 2021-10-18 19:58 ` ahmedsayeed1982 at hotmail dot com 2021-10-19 7:14 ` progonsaytu at gmail dot com 2021-10-24 10:02 ` glassmtech at ukr dot net 2021-11-10 1:57 ` wallremovalsperth at gmail dot com 2021-11-10 1:59 ` wallremovalsperth at gmail dot com 2021-11-22 6:48 ` gexed96894 at keagenan dot com
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-26861-4717-QgBm1DRDuU@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: linkBe 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).