microsoft / vscode

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

Crash in smoke tests #232564

Open bpasero opened 2 weeks ago

bpasero commented 2 weeks ago

https://monacotools.visualstudio.com/DefaultCollection/Monaco/_build/results?buildId=301871&view=artifacts&pathAsName=false&type=publishedArtifacts

crash-dump-linux-x64-smoke-1.zip

deepak1556 commented 2 weeks ago
Operating system: Linux
                  6.8.0 -1015-azure #17~22.04.2-Ubuntu SMP Sat Oct  5 16:32:09 UTC 2024 x86_64
CPU: amd64
     family 6 model 106 stepping 6
     8 CPUs

GPU: UNKNOWN

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

Thread 0 (crashed)
 0  code-insiders!electron::JavascriptEnvironment::GetIsolate() [immediate_crash.h : 176 + 0x1]
    rax = 0x0000000000000000   rdx = 0x0000000000000011
    rcx = 0x00007ffdbd216378   rbx = 0x00007ffdbd216378
    rsi = 0x00005654b5d39746   rdi = 0x00000154002fef40
    rbp = 0x00007ffdbd2162f0   rsp = 0x00007ffdbd2162f0
     r8 = 0x000001500020c000    r9 = 0x00000000000000ca
    r10 = 0x00000154000042d0   r11 = 0x00007ffdbd2162f8
    r12 = 0x0000015400045600   r13 = 0x0000000000000000
    r14 = 0x000001540127a1c0   r15 = 0x00000154002fef40
    rip = 0x00005654b7262493
    Found by: given as instruction pointer in context
 1  code-insiders!bool gin_helper::EventEmitterMixin<electron::api::SimpleURLLoaderWrapper>::Emit<unsigned long&>(std::__Cr::basic_string_view<char, std::__Cr::char_traits<char>>, unsigned long&) [event_emitter_mixin.h : 30 + 0x5]
    rbx = 0x00007ffdbd216378   rbp = 0x00007ffdbd216360
    rsp = 0x00007ffdbd216300   r12 = 0x0000015400045600
    r13 = 0x0000000000000000   r14 = 0x000001540127a1c0
    r15 = 0x00000154002fef40   rip = 0x00005654b72ccbb2
    Found by: call frame info
 2  code-insiders!electron::api::SimpleURLLoaderWrapper::OnDownloadProgress(unsigned long) [electron_api_url_loader.cc : 799 + 0x11]
    rbx = 0x0000015400045600   rbp = 0x00007ffdbd216380
    rsp = 0x00007ffdbd216370   r12 = 0x0000015400045600
    r13 = 0x0000000000000000   r14 = 0x000001540127a1c0
    r15 = 0x00007ffdbd216390   rip = 0x00005654b72ca310
    Found by: call frame info
 3  code-insiders!network::(anonymous namespace)::SimpleURLLoaderImpl::FinishWithResult(int) [callback.h : 344 + 0x9]
    rbx = 0x0000015400045600   rbp = 0x00007ffdbd2163f0
    rsp = 0x00007ffdbd216390   r12 = 0x0000015400045600
    r13 = 0x0000000000000000   r14 = 0x000001540127a1c0
    r15 = 0x00007ffdbd216390   rip = 0x00005654bb81618b
    Found by: call frame info
 4  code-insiders!mojo::InterfaceEndpointClient::NotifyError(std::__Cr::optional<mojo::DisconnectReason> const&) [callback.h : 156 + 0x3]
    rbx = 0x0000015400040d80   rbp = 0x00007ffdbd216570
    rsp = 0x00007ffdbd216400   r12 = 0x00005654bf508528
    r13 = 0x00007ffdbd216430   r14 = 0x00007ffdbd216410
    r15 = 0x0000015400040e98   rip = 0x00005654bac1e6d4
    Found by: call frame info
 5  code-insiders!base::internal::Invoker<base::internal::FunctorTraits<void (mojo::internal::MultiplexRouter::*&&)(bool), mojo::internal::MultiplexRouter*, bool&&>, base::internal::BindState<true, true, false, void (mojo::internal::MultiplexRouter::*)(bool), base::internal::UnretainedWrapper<mojo::internal::MultiplexRouter, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, bool>, void ()>::RunOnce(base::internal::BindStateBase*) [multiplex_router.cc : 1035 + 0xf]
    rbx = 0x00000154000042d0   rbp = 0x00007ffdbd216680
    rsp = 0x00007ffdbd216580   r12 = 0x0000015400035900
    r13 = 0x0000015400040d80   r14 = 0x00000154000042d0
    r15 = 0x0000000000000002   rip = 0x00005654bac2fbe8
    Found by: call frame info
 6  code-insiders!base::internal::Invoker<base::internal::FunctorTraits<void (mojo::Connector::* const&)(char const*, unsigned int), mojo::Connector*, char const* const&>, base::internal::BindState<true, true, false, void (mojo::Connector::*)(char const*, unsigned int), base::internal::UnretainedWrapper<mojo::Connector, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::internal::UnretainedWrapper<char const, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void (unsigned int)>::Run(base::internal::BindStateBase*, unsigned int) [callback.h : 156 + 0x3]
    rbx = 0x00000154000d9c60   rbp = 0x00007ffdbd216800
    rsp = 0x00007ffdbd216690   r12 = 0x00005654bac17000
    r13 = 0x000001540127a640   r14 = 0x00007ffdbd216690
    r15 = 0x0000015401240eb0   rip = 0x00005654bac1abca
    Found by: call frame info
 7  code-insiders!base::internal::Invoker<base::internal::FunctorTraits<void (* const&)(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)> const&>, base::internal::BindState<false, true, false, void (*)(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)>>, void (unsigned int, mojo::HandleSignalsState const&)>::Run(base::internal::BindStateBase*, unsigned int, mojo::HandleSignalsState const&) [callback.h : 344 + 0x6]
    rbx = 0x0000015401240eb0   rbp = 0x00007ffdbd216820
    rsp = 0x00007ffdbd216810   r12 = 0x0000015400431de8
    r13 = 0x000001540127a640   r14 = 0x0000015400f832a0
    r15 = 0x0000000000000009   rip = 0x00005654b719f72f
    Found by: call frame info
 8  code-insiders!base::internal::Invoker<base::internal::FunctorTraits<void (mojo::SimpleWatcher::*&&)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>&&, int&&, unsigned int&&, mojo::HandleSignalsState&&>, base::internal::BindState<true, true, false, void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunOnce(base::internal::BindStateBase*) [callback.h : 344 + 0xc]
    rbx = 0x0000015400f832a0   rbp = 0x00007ffdbd216890
    rsp = 0x00007ffdbd216830   r12 = 0x0000015400431de8
    r13 = 0x000001540127a640   r14 = 0x0000015400f832a0
    r15 = 0x0000000000000009   rip = 0x00005654bac43ecc
    Found by: call frame info
 9  code-insiders!base::TaskAnnotator::RunTaskImpl(base::PendingTask&) [callback.h : 156 + 0x3]
    rbx = 0x00000154000bd000   rbp = 0x00007ffdbd216920
    rsp = 0x00007ffdbd2168a0   r12 = 0x00007f80d83fcca0
    r13 = 0x0000000000000000   r14 = 0x00007ffdbd2168e8
    r15 = 0x0000000000000000   rip = 0x00005654ba8b3c7f
    Found by: call frame info
