[Bug gdb/24069] gdb on OSX Mojave hangs in darwin_decode_message

thelastmammoth at gmail dot com sourceware-bugzilla@sourceware.org
Fri Nov 22 23:35:00 GMT 2019


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

timothee cour <thelastmammoth at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thelastmammoth at gmail dot com

--- Comment #4 from timothee cour <thelastmammoth at gmail dot com> ---
prbolem is still there with osx catalina (10.15.1) and latest gdb installed via
homebrew:
brew install gdb
gdb -v
GNU gdb (GDB) 8.3

sudo gdb ./hello_world
(gdb) r
Starting program: /private/tmp/z00
[New Thread 0xd03 of process 47436]
[...hangs here...]

lldb -p <pid of gdb>
(lldb) bt

```
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff71d698b2 libsystem_kernel.dylib __wait4_nocancel + 10
    frame #1: 0x00000001000f1b22 gdb darwin_decode_message(mach_msg_header_t*,
darwin_thread_info**, inferior**, target_waitstatus*) + 1065
    frame #2: 0x00000001000ef00b gdb darwin_wait(ptid_t, target_waitstatus*) +
322
    frame #3: 0x00000001000eeebf gdb darwin_nat_target::wait(ptid_t,
target_waitstatus*, int) + 37
    frame #4: 0x0000000100369664 gdb target_wait(ptid_t, target_waitstatus*,
int) + 61
    frame #5: 0x0000000100222556 gdb startup_inferior(int, int,
target_waitstatus*, ptid_t*) + 190
    frame #6: 0x00000001001567a2 gdb gdb_startup_inferior(int, int) + 22
    frame #7: 0x00000001000f0022 gdb darwin_ptrace_him(int) + 99
    frame #8: 0x0000000100222308 gdb fork_inferior(char const*,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, char**, void (*)(), void (*)(int), void
(*)(), char const*, void (*)(char const*, char* const*, char* const*)) + 384
    frame #9: 0x00000001000efb8b gdb darwin_nat_target::create_inferior(char
const*, std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, char**, int) + 951
    frame #10: 0x00000001001a2674 gdb run_command_1(char const*, int, run_how)
+ 475
    frame #11: 0x00000001000a79bc gdb cmd_func(cmd_list_element*, char const*,
int) + 104
    frame #12: 0x0000000100385957 gdb execute_command(char const*, int) + 464
    frame #13: 0x0000000100147b92 gdb command_handler(char const*) + 97
    frame #14: 0x0000000100147e8a gdb
command_line_handler(std::__1::unique_ptr<char, gdb::xfree_deleter<char> >&&) +
112
    frame #15: 0x00000001001476cb gdb gdb_rl_callback_handler(char*) + 59
    frame #16: 0x00000001003e67fc gdb rl_callback_read_char + 506
    frame #17: 0x0000000100148538 gdb
gdb_rl_callback_read_char_wrapper_noexcept() + 61
    frame #18: 0x0000000100147460 gdb gdb_rl_callback_read_char_wrapper(void*)
+ 9
    frame #19: 0x0000000100147a89 gdb stdin_event_handler(int, void*) + 93
    frame #20: 0x00000001001468a9 gdb gdb_wait_for_event(int) + 835
    frame #21: 0x00000001001464e8 gdb gdb_do_one_event() + 261
    frame #22: 0x000000010014698e gdb start_event_loop() + 149
    frame #23: 0x00000001001e596a gdb captured_command_loop() + 47
    frame #24: 0x00000001001e5408 gdb gdb_main(captured_main_args*) + 3908
    frame #25: 0x000000010000332c gdb main + 44
    frame #26: 0x00007fff71c182e5 libdyld.dylib start + 1

```

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


More information about the Gdb-prs mailing list