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

Crash on failed/exited privilege escalation #2823

Closed
SollyBunny opened this issue May 15, 2023 · 3 comments · Fixed by #2967
Closed

Crash on failed/exited privilege escalation #2823

SollyBunny opened this issue May 15, 2023 · 3 comments · Fixed by #2967

Comments

@SollyBunny
Copy link

SollyBunny commented May 15, 2023

Description of the problem or steps to reproduce

Fail/Exit a privilege escalation (try to save /etc/asd and fail/exit the prompt)
Doesn't happen on successful privilege escalation

Error

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x44ecdd)
runtime/panic.go:259 (0x44ecad)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:403 (0x9148cd) -> screen.Screen.fill(' ', conf.DefStyle)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:394 (0x91472a)
runtime/internal/atomic/types.go:194 (0x43a7a7)
runtime/asm_amd64.s:1598 (0x46ba21)

Config

{
    "autosu": true,
    "colorscheme": "solly", // removing this makes no difference
    "indentchar": "\t",
    "mkparents": true,
    "softwrap": true,
    "statusformatl": "$(filename) $(modified)",
    "statusformatr": "$(line),$(col)",
    "wordwrap": true,
    "xterm": true,
    "sucmd": "doas" // this makes no difference (sudo -> doas anyway)
}

I only have jump & a simple make macro plugin (removing them makes no difference)
Removing all config (&/| "autosu") just crashes immediately

Specifications

Commit hash: ff1107b
OS: Arch Linux
Terminal: Kitty

@zyedidia
Copy link
Owner

Which prompt do you exit? Is the the password prompt, or the prompt asking if you would like to save using sudo?

@SollyBunny
Copy link
Author

Which prompt do you exit? Is the the password prompt, or the prompt asking if you would like to save using sudo?

the password prompt sry

@JoeKar
Copy link
Collaborator

JoeKar commented Oct 14, 2023

Please see: #2960 (comment)

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

Successfully merging a pull request may close this issue.

3 participants