Open ggreif opened 4 years ago
I tried reproduction with lldb-10.0.1
and it still happens.
The warning originates from lldb
's SectionLoadList::SetSectionLoadAddress
which carries a nice comment.
Here is the backtrace when triggered:
* thread #14, name = '<lldb.process.internal-state(pid=45835)>', stop reason = breakpoint 3.1
* frame #0: 0x000000010136d81d liblldb.10.0.1.dylib`lldb_private::SectionLoadList::SetSectionLoadAddress(this=0x000000012921dfb0, section=std::__1::shared_ptr<lldb_private::Section>::element_type @ 0x000000013784e638 strong=3 weak=10, load_addr=4294967296, warn_multiple=true) at SectionLoadList.cpp:107:24
frame #1: 0x0000000101369c53 liblldb.10.0.1.dylib`lldb_private::SectionLoadHistory::SetSectionLoadAddress(this=0x0000000119915fa0, stop_id=1, section_sp=std::__1::shared_ptr<lldb_private::Section>::element_type @ 0x000000013784e638 strong=3 weak=10, load_addr=4294967296, warn_multiple=true) at SectionLoadHistory.cpp:131:29
frame #2: 0x00000001013db263 liblldb.10.0.1.dylib`lldb_private::Target::SetSectionLoadAddress(this=0x0000000119915c00, section_sp=std::__1::shared_ptr<lldb_private::Section>::element_type @ 0x000000013784e638 strong=3 weak=10, new_section_load_addr=4294967296, warn_multiple=true) at Target.cpp:2759:32
frame #3: 0x00000001015ba2f1 liblldb.10.0.1.dylib`lldb_private::DynamicLoaderDarwin::UpdateImageLoadAddress(this=0x000000012921a4f0, module=0x000000013784df20, info=0x0000000118d1aea8) at DynamicLoaderDarwin.cpp:259:48
frame #4: 0x00000001015bedd5 liblldb.10.0.1.dylib`lldb_private::DynamicLoaderDarwin::AddModulesUsingImageInfos(this=0x000000012921a4f0, image_infos=0x0000700008c24e48) at DynamicLoaderDarwin.cpp:669:11
frame #5: 0x00000001015b53f8 liblldb.10.0.1.dylib`DynamicLoaderMacOS::DoInitialImageFetch(this=0x000000012921a4f0) at DynamicLoaderMacOS.cpp:180:7
frame #6: 0x00000001015b7925 liblldb.10.0.1.dylib`lldb_private::DynamicLoaderDarwin::DidAttach(this=0x000000012921a4f0) at DynamicLoaderDarwin.cpp:70:3
frame #7: 0x0000000101325c4a liblldb.10.0.1.dylib`lldb_private::Process::CompleteAttach(this=0x000000012acc4818) at Process.cpp:2924:11
frame #8: 0x00000001013250e5 liblldb.10.0.1.dylib`lldb_private::Process::AttachCompletionHandler::PerformAction(this=0x0000000137b01b10, event_sp=std::__1::shared_ptr<lldb_private::Event>::element_type @ 0x00000001378015f0 strong=2 weak=1) at Process.cpp:2710:18
frame #9: 0x0000000101322a8e liblldb.10.0.1.dylib`lldb_private::Process::HandlePrivateEvent(this=0x000000012acc4818, event_sp=std::__1::shared_ptr<lldb_private::Event>::element_type @ 0x00000001378015f0 strong=2 weak=1) at Process.cpp:3619:33
Recently I have started to get strange warnings from
wasmtime
(HEAD) when running programs usinglldb
on Darwin. Below is a transcript.As you can see, I needed several attempts until I could enter. I am attaching the sources. The
lldb
I use is derived from therust-lang/llvm-project
(branch 2020-05). The symptoms appear without setting a breakpoint also, so I don't think they are language specific.