microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.42k stars 29.34k forks source link

VS Code crashing with a segfault #190933

Closed lukehutch closed 1 year ago

lukehutch commented 1 year ago

Does this issue occur when all extensions are disabled?: Yes

VS Code crashes on startup, ever since I upgraded to the latest VS Code release.

Steps to Reproduce:

  1. Launch code. I tried disabling GPU, extensions, sandbox, etc., and I tried changing the user data dir. It still crashes.

I tried following the steps on this page:

https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

However the symbol files are not available.

The best I could get is the following (with almost no symbols):

Operating system: Linux
                  6.4.6 -200 #1 SMP PREEMPT_DYNAMIC Mon Jul 24 20:51:12 UTC 2023 x86_64
CPU: amd64
     family 23 model 113 stepping 0
     32 CPUs

GPU: UNKNOWN

Crash reason:  SIGTRAP
Crash address: 0x0
Process uptime: 0 seconds

Thread 0 (crashed)
 0  code + 0x6a74700
    rax = 0x00000b94002d8dc0   rdx = 0x0000000000000000
    rcx = 0xac412bec699b7d00   rbx = 0x00007ffc181ca2b8
    rsi = 0x0000000000000001   rdi = 0x00000b94002d8dc0
    rbp = 0x00007ffc181ca280   rsp = 0x00007ffc181ca268
     r8 = 0x00000b94002d8dc0    r9 = 0x00000b94002016c0
    r10 = 0x0000000000000000   r11 = 0x0000000000000203
    r12 = 0x00000b94002716c0   r13 = 0x00000000ffffff00
    r14 = 0x00000b94002d8dc0   r15 = 0xaaaaaaaaaaaaaaaa
    rip = 0x0000557c7ab17700
    Found by: given as instruction pointer in context
 1  code + 0x6a99bad
    rbp = 0x00007ffc181ca3a0   rsp = 0x00007ffc181ca290
    rip = 0x0000557c7ab3cbad
    Found by: previous frame's frame pointer
 2  code + 0x223af10
    rbp = 0x00007ffc181ca630   rsp = 0x00007ffc181ca3b0
    rip = 0x0000557c762ddf10
    Found by: previous frame's frame pointer
 3  code + 0x223b7a0
    rbp = 0x00007ffc181ca730   rsp = 0x00007ffc181ca640
    rip = 0x0000557c762de7a0
    Found by: previous frame's frame pointer
 4  code + 0x223c65e
    rbp = 0x00007ffc181ca820   rsp = 0x00007ffc181ca740
    rip = 0x0000557c762df65e
    Found by: previous frame's frame pointer
 5  code + 0x2239882
    rbp = 0x00007ffc181caad0   rsp = 0x00007ffc181ca830
    rip = 0x0000557c762dc882
    Found by: previous frame's frame pointer
 6  code + 0x2239fb5
    rbp = 0x00007ffc181cab40   rsp = 0x00007ffc181caae0
    rip = 0x0000557c762dcfb5
    Found by: previous frame's frame pointer
 7  code + 0x1f9523d
    rbp = 0x00007ffc181cac30   rsp = 0x00007ffc181cab50
    rip = 0x0000557c7603823d
    Found by: previous frame's frame pointer
 8  libc.so.6!__libc_start_call_main [libc_start_call_main.h : 58 + 0x1a]
    rbp = 0x00007ffc181cacd0   rsp = 0x00007ffc181cac40
    rip = 0x00007fd3eefafb4a
    Found by: previous frame's frame pointer
 9  libc.so.6!__libc_start_main@GLIBC_2.2.5 [libc-start.c : 360 + 0xf]
    rbp = 0x00007ffc181cad30   rsp = 0x00007ffc181cace0
    rip = 0x00007fd3eefafc0b
    Found by: call frame info
10  code + 0x1c2a02a
    rbx = 0x0000000000000000   rbp = 0x0000000000000000
    rsp = 0x00007ffc181cad40   r12 = 0x0000557c75ccd000
    r13 = 0x00007ffc181cad50   r14 = 0x0000000000000000
    r15 = 0x0000000000000000   rip = 0x0000557c75ccd02a
    Found by: call frame info

