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

Nil reference crash missing a stack trace #20301

Open
Stuffe opened this issue Sep 4, 2022 · 1 comment
Open

Nil reference crash missing a stack trace #20301

Stuffe opened this issue Sep 4, 2022 · 1 comment

Comments

@Stuffe
Copy link

Stuffe commented Sep 4, 2022

What happened?

This POC is a NIL access and should show a stack trace. It doesn't do this on my M1 mac. However, on the playground it does work, leading me to believe it might be a Mac or M1 specific bug.

import segfaults

type my_object = ref object
  my_field: int

proc my_func() =
  var test: my_object
  echo test.my_field
  
my_func()

Nim Version

1.6.6

Current Standard Output Logs

Error: execution of an external program failed: '/Users/projects/bug/tests '

Expected Standard Output Logs

Actual stack trace

Possible Solution

No response

Additional Information

No response

@Araq
Copy link
Member

Araq commented Sep 7, 2022

segfaults does not work on ARM and nobody knows how to fix it.

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

No branches or pull requests

2 participants