10  code-insiders!non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() [task_annotator.h : 90 + 0x8]
    rbx = 0x00000154000bd000   rbp = 0x00007ffdbd216b10
    rsp = 0x00007ffdbd216930   r12 = 0x0000000000000001
    r13 = 0x00005654bf508528   r14 = 0x000001540003c0f0
    r15 = 0x00007ffdbd216950   rip = 0x00005654ba8d4706
    Found by: call frame info
11  code-insiders!base::MessagePumpDefault::Run(base::MessagePump::Delegate*) [message_pump_default.cc : 40 + 0xb]
    rbx = 0x0000015400004360   rbp = 0x00007ffdbd216b70
    rsp = 0x00007ffdbd216b20   r12 = 0x00007ffdbd216b20
    r13 = 0x7fffffffffffffff   r14 = 0x000001540003c0f0
    r15 = 0x0000015400004370   rip = 0x00005654ba86e157
    Found by: call frame info
12  code-insiders!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) [thread_controller_with_message_pump_impl.cc : 654 + 0x6]
    rbx = 0x000001540003c000   rbp = 0x00007ffdbd216bc0
    rsp = 0x00007ffdbd216b80   r12 = 0x000001540003c020
    r13 = 0x7fffffffffffffff   r14 = 0x0000000000000001
    r15 = 0x000001540003c230   rip = 0x00005654ba8d4e91
    Found by: call frame info
13  code-insiders!base::RunLoop::Run(base::Location const&) [run_loop.cc : 134 + 0x12]
    rbx = 0x00007ffdbd217010   rbp = 0x00007ffdbd216c40
    rsp = 0x00007ffdbd216bd0   r12 = 0x0000000000000000
    r13 = 0x00007ffdbd217120   r14 = 0x00007ffdbd216c00
    r15 = 0x00007ffdbd217040   rip = 0x00005654ba895a5e
    Found by: call frame info
