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

Cannot write to device specific files on linux #3139

Closed
ITesserakt opened this issue Feb 12, 2024 · 2 comments
Closed

Cannot write to device specific files on linux #3139

ITesserakt opened this issue Feb 12, 2024 · 2 comments

Comments

@ITesserakt
Copy link

Description of the problem or steps to reproduce

  1. Run micro <device specific file> (in my case /sys/class/backlight/nvidia_0/brightness) from non-root environment.
  2. Replace value with smth else
  3. Try to save file via ctrl-s (accept sudo mode)
  4. Expected: file saved and modifications applied, actual: micro crashed, but changes were saved

Specifications

Stack trace:

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:261 (0x452e98)
runtime/panic.go:260 (0x452e66)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:403 (0x8f41ec)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:394 (0x8f3fec)
runtime/internal/atomic/types.go:194 (0x43e85b)
runtime/asm_amd64.s:1650 (0x46fbc1)

Commit hash: v2.0.12
OS: Linux nixos 6.7.4 #1-NixOS SMP PREEMPT_DYNAMIC Mon Feb 5 20:17:12 UTC 2024 x86_64 GNU/Linux
Terminal: WezTerm 20230712-072601-f4abf8fd

@JoeKar
Copy link
Collaborator

JoeKar commented Feb 12, 2024

Please try the same with v2.0.13, because this looks like an issue already solved with #2967.

@ITesserakt
Copy link
Author

Tried out micro v2.0.13.
On step 3, micros says: exit status 1 in status bar.
So, no crash happened, i'm satisfied.

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