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

0.13.3: SIGSEGV #116

Open
inv2004 opened this issue Aug 6, 2024 · 2 comments
Open

0.13.3: SIGSEGV #116

inv2004 opened this issue Aug 6, 2024 · 2 comments

Comments

@inv2004
Copy link

inv2004 commented Aug 6, 2024

when isMainModule:
  import futhark

  importc:
    path: "/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include"
    rename "u_int", "u_intt"
    "sys/sysctl.h"

  echo "a"

0.13.2: a
0.13.3:

/Users/u/ttop/src/ttop/procfs.nim(4, 8) [DuplicateModuleImport]
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
@inv2004 inv2004 changed the title 0.13.3: 0.13.3: SIGSEGV Aug 6, 2024
@PMunch
Copy link
Owner

PMunch commented Aug 7, 2024

It shouldn't make a difference, but could you try to remove the : after path? It's not supposed to be there.

Not sure what might be causing this, and without a Mac to debug on it would be very hard for me to find out. Does Futhark generate bindings correctly? Or is this the Nim compiler crashing?

@PMunch
Copy link
Owner

PMunch commented Aug 17, 2024

I fixed a SIGSEGV bug today with the 0.13.4 release, could you try that and see if it is the same one?

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