Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap Corruption #229

Open
edutim opened this issue Oct 21, 2022 · 1 comment
Open

Heap Corruption #229

edutim opened this issue Oct 21, 2022 · 1 comment

Comments

@edutim
Copy link

edutim commented Oct 21, 2022

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

@aehlke
Copy link
Collaborator

aehlke commented Dec 11, 2024

Still an issue? I have more changes on the way that optimize this

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

No branches or pull requests

2 participants