14  code-insiders!content::UtilityMain(content::MainFunctionParams) [utility_main.cc : 438 + 0x8]
    rbx = 0x00007ffdbd217040   rbp = 0x00007ffdbd2170d0
    rsp = 0x00007ffdbd216c50   r12 = 0x00005654b684d613
    r13 = 0x00007ffdbd217120   r14 = 0x00007ffdbd217040
    r15 = 0x0000000000000007   rip = 0x00005654ba57af0c
    Found by: call frame info
15  code-insiders!content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*) [content_main_runner_impl.cc : 802 + 0x7]
    rbx = 0x00007ffdbd217190   rbp = 0x00007ffdbd217230
    rsp = 0x00007ffdbd2170e0   r12 = 0x00007ffdbd217190
    r13 = 0x00007ffdbd217400   r14 = 0x00005654bf434ea0
    r15 = 0x00007ffdbd217120   rip = 0x00005654b74abd16
    Found by: call frame info
16  code-insiders!content::ContentMainRunnerImpl::Run() [content_main_runner_impl.cc : 1179 + 0x8]
    rbx = 0x0000015000088cb0   rbp = 0x00007ffdbd217350
    rsp = 0x00007ffdbd217240   r12 = 0x00007ffdbd217311
    r13 = 0xaaaaaaaaaaaaaaaa   r14 = 0x00007ffdbd217278
    r15 = 0x0000000000000000   rip = 0x00005654b74ace1a
    Found by: call frame info
17  code-insiders!content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) [content_main.cc : 331 + 0x8]
    rbx = 0x0000015000088cb0   rbp = 0x00007ffdbd2175b0
    rsp = 0x00007ffdbd217360   r12 = 0x00005654b684d1b1
    r13 = 0x00007ffdbd217550   r14 = 0x00007ffdbd2173e0
    r15 = 0x0000015000032a80   rip = 0x00005654b74aaaaf
    Found by: call frame info
18  code-insiders!content::ContentMain(content::ContentMainParams) [content_main.cc : 344 + 0x8]
    rbx = 0x00007ffdbd217630   rbp = 0x00007ffdbd217620
    rsp = 0x00007ffdbd2175c0   r12 = 0x00007ffdbd2175e8
    r13 = 0x00005654b71677c0   r14 = 0x00007ffdbd2175e0
    r15 = 0x00007ffdbd2175c8   rip = 0x00005654b74aab90
    Found by: call frame info
19  code-insiders!main [electron_main_linux.cc : 45 + 0x8]
    rbx = 0x00007ffdbd217818   rbp = 0x00007ffdbd217700
    rsp = 0x00007ffdbd217630   r12 = 0x00007ffdbd2176b0
    r13 = 0x00005654b71677c0   r14 = 0x00007ffdbd2176b0
    r15 = 0x00007ffdbd217630   rip = 0x00005654b7167917
    Found by: call frame info
20  libc.so.6!__libc_start_call_main [libc_start_call_main.h : 58 + 0x1a]
    rbx = 0x0000000000000000   rbp = 0x0000000000000014
    rsp = 0x00007ffdbd217710   r12 = 0x00007ffdbd217818
    r13 = 0x00005654b71677c0   r14 = 0x0000000000000000
    r15 = 0x00007f80daa42040   rip = 0x00007f80d9029d90
    Found by: call frame info
21  libc.so.6!__libc_start_main_impl [libc-start.c : 392 + 0xd]
    rbx = 0x0000000000000000   rbp = 0x0000000000000014
    rsp = 0x00007ffdbd2177b0   r12 = 0x00007ffdbd217818
    r13 = 0x00005654b71677c0   r14 = 0x0000000000000000
    r15 = 0x00007f80daa42040   rip = 0x00007f80d9029e40
    Found by: call frame info
22  code-insiders!_start + 0x2a
    rbx = 0x0000000000000000   rbp = 0x0000000000000000
    rsp = 0x00007ffdbd217800   r12 = 0x00005654b6d54000
    r13 = 0x00007ffdbd217810   r14 = 0x0000000000000000
    r15 = 0x0000000000000000   rip = 0x00005654b6d5402a
    Found by: call frame info
23  0x7ffdbd217808
    rbx = 0x0000000000000000   rbp = 0x0000000000000000
    rsp = 0x00007ffdbd217808   r12 = 0x00005654b6d54000
    r13 = 0x00007ffdbd217810   r14 = 0x0000000000000000
    r15 = 0x0000000000000000   rip = 0x00007ffdbd217808
    Found by: call frame info
deepak1556 commented 2 weeks ago

Same root cause as https://github.com/electron/electron/commit/e96b1613a4dd9bfa1d47e9a493727fc0f385db9a but affecting the net api backend in the utility process.