Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7199

LLDB crashes whenever trying to `po` while debugging

$
0
0

LLDB always crashes whenever we try to make a print using po on breakpoint. What is the cause of the issue and how can i fix this?

Process:               LLDBFrontend [21248]Path:                  /Applications/AppCode.app/Contents/bin/lldb/mac/LLDBFrontendIdentifier:            LLDBFrontendVersion:               0Code Type:             X86-64 (Native)Parent Process:        appcode [491]Responsible:           appcode [491]User ID:               501Date/Time:             2021-03-15 10:59:10.153 +0800OS Version:            macOS 11.2 (20D64)Report Version:        12Bridge OS Version:     5.2 (18P4346)Anonymous UUID:        83A30BF9-30DF-D66C-C4BC-B955F9BFB7A3Sleep/Wake UUID:       DA352E46-1E4A-44A4-A78C-92865BC2BFA2Time Awake Since Boot: 22000 secondsTime Since Wake:       2600 secondsSystem Integrity Protection: enabledCrashed Thread:        4Exception Type:        EXC_BAD_ACCESS (SIGSEGV)Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000001d0Exception Note:        EXC_CORPSE_NOTIFYTermination Signal:    Segmentation fault: 11Termination Reason:    Namespace SIGNAL, Code 0xbTerminating Process:   exc handler [21248]VM Regions Near 0x1d0:-->     __TEXT                      10a416000-10a55a000    [ 1296K] r-x/r-x SM=COW  /Applications/AppCode.app/Contents/bin/lldb/mac/LLDBFrontendThread 0:: Dispatch queue: com.apple.main-thread0   libsystem_kernel.dylib          0x00007fff203b25ce __ulock_wait + 101   libsystem_pthread.dylib         0x00007fff203e6f98 _pthread_join + 3592   libc++.1.dylib                  0x00007fff20383806 std::__1::thread::join() + 243   LLDBFrontend                    0x000000010a495722 0x10a416000 + 5220184   LLDBFrontend                    0x000000010a492c22 0x10a416000 + 5110105   libdyld.dylib                   0x00007fff20400621 start + 1Thread 1:0   libsystem_kernel.dylib          0x00007fff203b38e2 __psynch_cvwait + 101   libsystem_pthread.dylib         0x00007fff203e5e6f _pthread_cond_wait + 12542   libc++.1.dylib                  0x00007fff2034cd83 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 933   com.apple.LLDB.framework        0x000000010aa31aeb lldb_private::Listener::GetEventInternal(lldb_private::Timeout<std::__1::ratio<1l, 1000000l> > const&, lldb_private::Broadcaster*, lldb_private::ConstString const*, unsigned int, unsigned int, std::__1::shared_ptr<lldb_private::Event>&) + 2994   com.apple.LLDB.framework        0x000000010aa31d1e lldb_private::Listener::GetEvent(std::__1::shared_ptr<lldb_private::Event>&, lldb_private::Timeout<std::__1::ratio<1l, 1000000l> > const&) + 305   com.apple.LLDB.framework        0x000000010a69f8d7 lldb::SBListener::WaitForEvent(unsigned int, lldb::SBEvent&) + 4876   LLDBFrontend                    0x000000010a4a157e 0x10a416000 + 5707507   LLDBFrontend                    0x000000010a493ab4 0x10a416000 + 5147408   LLDBFrontend                    0x000000010a493589 0x10a416000 + 5134179   libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 22410  libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 2:0   libsystem_kernel.dylib          0x00007fff203b38e2 __psynch_cvwait + 101   libsystem_pthread.dylib         0x00007fff203e5e6f _pthread_cond_wait + 12542   libc++.1.dylib                  0x00007fff2034ccf2 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 183   LLDBFrontend                    0x000000010a493964 0x10a416000 + 5144044   LLDBFrontend                    0x000000010a493589 0x10a416000 + 5134175   libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 2246   libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 3:0   libsystem_kernel.dylib          0x00007fff203b38e2 __psynch_cvwait + 101   libsystem_pthread.dylib         0x00007fff203e5e6f _pthread_cond_wait + 12542   libc++.1.dylib                  0x00007fff2034ccf2 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 183   LLDBFrontend                    0x000000010a493964 0x10a416000 + 5144044   LLDBFrontend                    0x000000010a493589 0x10a416000 + 5134175   libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 2246   libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 4 Crashed:0   com.apple.LLDB.framework        0x000000010aa48754 lldb_private::Status::Fail() const + 41   com.apple.LLDB.framework        0x000000010a9e7c3f lldb_private::Target::GetScratchSwiftASTContext(lldb_private::Status&, lldb_private::ExecutionContextScope&, bool) + 5272   com.apple.LLDB.framework        0x000000010aaee0a9 lldb_private::SwiftUserExpression::ScanContext(lldb_private::ExecutionContext&, lldb_private::Status&) + 5853   com.apple.LLDB.framework        0x000000010aaee60a lldb_private::SwiftUserExpression::Parse(lldb_private::DiagnosticManager&, lldb_private::ExecutionContext&, lldb_private::ExecutionPolicy, bool, bool) + 2184   com.apple.LLDB.framework        0x000000010a890622 lldb_private::UserExpression::Evaluate(lldb_private::ExecutionContext&, lldb_private::EvaluateExpressionOptions const&, llvm::StringRef, llvm::StringRef, lldb_private::SharingPtr<lldb_private::ValueObject>&, lldb_private::Status&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::shared_ptr<lldb_private::Module>*, lldb_private::ValueObject*) + 30905   com.apple.LLDB.framework        0x000000010a9e90de lldb_private::Target::EvaluateExpression(llvm::StringRef, lldb_private::ExecutionContextScope*, lldb_private::SharingPtr<lldb_private::ValueObject>&, lldb_private::EvaluateExpressionOptions const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, lldb_private::ValueObject*) + 5906   com.apple.LLDB.framework        0x000000010ae67125 lldb_private::CommandObjectExpression::EvaluateExpression(llvm::StringRef, lldb_private::Stream&, lldb_private::Stream&, lldb_private::CommandReturnObject&) + 5337   com.apple.LLDB.framework        0x000000010ae68096 lldb_private::CommandObjectExpression::DoExecute(llvm::StringRef, lldb_private::CommandReturnObject&) + 15588   com.apple.LLDB.framework        0x000000010a8cb582 lldb_private::CommandObjectRaw::Execute(char const*, lldb_private::CommandReturnObject&) + 4189   com.apple.LLDB.framework        0x000000010a8c2da7 lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&, lldb_private::ExecutionContext*, bool, bool) + 251910  com.apple.LLDB.framework        0x000000010a60b04b lldb::SBCommandInterpreter::HandleCommand(char const*, lldb::SBExecutionContext&, lldb::SBCommandReturnObject&, bool) + 37911  LLDBFrontend                    0x000000010a49cbce 0x10a416000 + 55188612  LLDBFrontend                    0x000000010a4a4e5a 0x10a416000 + 58530613  LLDBFrontend                    0x000000010a493ab4 0x10a416000 + 51474014  LLDBFrontend                    0x000000010a493589 0x10a416000 + 51341715  libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 22416  libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 5:0   libsystem_kernel.dylib          0x00007fff203b4416 __recvfrom + 101   LLDBFrontend                    0x000000010a4952ee 0x10a416000 + 5209422   LLDBFrontend                    0x000000010a495788 0x10a416000 + 5221203   LLDBFrontend                    0x000000010a4958fe 0x10a416000 + 5224944   libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 2245   libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 6:0   libsystem_kernel.dylib          0x00007fff203b0e7e mach_msg_trap + 101   libsystem_kernel.dylib          0x00007fff203b11f0 mach_msg + 602   com.apple.CoreFoundation        0x00007fff204ddbf7 __CFRunLoopServiceMachPort + 3163   com.apple.CoreFoundation        0x00007fff204dc2ca __CFRunLoopRun + 13154   com.apple.CoreFoundation        0x00007fff204db6ce CFRunLoopRunSpecific + 5635   com.apple.CoreFoundation        0x00007fff20561cc9 CFRunLoopRun + 406   com.apple.DebugSymbols          0x00007fff31c08a58 SpotlightQueryThread(void*) + 4727   libsystem_pthread.dylib         0x00007fff203e5950 _pthread_start + 2248   libsystem_pthread.dylib         0x00007fff203e147b thread_start + 15Thread 7:0   libsystem_pthread.dylib         0x00007fff203e1458 start_wqthread + 0External Modification Summary:  Calls made by other processes targeting this process:    task_for_pid: 0    thread_create: 0    thread_set_state: 0  Calls made by this process:    task_for_pid: 0    thread_create: 0    thread_set_state: 0  Calls made by all processes on this machine:    task_for_pid: 19174    thread_create: 0    thread_set_state: 0VM Region Summary:ReadOnly portion of Libraries: Total=678.4M resident=0K(0%) swapped_out_or_unallocated=678.4M(100%)Writable regions: Total=3.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=3.7G(100%)                                VIRTUAL   REGION REGION TYPE                        SIZE    COUNT (non-coalesced) ===========                     =======  ======= Activity Tracing                   256K        1 Dispatch continuations            96.0M        1 Kernel Alloc Once                    8K        1 MALLOC                             3.5G     5837 MALLOC guard page                   16K        4 MALLOC_LARGE (reserved)            304K        2         reserved VM address space (unallocated)STACK GUARD                       56.0M       10 Stack                             50.1M       10 VM_ALLOCATE                       10.3M       45 VM_ALLOCATE (reserved)           158.8M      492         reserved VM address space (unallocated)__DATA                            9338K      168 __DATA_CONST                      6365K       98 __DATA_DIRTY                       297K       60 __LINKEDIT                       510.1M       32 __OBJC_RO                         60.6M        1 __OBJC_RW                         2449K        2 __TEXT                           168.5M      166 __UNICODE                          588K        1 mapped file                       10.4G     7319 shared memory                       40K        4 ===========                     =======  ======= TOTAL                             15.1G    14254 TOTAL, minus reserved VM space    14.9G    14254 

Viewing all articles
Browse latest Browse all 7199


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>