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

Memory Corruption while Building Recursive Enumeration Instance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:
    • Environment:

      macOS 10.14.5 with Xcode 10.2.1 on a 2014 MacBook Air.

      Description

      This is based off a post I madeĀ on the Swift forums. It concerns a NeverEmptyTrie type, along with a LinkedList support type, both of which are enumeration types with indirect cases.

      The NeverEmptyTrie.doInsert seemed to have worked in its initial test cases. It was created in the middle of all the code I wrote. As I made test cases for later code in the library, the insertion tests started failing, with the payload having garbage values. There are several initializers that compose two tries together, but they haven't shown corruption in their tests (yet).

        Attachments

        1. LinkedList.swift
          4 kB
        2. LinkedListTests.swift
          5 kB
        3. NeverEmptyTrie.swift
          15 kB
        4. NeverEmptyTrieTests.swift
          20 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              CTMacUser Daryle Walker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: