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

[BUG] Segmentation fault when no permission to write files #129

Open
duhow opened this issue Sep 4, 2024 · 0 comments
Open

[BUG] Segmentation fault when no permission to write files #129

duhow opened this issue Sep 4, 2024 · 0 comments
Assignees
Labels

Comments

@duhow
Copy link
Collaborator

duhow commented Sep 4, 2024

Describe the bug

Having files without write permission (eg. owned by root, lacking permissions) crashes the app.

Expected output

Show a message error and exit clean.

Current output

write(1, "Parsing file test.asm\n", 22Parsing file test.asm
) = 22
openat(AT_FDCWD, "~tmppre.0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permiso denegado)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xc0} ---
+++ killed by SIGSEGV (core dumped) +++
[1]    223038 segmentation fault (core dumped)  strace ./asmsx-debug test.asm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants