Re: Segmentation fault on exit on Linux
- Posted by ghaberek (admin) Oct 28, 2015
- 1733 views
Hi Greg, I followed your instructions, and the editor works. The Euphoria lexer seems to be ok, since functions can be folded. But when I close the editor, I don't get a segfault. Ubuntu 15.04, 64-bit.
Interesting. I just ran a test on test VM running Ubuntu 14.04 64-bit and got the segfault I expected. I will try a few other distros see what I get.
Maybe it's actually a libc problem since that's what my backtrace was pointing to. That would also explain why I don't see a machine-level crash on Windows.
Edit: the only difference is that I have to run it from the src directory: LD_LIBRARY_PATH=../bin eui editor.ex
Yes, you have to set LD_LIBRARY_PATH to use local shared libraries. But that's what editor.cmd and editor.sh do for you automatically. I updated the Running from Source document to better reflect this.
-Greg