Skip to content

Heap Corruption #229

Open
Open
@edutim

Description

This issue comes up at random times.

Getting signal SIGABRT in the CharacterReader class.

public func consumeToAny(_ chars: [UnicodeScalar]) -> String { let start = pos while pos < input.endIndex { if chars.contains(input[pos]) { // signal pops up here. break } pos = input.index(after: pos) } return cacheString(start, pos) }

APP NAME(11718,0x70000133e000) malloc: Heap corruption detected, free list is damaged at 0x6000009b8570
*** Incorrect guard value: 140528044080704
APP NAME(11718,0x700001132000) malloc: *** error for object 0x6000009b8870: pointer being freed was not allocated
APP NAME(11718,0x700001132000) malloc: *** set a breakpoint in malloc_error_break to debug
APP NAME(11718,0x700001132000) malloc: *** error for object 0x6000009b8870: pointer being freed was not allocated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions