Group Group Group Group Group Group Group Group Group

Chapter 24 - error: Multiple internal symbols found for 'context'


#1

Following along, I made all the way to chapter 24, where I started getting the below error, now most lldb command I try for this chapter go bonkers.

Error - output from launch of scheme to errors:

  • thread #1, queue = ‘com.apple.main-thread’, stop reason = breakpoint 1.1
    • frame #0: 0x0000000107a41276 libsystem_c.dylibgetenv frame #1: 0x00000001023b2adb libobjc.A.dylibenviron_init + 462
      frame #2: 0x00000001023b5d9a libobjc.A.dylib_objc_init + 32 frame #3: 0x0000000107902ae6 libdispatch.dylib_os_object_init + 13
      frame #4: 0x0000000107904deb libdispatch.dyliblibdispatch_init + 297 frame #5: 0x0000000102cacaa2 libSystem.dyliblibSystem_initializer + 164
      frame #6: 0x0000000101aabc16 dyld_simImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 420 frame #7: 0x0000000101aabe46 dyld_simImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
      frame #8: 0x0000000101aa76da dyld_simImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 330 frame #9: 0x0000000101aa766d dyld_simImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 221
      frame #10: 0x0000000101aa6898 dyld_simImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 134 frame #11: 0x0000000101aa692c dyld_simImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 74
      frame #12: 0x0000000101a9b135 dyld_simdyld::initializeMainExecutable() + 126 frame #13: 0x0000000101a9ec98 dyld_simdyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 4412
      frame #14: 0x0000000101a9a3d4 dyld_simstart_sim + 136 frame #15: 0x0000000104da5ded dylddyld::useSimulatorDyld(int, macho_header const*, char const*, int, char const**, char const**, char const**, unsigned long*, unsigned long*) + 2200
      frame #16: 0x0000000104da37a3 dylddyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 436 frame #17: 0x0000000104d9f3d4 dylddyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 453
      frame #18: 0x0000000104d9f1d2 dyld`_dyld_start + 54
      Warning: hit breakpoint while running function, skipping commands and conditions to prevent recursion.Warning: hit breakpoint while running function, skipping commands and conditions to prevent recursion.Warning: hit breakpoint while running function, skipping commands and conditions to prevent recursion.Warning: hit breakpoint while running function, skipping commands and conditions to prevent recursion.(lldb) search SwiftObject
      error:

error: error: error: expected ‘;’ at end of declaration
error: Multiple internal symbols found for 'context’
id = {0x00000513}, range = [0x000000010a9558f8-0x000000010a955970), name=“context”, mangled="_ZL7context"
id = {0x00000534}, range = [0x000000010a955de8-0x000000010a955e48), name=“context”

(lldb) search SwiftObject
error:


error: error: error: expected ‘;’ at end of declaration
error: Multiple internal symbols found for 'context’
id = {0x00000513}, range = [0x000000010a9558f8-0x000000010a955970), name=“context”, mangled="_ZL7context"
id = {0x00000534}, range = [0x000000010a955de8-0x000000010a955e48), name=“context”

(lldb) search RayView -b
error:


error: error: error: expected ‘;’ at end of declaration
error: Multiple internal symbols found for 'context’
id = {0x00000513}, range = [0x000000010a9558f8-0x000000010a955970), name=“context”, mangled="_ZL7context"
id = {0x00000534}, range = [0x000000010a955de8-0x000000010a955e48), name=“context”

(lldb)


#2

@lolgrep Can you please help with this when you get a chance? Thank you - much appreciated! :]


#4