Liteide Segmentation fault under certain condition

27 views
Skip to first unread message

Tong Sun

unread,
Jun 17, 2019, 3:42:27 PM6/17/19
to liteide-dev
Hi, 

This is the first time I'm trying Liteide. It works in my home machine but not in my VM at work. They both have Ubuntu 18.04. So I guess the "Segmentation fault" is specific to my VM. 

At first, there was an reported error of:

QXcbConnection: XCB error: 145 (Unknown), sequence: 171,


However, I get that fixed from https://stackoverflow.com/questions/51218417/


So now, Liteide is failing with just  "Segmentation fault" without giving any other prompts: 


$ strace -f -o /tmp/strace.out liteide
Segmentation fault

I've posted the whole strace log to https://pastebin.com/hujPWAaf

and here are the last few lines:

76978 openat(AT_FDCWD, "/usr/lib/libQt5Xml.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
76978 munmap(0x7f0bea2c7000, 49223)     = 0
76978 munmap(0x7f0bc4b04000, 2340704)   = 0
76978 stat("/usr/local/liteide/lib/liteide/plugins/libwelcome.so", {st_mode=S_IFREG|0775, st_size=306720, ...}) = 0
76978 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
76978 writev(3, [{iov_base=";\3\5\0\r\0\340\0\0\0\0\0\0\0\0\0\220\1\30\1H\2\0\0\207\265\1\0\f\0\340\0"..., iov_len=48}, {iov_base="\177}\0\377\177}\0\377\177}\0\377\177}\0\377\177}\0\377\177}\0\377\177}\0\377\177}\0\377"..., iov_len=448000}, {iov_base="", iov_len=0}], 3) = 448048
76978 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
76978 writev(3, [{iov_base=">\0\7\0\f\0\340\0\6\0\340\0\r\0\340\0\0\0\0\0\0\0\0\0\220\1\30\0018\0\4\0"..., iov_len=44}], 1) = 44
76978 poll([{fd=5, events=POLLIN}, {fd=9, events=POLLIN}], 2, 0) = 1 ([{fd=5, revents=POLLIN}])
76978 read(5, "\4\0\0\0\0\0\0\0", 16)   = 8
76978 poll([{fd=5, events=POLLIN}, {fd=9, events=POLLIN}], 2, 0) = 0 (Timeout)
76978 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
76986 <... futex resumed>)              = ?
76985 <... futex resumed>)              = ?
76983 <... poll resumed> <unfinished ...>) = ?
76982 <... poll resumed> <unfinished ...>) = ?
76986 +++ killed by SIGSEGV +++
76985 +++ killed by SIGSEGV +++
76983 +++ killed by SIGSEGV +++
76982 +++ killed by SIGSEGV +++
76978 +++ killed by SIGSEGV +++


it seems the poll times out then liteide is killed because of SIGSEGV, after several writes:

SIGSEGV is an error(signal) caused by an invalid memory reference or a segmentation fault. You are probably trying to access an array element out of bounds or trying to use too much memory.


Again, I understand that it is specific to my own odd situation, but I'm still hoping it can be identified/fixed someday. 

Or maybe my VM just doesn't have enough memory?

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           2804         470         667           1        1665        2145
Swap:          1521           0        1521

What's the minimum/recommended liteide needs? 


PS, my specific VM

- Window 10 Host
- Ubuntu 18.04 VM
- 2.8G total Mem, used only <500M.
- MobaXTerm X11 Server, Personal Edition

Thx


Reply all
Reply to author
Forward
0 new messages