Open Quuxplusone opened 3 years ago
Bugzilla Link | PR50958 |
Status | NEW |
Importance | P normal |
Reported by | Dennis Christopher James (tobaljackson@gmail.com) |
Reported on | 2021-07-01 13:38:20 -0700 |
Last modified on | 2021-07-09 12:51:30 -0700 |
Version | 12.0 |
Hardware | PC MacOS X |
CC | clayborg@gmail.com, jdevlieghere@apple.com, jmolenda@apple.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
I would guess there is memory corruption going on inside LLDB. Can you try running lldb with libgmalloc and seeing if you crash in a different location?
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib /path/to/lldb
Hello Greg,
Thank you for the suggestion. I ran lldb as you indicated, connected to my
guest kernel, set the breakpoint again on mach_msg_trap, and continued until
crash. I noticed the startup of lldb was much slower and included output from
"GuardMalloc" which is how I know the dyld got loaded.
The crash output looks very similar to what I posted previously, but I've
included it here in case there is some more information to be gleaned from this
new crash running with libgmalloc:
----------------------------------------
(lldb) PLEASE submit a bug report to https://bugs.llvm.org/ and include the
crash backtrace.
0 lldb 0x0000000108e1cde5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 lldb 0x0000000108e1c4e5 llvm::sys::RunSignalHandlers() +
85
2 lldb 0x0000000108e1d646 SignalHandler(int) + 262
3 libsystem_platform.dylib 0x00007fff2041dd7d _sigtramp + 29
4 libsystem_platform.dylib 0x000000056a0bfde0 _sigtramp + 18446603363228983424
5 LLDB 0x000000010931c8d5
lldb_private::Thread::ShouldStop(lldb_private::Event*) + 1685
6 LLDB 0x0000000109324786
lldb_private::ThreadList::ShouldStop(lldb_private::Event*) + 822
7 LLDB 0x00000001092d190c
lldb_private::Process::ShouldBroadcastEvent(lldb_private::Event*) + 1004
8 LLDB 0x00000001092cdd49
lldb_private::Process::HandlePrivateEvent(std::__1::shared_ptr<lldb_private::Event>&)
+ 265
9 LLDB 0x00000001092d2518
lldb_private::Process::RunPrivateStateThread(bool) + 1496
10 LLDB 0x00000001092d1b05
lldb_private::Process::PrivateStateThread(void*) + 21
11 LLDB 0x00000001092128a7
lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) + 103
12 libsystem_pthread.dylib 0x00007fff203d8954 _pthread_start + 224
13 libsystem_pthread.dylib 0x00007fff203d44a7 thread_start + 15
[1] 11276 segmentation fault
DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib /usr/bin/lldb
----------------------------------------
Please let me know if there's anything more you think I should try or
information you'd like that could help resolve this bug.
Thank you
if this crashed in the same spot, it is likely not heap corruption! Thanks for helping narrow this down. My next guess would be to enable ASAN on a LLDB build and try running it with your target.