Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: https://polar.sh crashes on load #21899

Closed
mattco98 opened this issue Nov 11, 2023 · 0 comments · Fixed by #21967
Closed

LibWeb: https://polar.sh crashes on load #21899

mattco98 opened this issue Nov 11, 2023 · 0 comments · Fixed by #21967
Labels
bug Something isn't working regression

Comments

@mattco98
Copy link
Collaborator

Happens a few seconds into the loading process. Regressed after #21700 (@networkException)

33.034 CrashReporter(53:57): --- Backtrace for thread #0 (TID 49) ---
33.034 CrashReporter(53:57): 0x0000001ce70adb18: [/usr/lib/libc.so] ak_verification_failed +0x58 (Assertions.cpp:108 => Assertions.cpp:101)
33.034 CrashReporter(53:57): 0x000000141a25f613: [/usr/lib/libweb.so.serenity] Web::Bindings::initialize_main_thread_vm()::{lambda(AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> > const&, JS::ModuleRequest const&)#1}::operator()(AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> > const&, JS::ModuleRequest const&) const [clone .isra.0] +0x5f3 (Optional.h:232 => Optional.h:227 => MainThreadVM.cpp:549)
33.039 CrashReporter(53:57): 0x000000141a25f722: [/usr/lib/libweb.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Module> > (AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> >, JS::ModuleRequest const&)>::CallableWrapper<Web::Bindings::initialize_main_thread_vm()::{lambda(AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> > const&, JS::ModuleRequest const&)#1}>::call(AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> >, JS::ModuleRequest const&) +0x32 (Function.h:182)
33.039 CrashReporter(53:57): 0x00000016330dd723: [/usr/lib/libjs.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Module> > (AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> >, JS::ModuleRequest const&)>::operator()(AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Script>, JS::NonnullGCPtr<JS::Module> >, JS::ModuleRequest const&) const +0x63 (Function.h:115)
33.039 CrashReporter(53:57): 0x00000016330d99f9: [/usr/lib/libjs.so.serenity] JS::CyclicModule::inner_module_linking(JS::VM&, AK::Vector<JS::Module*, 0ul>&, unsigned int) [clone .localalias] +0x149 (CyclicModule.cpp:246)
33.044 CrashReporter(53:57): 0x00000016330da35f: [/usr/lib/libjs.so.serenity] JS::CyclicModule::link(JS::VM&) +0x5f (CyclicModule.cpp:167)
33.044 CrashReporter(53:57): 0x000000141a5c75e2: [/usr/lib/libweb.so.serenity] JS::SafeFunction<Web::WebIDL::ExceptionOr<JS::Value> (JS::Value)>::CallableWrapper<Web::HTML::fetch_descendants_of_and_link_a_module_script(JS::Realm&, Web::HTML::JavaScriptModuleScript&, Web::HTML::EnvironmentSettingsObject&, Web::Fetch::Infrastructure::Request::Destination, JS::NonnullGCPtr<JS::HeapFunction<void (JS::GCPtr<Web::HTML::Script>)> >)::{lambda(auto:1 const&)#1}>::call(JS::Value) +0x42 (Fetching.cpp:697 => SafeFunction.h:133)
33.044 CrashReporter(53:57): 0x000000141a7cd053: [/usr/lib/libweb.so.serenity] JS::SafeFunction<Web::WebIDL::ExceptionOr<JS::Value> (JS::Value)>::CallableWrapper<Web::WebIDL::upon_fulfillment(JS::PromiseCapability const&, JS::SafeFunction<Web::WebIDL::ExceptionOr<JS::Value> (JS::Value)>)::{lambda(auto:1)#1}>::call(JS::Value) +0x63 (SafeFunction.h:85)
33.048 CrashReporter(53:57): 0x000000141a7cd1d2: [/usr/lib/libweb.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::Value> (JS::VM&)>::CallableWrapper<Web::WebIDL::react_to_promise(JS::PromiseCapability const&, AK::Optional<JS::SafeFunction<Web::WebIDL::ExceptionOr<JS::Value> (JS::Value)> >, AK::Optional<JS::SafeFunction<Web::WebIDL::ExceptionOr<JS::Value> (JS::Value)> >)::{lambda(JS::VM&)#1}>::call(JS::VM&) +0x122 (SafeFunction.h:85)
33.048 CrashReporter(53:57): 0x00000016332ed45b: [/usr/lib/libjs.so.serenity] JS::NativeFunction::call() [clone .localalias] +0x7b (Function.h:115)
33.048 CrashReporter(53:57): 0x00000016332eed62: [/usr/lib/libjs.so.serenity] JS::NativeFunction::internal_call(JS::Value, JS::MarkedVector<JS::Value, 0ul>) [clone .localalias] +0x232 (NativeFunction.cpp:151)
33.048 CrashReporter(53:57): 0x000000163316083a: [/usr/lib/libjs.so.serenity] JS::call_impl(JS::VM&, JS::FunctionObject&, JS::Value, AK::Optional<JS::MarkedVector<JS::Value, 0ul> >) +0xaa (AbstractOperations.cpp:74)
33.048 CrashReporter(53:57): 0x000000141a25ddae: [/usr/lib/libweb.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::Value> (JS::JobCallback&, JS::Value, JS::MarkedVector<JS::Value, 0ul>)>::CallableWrapper<Web::Bindings::initialize_main_thread_vm()::{lambda(JS::JobCallback&, JS::Value, JS::MarkedVector<JS::Value, 0ul>)#1}>::call(JS::JobCallback&, JS::Value, JS::MarkedVector<JS::Value, 0ul>) +0x1ce (AbstractOperations.h:102 => MainThreadVM.cpp:204 => Function.h:182)
33.054 CrashReporter(53:57): 0x000000163332a9dc: [/usr/lib/libjs.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::Value> (JS::JobCallback&, JS::Value, JS::MarkedVector<JS::Value, 0ul>)>::operator()(JS::JobCallback&, JS::Value, JS::MarkedVector<JS::Value, 0ul>) const +0xec (Function.h:115)
33.054 CrashReporter(53:57): 0x000000163332a03c: [/usr/lib/libjs.so.serenity] JS::run_reaction_job(JS::VM&, JS::PromiseReaction&, JS::Value) +0x52c (PromiseJobs.cpp:57)
33.054 CrashReporter(53:57): 0x000000163332a383: [/usr/lib/libjs.so.serenity] AK::Function<JS::ThrowCompletionOr<JS::Value> ()>::CallableWrapper<JS::create_promise_reaction_job(JS::VM&, JS::PromiseReaction&, JS::Value)::{lambda()#1}>::call() +0x43 (PromiseJobs.cpp:96 => Function.h:182)
33.058 CrashReporter(53:57): 0x000000141a25e65a: [/usr/lib/libweb.so.serenity] Web::Bindings::initialize_main_thread_vm()::{lambda(AK::Function<JS::ThrowCompletionOr<JS::Value> ()>, JS::Realm*)#1}::operator()(AK::Function<JS::ThrowCompletionOr<JS::Value> ()>, JS::Realm*) const::{lambda()#1}::operator()() const +0xba (Function.h:115)
33.058 CrashReporter(53:57): 0x000000141a4be058: [/usr/lib/libweb.so.serenity] Web::HTML::Task::execute() +0x48 (SafeFunction.h:85)
33.058 CrashReporter(53:57): 0x000000141a4bb783: [/usr/lib/libweb.so.serenity] Web::HTML::EventLoop::perform_a_microtask_checkpoint() [clone .part.0] +0xa3 (EventLoop.cpp:303)
33.058 CrashReporter(53:57): 0x000000141a4bc80a: [/usr/lib/libweb.so.serenity] Web::HTML::EventLoop::process() +0x8a (EventLoop.cpp:288 => EventLoop.cpp:118)
33.058 CrashReporter(53:57): 0x000000141a71a4c8: [/usr/lib/libweb.so.serenity] AK::Function<void ()>::CallableWrapper<Web::Platform::TimerSerenity::TimerSerenity()::{lambda()#1}>::call() +0x48 (SafeFunc
tion.h:85)
33.058 CrashReporter(53:57): 0x000000147507bcf1: [/usr/lib/libcore.so.serenity] Core::Timer::timer_event(Core::TimerEvent&) [clone .localalias] +0xb1 (Function.h:115)
33.067 CrashReporter(53:57): 0x000000147505c9a4: [/usr/lib/libcore.so.serenity] Core::EventReceiver::dispatch_event(Core::Event&, Core::EventReceiver*) +0x54 (EventReceiver.cpp:163)
33.067 CrashReporter(53:57): 0x000000147507acdb: [/usr/lib/libcore.so.serenity] Core::ThreadEventQueue::process() +0x2eb (ThreadEventQueue.cpp:111)
33.067 CrashReporter(53:57): 0x0000001475055fa3: [/usr/lib/libcore.so.serenity] Core::EventLoop::spin_until(AK::Function<bool ()>) +0xc3 (EventLoop.cpp:98 => EventLoop.cpp:93)
33.067 CrashReporter(53:57): 0x000000141a718aa2: [/usr/lib/libweb.so.serenity] Web::Platform::EventLoopPluginSerenity::spin_until(JS::SafeFunction<bool ()>) +0x112 (EventLoopPluginSerenity.cpp:19)
33.067 CrashReporter(53:57): 0x000000141a4bbaf8: [/usr/lib/libweb.so.serenity] Web::HTML::EventLoop::spin_until(JS::SafeFunction<bool ()>) +0xe8 (EventLoop.cpp:78)
33.067 CrashReporter(53:57): 0x000000141a5883ba: [/usr/lib/libweb.so.serenity] Web::HTML::HTMLParser::the_end() [clone .part.0] +0xfa (HTMLParser.cpp:266)
33.067 CrashReporter(53:57): 0x000000141a59da55: [/usr/lib/libweb.so.serenity] Web::HTML::HTMLParser::run(AK::URL const&) [clone .localalias] +0x265 (HTMLParser.cpp:256 => HTMLParser.cpp:219)
33.072 CrashReporter(53:57): 0x000000141a3a3e34: [/usr/lib/libweb.so.serenity] Web::parse_document(Web::DOM::Document&, AK::Detail::ByteBuffer<32ul> const&) [clone .localalias] +0x8a4 (DocumentLoading.cpp:206)
33.072 CrashReporter(53:57): 0x000000141a3a5902: [/usr/lib/libweb.so.serenity] JS::SafeFunction<void (AK::Detail::ByteBuffer<32ul>)>::CallableWrapper<Web::load_document(AK::Optional<Web::HTML::NavigationParams>)::{lambda(AK::Detail::ByteBuffer<32ul>)#1}>::call(AK::Detail::ByteBuffer<32ul>) +0x62 (DocumentLoading.cpp:267 => SafeFunction.h:133)
33.072 CrashReporter(53:57): 0x000000141a44d45b: [/usr/lib/libweb.so.serenity] JS::SafeFunction<void ()>::CallableWrapper<Web::Fetch::Infrastructure::Body::fully_read(JS::Realm&, JS::SafeFunction<void (AK::Detail::ByteBuffer<32ul>)>, JS::SafeFunction<void (JS::GCPtr<Web::WebIDL::DOMException>)>, AK::Variant<AK::Empty, JS::NonnullGCPtr<JS::Object> >) const::{lambda(AK::Detail::ByteBuffer<32ul> const&)#1}::operator()(AK::Detail::ByteBuffer<32ul> const&)::{lambda()#1}>::call() +0xbb (SafeFunction.h:85)
33.072 CrashReporter(53:57): 0x000000141a4be058: [/usr/lib/libweb.so.serenity] Web::HTML::Task::execute() +0x48 (SafeFunction.h:85)
33.077 CrashReporter(53:57): 0x000000141a4bc7ed: [/usr/lib/libweb.so.serenity] Web::HTML::EventLoop::process() +0x6d (EventLoop.cpp:111)
33.077 CrashReporter(53:57): 0x000000141a71a4c8: [/usr/lib/libweb.so.serenity] AK::Function<void ()>::CallableWrapper<Web::Platform::TimerSerenity::TimerSerenity()::{lambda()#1}>::call() +0x48 (SafeFunction.h:85)
33.077 CrashReporter(53:57): 0x000000147507bcf1: [/usr/lib/libcore.so.serenity] Core::Timer::timer_event(Core::TimerEvent&) [clone .localalias] +0xb1 (Function.h:115)
33.077 CrashReporter(53:57): 0x000000147505c9a4: [/usr/lib/libcore.so.serenity] Core::EventReceiver::dispatch_event(Core::Event&, Core::EventReceiver*) +0x54 (EventReceiver.cpp:163)
33.077 CrashReporter(53:57): 0x000000147507acdb: [/usr/lib/libcore.so.serenity] Core::ThreadEventQueue::process() +0x2eb (ThreadEventQueue.cpp:111)
33.077 CrashReporter(53:57): 0x0000001475059753: [/usr/lib/libcore.so.serenity] Core::EventLoopImplementationUnix::exec() +0x33 (EventLoopImplementationUnix.cpp:109 => EventLoopImplementationUnix.cpp:101)
33.081 CrashReporter(53:57): 0x000000147505611c: [/usr/lib/libcore.so.serenity] Core::EventLoop::exec() +0x4c (EventLoop.cpp:86)
33.081 CrashReporter(53:57): 0x00000018fa702262: [/bin/WebContent] serenity_main(Main::Arguments) +0x5f2 (main.cpp:59)
33.081 CrashReporter(53:57): 0x00000018fa656957: [/bin/WebContent] main +0x147 (Main.cpp:43)
33.081 CrashReporter(53:57): 0x00000018fa656ab4: [/bin/WebContent] _entry +0x24 (crt0.cpp:41)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant