Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1055

Crash in libobjc when class's first stored property's type is not Objective-C compatible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
    • Environment:

      Swift 2.2 (Xcode 7.3)

      Description

      For example, attempting to use a class with just one stored property of an enum type that can't be represented in Objective-C will crash. It crashes in realizeClass when doing ivar offset stuff I believe (after turning on the debug logging for this).

      Partial stack trace:

      #0 0x0000000180d388e4 in realizeClass(objc_class*) ()
      #1 0x0000000180d365ac in _class_getNonMetaClass ()
      #2 0x0000000180d3b8b4 in lookUpImpOrForward ()
      #3 0x0000000180d45d78 in _objc_msgSend_uncached_impcache ()
      #4 0x00000001000cd958 in type metadata accessor for BadClass ()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jckarter Joe Groff
                Reporter:
                Christopher Christopher Rogers
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: