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

--gc:arc SIGSEGV, while --gc:refc works fine. #13133

Closed
treeform opened this issue Jan 13, 2020 · 4 comments
Closed

--gc:arc SIGSEGV, while --gc:refc works fine. #13133

treeform opened this issue Jan 13, 2020 · 4 comments

Comments

@treeform
Copy link
Contributor

Code: https://gist.github.com/treeform/038fe8269f149678e199a71fb8c5388d

I was looking at some benchmarks from https://github.com/kostya/benchmarks#mandelb to try out with arc, this one does not work

Crash:
nim c --gc:arc -d:release /p/nimbench/bf.nim

While this works:
nim c --gc:refc -d:danger /p/nimbench/bf.nim

Nim Compiler Version 1.1.1 [MacOSX: amd64]
Compiled at 2020-01-08
Copyright (c) 2006-2019 by Andreas Rumpf
@timotheecour
Copy link
Member

@treeform can you fix the title? s/arg/arc (to make it more searchable)

@Clyybber Clyybber changed the title --gc:arg SIGSEGV, while --gc:refc works fine. --gc:arc SIGSEGV, while --gc:refc works fine. Jan 13, 2020
@timotheecour
Copy link
Member

timotheecour commented Jan 14, 2020

I realized the code you provided is large, can you try to generate a minimal example? this helps with de-duping (eg is this same as #13137 ?) and fixing

@jyapayne
Copy link
Contributor

I just tested this on latest devel and it works for me with no SIGSEGV. Maybe it's fixed?

Nim Compiler Version 1.1.1 [MacOSX: amd64]
Compiled at 2020-02-10
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: ceb3d5ad68a29d8800333c2f5065bc12cdce9cd1
active boot switches: -d:release

@Araq
Copy link
Member

Araq commented Feb 10, 2020

Reopen if still a problem, we fixed plenty of bugs.

@Araq Araq closed this as completed Feb 10, 2020
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

4 participants