Loaded modules:
0x557c740a3000 - 0x557c7d422437  code  0.0.0.0  (main)  (WARNING: No symbols, code, DC9E52BDF836B827B8CC84BF3EA4DDAE0)
0x7fd3ee0e2000 - 0x7fd3ee104007  libbrotlicommon.so.1  0.0.0.0
0x7fd3ee105000 - 0x7fd3ee111007  libbrotlidec.so.1  0.0.0.0
0x7fd3ee112000 - 0x7fd3ee125c07  libbz2.so.1  0.0.0.0
0x7fd3ee126000 - 0x7fd3ee12e007  libdatrie.so.1  0.0.0.0
0x7fd3ee12f000 - 0x7fd3ee27ce97  libsqlite3.so.0  0.0.0.0
0x7fd3ee27f000 - 0x7fd3ee2aa197  libjson-glib-1.0.so.0  0.0.0.0
0x7fd3ee2ab000 - 0x7fd3ee32d00f  libjpeg.so.62  0.0.0.0
0x7fd3ee32e000 - 0x7fd3ee4a1727  libxml2.so.2  0.0.0.0
0x7fd3ee4a2000 - 0x7fd3ee4c2007  libgraphite2.so.3  0.0.0.0
0x7fd3ee4c5000 - 0x7fd3ee4c9087  libXinerama.so.1  0.0.0.0
0x7fd3ee4ca000 - 0x7fd3ee4d601f  libXcursor.so.1  0.0.0.0
0x7fd3ee4d7000 - 0x7fd3ee4db007  libwayland-egl.so.1  0.0.0.0
0x7fd3ee4dc000 - 0x7fd3ee4e50a7  libwayland-cursor.so.0  0.0.0.0
0x7fd3ee4e6000 - 0x7fd3ee507007  liblz4.so.1  0.0.0.0
0x7fd3ee508000 - 0x7fd3ee5c302f  libzstd.so.1  0.0.0.0
0x7fd3ee5c6000 - 0x7fd3ee5f800f  liblzma.so.5  0.0.0.0
0x7fd3ee5f9000 - 0x7fd3ee602037  libcap.so.2  0.0.0.0
0x7fd3ee603000 - 0x7fd3ee63a397  libblkid.so.1  0.0.0.0
0x7fd3ee63b000 - 0x7fd3ee64001f  libXau.so.6  0.0.0.0
0x7fd3ee641000 - 0x7fd3ee652017  libxcb-randr.so.0  0.0.0.0
0x7fd3ee655000 - 0x7fd3ee66b3ff  libwayland-server.so.0  0.0.0.0
0x7fd3ee66c000 - 0x7fd3ee719147  libpixman-1.so.0  0.0.0.0
0x7fd3ee71a000 - 0x7fd3ee71e017  libxcb-shm.so.0  0.0.0.0
0x7fd3ee71f000 - 0x7fd3ee72d017  libxcb-render.so.0  0.0.0.0
0x7fd3ee72e000 - 0x7fd3ee73912f  libXrender.so.1  0.0.0.0
0x7fd3ee73c000 - 0x7fd3ee80b007  libfreetype.so.6  0.0.0.0
0x7fd3ee80c000 - 0x7fd3ee844007  libpng16.so.16  0.0.0.0
0x7fd3ee845000 - 0x7fd3ee84f86f  libthai.so.0  0.0.0.0
0x7fd3ee850000 - 0x7fd3ee860307  libwayland-client.so.0  0.0.0.0
0x7fd3ee861000 - 0x7fd3ee93dc2f  libtracker-sparql-3.0.so.0  0.0.0.0
0x7fd3ee940000 - 0x7fd3ee958217  libcloudproviders.so.0  0.0.0.0
0x7fd3ee959000 - 0x7fd3ee96b067  libXi.so.6  0.0.0.0
0x7fd3ee96c000 - 0x7fd3eea8ef87  libepoxy.so.0  0.0.0.0
0x7fd3eea8f000 - 0x7fd3eeabc1bf  libgdk_pixbuf-2.0.so.0  0.0.0.0
0x7fd3eeabd000 - 0x7fd3eeac710f  libcairo-gobject.so.2  0.0.0.0
0x7fd3eeac8000 - 0x7fd3eeae607f  libfribidi.so.0  0.0.0.0
0x7fd3eeae9000 - 0x7fd3eeb37287  libfontconfig.so.1  0.0.0.0
0x7fd3eeb38000 - 0x7fd3eeb5116f  libpangoft2-1.0.so.0  0.0.0.0
0x7fd3eeb52000 - 0x7fd3eec4d9bf  libharfbuzz.so.0  0.0.0.0
0x7fd3eec4e000 - 0x7fd3eec5e097  libpangocairo-1.0.so.0  0.0.0.0
0x7fd3eec5f000 - 0x7fd3eed59d37  libgdk-3.so.0  0.0.0.0
0x7fd3eed5a000 - 0x7fd3eee3f5a7  libsystemd.so.0  0.0.0.0
0x7fd3eee42000 - 0x7fd3eee4607f  libplds4.so  0.0.0.0
0x7fd3eee47000 - 0x7fd3eee4d06f  libplc4.so  0.0.0.0
0x7fd3eee4e000 - 0x7fd3eee7a677  libselinux.so.1  0.0.0.0
0x7fd3eee7b000 - 0x7fd3eeec0217  libmount.so.1  0.0.0.0
0x7fd3eeec1000 - 0x7fd3eeeda007  libz.so.1  0.0.0.0
0x7fd3eeedb000 - 0x7fd3eeee1067  libgmodule-2.0.so.0  0.0.0.0
0x7fd3eeee2000 - 0x7fd3eef7b22f  libpcre2-8.so.0  0.0.0.0
0x7fd3eef7c000 - 0x7fd3eef874ef  libffi.so.8  0.0.0.0
0x7fd3eef88000 - 0x7fd3ef165d2f  libc.so.6  0.0.0.0
0x7fd3ef166000 - 0x7fd3ef1891a7  libgcc_s.so.1  0.0.0.0
0x7fd3ef18a000 - 0x7fd3ef1c54a7  libatspi.so.0  0.0.0.0
0x7fd3ef1c6000 - 0x7fd3ef2d650f  libasound.so.2  0.0.0.0
0x7fd3ef2d7000 - 0x7fd3ef31e007  libxkbcommon.so.0  0.0.0.0
0x7fd3ef31f000 - 0x7fd3ef3490a7  libxcb.so.1  0.0.0.0
0x7fd3ef34a000 - 0x7fd3ef374007  libexpat.so.1  0.0.0.0
0x7fd3ef375000 - 0x7fd3ef385207  libgbm.so.1  0.0.0.0
0x7fd3ef386000 - 0x7fd3ef4cc8c7  libX11.so.6  0.0.0.0
0x7fd3ef4cd000 - 0x7fd3ef5ff5af  libcairo.so.2  0.0.0.0
0x7fd3ef600000 - 0x7fd3efdc9f27  libgtk-3.so.0  0.0.0.0
0x7fd3efdcb000 - 0x7fd3efdd70a7  libXrandr.so.2  0.0.0.0
0x7fd3efdd8000 - 0x7fd3efddf037  libXfixes.so.3  0.0.0.0
0x7fd3efde0000 - 0x7fd3efdf371f  libXext.so.6  0.0.0.0
0x7fd3efdf4000 - 0x7fd3efed40f7  libm.so.6  0.0.0.0
0x7fd3efed5000 - 0x7fd3eff3ea07  libpango-1.0.so.0  0.0.0.0
0x7fd3eff3f000 - 0x7fd3eff559f7  libdrm.so.2  0.0.0.0
0x7fd3eff56000 - 0x7fd3effaa2c7  libdbus-1.so.3  0.0.0.0
0x7fd3effab000 - 0x7fd3f00e4957  libnss3.so  0.0.0.0
0x7fd3f00e5000 - 0x7fd3f02b63ef  libgio-2.0.so.0  0.0.0.0
0x7fd3f02b7000 - 0x7fd3f03ff2cf  libglib-2.0.so.0  0.0.0.0
0x7fd3f0400000 - 0x7fd3f083cb07  libffmpeg.so  0.0.0.0
0x7fd3f0844000 - 0x7fd3f0848027  libXdamage.so.1  0.0.0.0
0x7fd3f0849000 - 0x7fd3f084d027  libXcomposite.so.1  0.0.0.0
0x7fd3f0850000 - 0x7fd3f088c417  libatk-bridge-2.0.so.0  0.0.0.0
0x7fd3f088f000 - 0x7fd3f08b74d7  libatk-1.0.so.0  0.0.0.0
0x7fd3f08b8000 - 0x7fd3f08fb36f  libnspr4.so  0.0.0.0
0x7fd3f08fc000 - 0x7fd3f09269e7  libsmime3.so  0.0.0.0
0x7fd3f0927000 - 0x7fd3f0959c3f  libnssutil3.so  0.0.0.0
0x7fd3f095c000 - 0x7fd3f09bbc27  libgobject-2.0.so.0  0.0.0.0
0x7fd3f09bc000 - 0x7fd3f09c001f  librt.so.1  0.0.0.0
0x7fd3f09c1000 - 0x7fd3f09c500f  libpthread.so.0  0.0.0.0
0x7fd3f09c6000 - 0x7fd3f09ca00f  libdl.so.2  0.0.0.0
0x7fd3f09ea000 - 0x7fd3f0a1e2b7  ld-linux-x86-64.so.2  0.0.0.0
0x7ffc181d4000 - 0x7ffc181d4d8e  linux-vdso.so.1  0.0.0.0
lukehutch commented 1 year ago

I updated all the packages on my system and rebooted, and the problem went away.

Please close this if you can't see what the cause is. However, please update the instructions on the page I linked, so that it is possible to add symbols to a stacktrace.

deepak1556 commented 1 year ago

Closing as not being able to proceed without *.dmp file.