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

[PPC] Segmentation fault instead of ReadOnlyMemoryException #32155

Open
vchuravy opened this issue May 27, 2019 · 2 comments
Open

[PPC] Segmentation fault instead of ReadOnlyMemoryException #32155

vchuravy opened this issue May 27, 2019 · 2 comments
Labels
kind:kernel bug 🤯 This is really a bug in the underlying OS kernel system:powerpc PowerPC

Comments

@vchuravy
Copy link
Sponsor Member

      From worker 81:
      From worker 81:   signal (11): Segmentation fault
      From worker 81:   in expression starting at /autofs/nccsopen-svm1_home/vchuravy/builds/julia/usr/share/julia/stdlib/v1.3/Mmap/test/runtests.jl:98
@vchuravy vchuravy added the system:powerpc PowerPC label May 27, 2019
@vchuravy
Copy link
Sponsor Member Author

s = open(file, "r")
m = Mmap.mmap(s)
@test_throws ReadOnlyMemoryError m[5] = UInt8('x') # tries to setindex! on read-only array
finalize(m); m=nothing; GC.gc()

So instead of a ReadOnlyMemoryError we get a segmentation fault.

@vchuravy
Copy link
Sponsor Member Author

On PPC we enter the signal handler with SEGV_MAPERR in info->si_code instead of the expected SEGV_ACCERR

@vchuravy vchuravy changed the title [PPC] Segmentation fault during mmap tests [PPC] Segmentation fault instead of ReadOnlyMemoryException Dec 14, 2020
@vchuravy vchuravy added the kind:kernel bug 🤯 This is really a bug in the underlying OS kernel label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:kernel bug 🤯 This is really a bug in the underlying OS kernel system:powerpc PowerPC
Projects
None yet
Development

No branches or pull requests

1 participant