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

segfault: String would overflow textgrid. Truncating. #16

Closed
wezm opened this issue Dec 19, 2017 · 5 comments
Closed

segfault: String would overflow textgrid. Truncating. #16

wezm opened this issue Dec 19, 2017 · 5 comments

Comments

@wezm
Copy link

wezm commented Dec 19, 2017

I built and installed revision ce028d2 via the AUR package. When I run it the window appears for a second then it crashes with the following error:

ERR<29523>:eovim /home/wmoore/aur/eovim-git/src/eovim-git/src/termview.c:860 termview_put() String would overflow textgrid. Truncating.
## Copy & Paste the below (until EOF) into a terminal, then hit Enter

eina_btlog << EOF
/usr/lib/libeina.so.1	 0x7f2d1ce1988e 0x7f2d1cdf3000
/usr/lib/libeina.so.1	 0x7f2d1ce1a601 0x7f2d1cdf3000
/usr/lib/libeina.so.1	 0x7f2d1ce1ba23 0x7f2d1cdf3000
[1]    29523 segmentation fault (core dumped)  eovim

The backtrace looks truncated but running eina_btlog on the frames shown gives:

    /usr/lib/libeina.so.1| ??/??: 0 @ eina_log_print_cb_journald()
    /usr/lib/libeina.so.1| ??/??: 0 @ eina_log_print_cb_stdout()
    /usr/lib/libeina.so.1| ??/??: 0 @ eina_log_print()

The same crash also happens when running with -N. When run with -g 80x24 it does not crash.

@jeanguyomarch
Copy link
Owner

Hi, I think there are two errors here:

  • one from eovim, which has an issue when resizing at startup,
  • one from the EFL (the underlying framework of eovim) which crash when printing the backtrace.

I've already experienced the EFL bug, but haven't pinpoint the version it is present in. What version of EFL are you using? An easy way to circumvent this issue while waiting for a fix in the EFL would be to disable the backtrace feature by setting EINA_LOG_BACKTRACE to something like -1.

The resizing bug in Eovim is a real problem, I'll work on that.

@jeanguyomarch
Copy link
Owner

If you are using the GIT version of EFL, the segfaults should now be fixed.

@wezm
Copy link
Author

wezm commented Dec 26, 2017

Totally missed your original reply a week ago. Thanks for looking into a fix. I'll try it out when I'm back at work tomorrow.

@wezm
Copy link
Author

wezm commented Dec 26, 2017

Tried it out and it no longer crashes 🎉 Thanks.

@jeanguyomarch
Copy link
Owner

Nice :)

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