code-server: Segfaults with 1.408-vsc1.32.0

  • code-server version: 1.408-vsc1.32.0
  • OS Version: Ubuntu 18.04

Description

code-server segfaults immediately with following strace and dmesg logs.

$ strace code-server |& tail
munmap(0x2410692cf000, 200704)          = 0
munmap(0x3bcf58285000, 503808)          = 0
mmap(0x2478d1600000, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x2478d1600000
munmap(0x2478d1680000, 524288)          = 0
mmap(0x2478d1600000, 524288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2478d1600000
mmap(0x3b2f0f880000, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x3b2f0f880000
munmap(0x3b2f0f900000, 524288)          = 0
mmap(0x3b2f0f880000, 524288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3b2f0f880000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xfbad2087} ---
+++ killed by SIGSEGV (core dumped) +++

$ dmesg | tail -1
[1176551.897021] code-server[88087]: segfault at fbad2087 ip 00007fc4e215f5a1 sp 00007ffcb60abcd8 error 4 in libc-2.27.so[7fc4e1fd1000+1e7000]

Steps to Reproduce

Just run code-serve.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 20 (5 by maintainers)

Most upvoted comments

It’s an issue with nbin. Will have a fix out today.

Found the issue. Will have a fix out soon!

Will the fix be released today?

I can confirm it works for me as well!

Confirmed the new release fixed the issue. Thank you!!

Running in gdb on debian buster i get the following error

GNU gdb (Debian 8.2.1-2) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./code-server...done.
(gdb) run
Starting program: /home/mvanniekerk/code-server/code-server1.408-vsc1.32.0-linux-x64/code-server 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7aa5700 (LWP 11381)]
[New Thread 0x7ffff72a4700 (LWP 11382)]
[New Thread 0x7ffff6aa3700 (LWP 11383)]
[New Thread 0x7ffff62a2700 (LWP 11384)]

Thread 1 "code-server" received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65	../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) Quit
(gdb) quit
A debugging session is active.