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

Errors from shared memory functions are ignored #3127

Open
yurivict opened this issue Aug 12, 2017 · 0 comments
Open

Errors from shared memory functions are ignored #3127

yurivict opened this issue Aug 12, 2017 · 0 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: scsynth

Comments

@yurivict
Copy link
Contributor

I had SC failing with "Exception in World_New: Permission denied" on FreeBSD 11.1. ktrace shows that only the third error from shm_* functions was reported to the user:

 16151 scsynth  CALL  shm_unlink(0x803fdb3e0)
 16151 scsynth  NAMI  "/SuperColliderServer_57110"
 16151 scsynth  RET   shm_unlink -1 errno 13 Permission denied
...
 16151 scsynth  CALL  shm_open(0x803fdb3e0,0xa02<O_RDWR|O_CREAT|O_EXCL>,0644<S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH>)
 16151 scsynth  NAMI  "/SuperColliderServer_57110"
 16151 scsynth  RET   shm_open -1 errno 17 File exists
...
 16151 scsynth  CALL  shm_open(0x803fdb3e0,0x2<O_RDWR>,0644<S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH>)
 16151 scsynth  NAMI  "/SuperColliderServer_57110"
 16151 scsynth  RET   shm_open -1 errno 13 Permission denied
 16151 scsynth  CALL  write(0x1,0x803f8d000,0x2a)
 16151 scsynth  GIO   fd 1 wrote 42 bytes
       "Exception in World_New: Permission denied
       "

SC should report every error. It should print what functions failed with what errors. Instead, it only printed the third error in this cryptic form: "Exception in World_New: Permission denied"

Somehow, "/SuperColliderServer_57110" became "undeletable", and this situation occurred. I don't really understand how this is possible.

@nhthn nhthn added bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: scsynth labels Aug 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: scsynth
Projects
None yet
Development

No branches or pull requests

2 participants