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

Address boundary error while editing a file #138

Open
micouy opened this issue Mar 8, 2019 · 1 comment
Open

Address boundary error while editing a file #138

micouy opened this issue Mar 8, 2019 · 1 comment

Comments

@micouy
Copy link

micouy commented Mar 8, 2019

I don't really know whether that's a bug in Amp but I think it's better if I report it anyways. I was casually editing a file (it was an already existing file if that's important) and then I got this message:

fish: 'amp filename.rs' terminated by signal SIGSEGV (Address boundary error)

The error occured right after I woke my laptop from sleep and pressed a few keys in Amp.

Info:

  • Amp 0.5.0
  • MacOS 10.14.1
@jmacdonald
Copy link
Owner

Hi @micouy! Nice find. The only place we do anything unsafe in Amp that would trigger a segfault like that is in the gap buffer implementation, in the scribe crate.

It shouldn't matter if the file exists or not, but I wish I knew which keys you'd pressed. Was the file empty? Also, was it a UTF-8 file, or another encoding?

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