-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
GC_ref on empty string fails with [GCASSERT] incRef: interiorPtr #10307
Labels
Comments
This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions. |
ringabout
added a commit
to ringabout/Nim
that referenced
this issue
Nov 4, 2020
It has been fixed since 0.19.2. |
ringabout
added a commit
that referenced
this issue
Nov 5, 2020
PMunch
pushed a commit
to PMunch/Nim
that referenced
this issue
Jan 6, 2021
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
irdassis
pushed a commit
to irdassis/Nim
that referenced
this issue
Mar 16, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling
GC_ref()
on an empty string when running with-d:useGcAssert
causes a GCASSERT error (which is different than if the string is non-empty).Example
Current Output
Expected Output
Possible Solution
It seems from the repr output that empty strings are treated specially (and likely don't have a location in memory?) I could change my code to only call GC_ref/unref on non-empty strings, though it would complicate things slightly. If that's the solution, I'm happy to do it.
Additional Information
The text was updated successfully, but these errors were encountered: