This happens sometimes when loading https://chat.openai.com/ in Ladybird.
Full backtrace with GDB:
VERIFICATION FAILED: maybe_line.value().is_empty() at /home/kling/src/serenity/Userland/Libraries/LibHTTP/Job.cpp:551
#0 ak_verification_failed (
message=0x7f4bbb332911 "maybe_line.value().is_empty() at /home/kling/src/serenity/Userland/Libraries/LibHTTP/Job.cpp:551")
at /home/kling/src/serenity/AK/Assertions.cpp:108
#1 0x00007f4bbb3407bc in HTTP::Job::on_socket_connected()::$_1::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Userland/Libraries/LibHTTP/Job.cpp:551
#2 0x00007f4bbb33e156 in AK::Function<void ()>::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:115
#3 HTTP::Job::register_on_ready_to_read(AK::Function<void ()>)::$_0::operator()() const (this=0x563e4c3c2b38)
at /home/kling/src/serenity/Userland/Libraries/LibHTTP/Job.cpp:160
#4 AK::Function<void ()>::CallableWrapper<HTTP::Job::register_on_ready_to_read(AK::Function<void ()>)::$_0>::call() (this=0x563e4c3c2b30)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:182
#5 0x0000563e4a898611 in AK::Function<void ()>::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:115
#6 Core::BufferedSocket<TLS::TLSv12>::setup_notifier()::{lambda()#1}::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../Userland/Libraries/LibCore/Socket.h:436
#7 AK::Function<void ()>::CallableWrapper<Core::BufferedSocket<TLS::TLSv12>::setup_notifier()::{lambda()#1}>::call() (
this=<optimized out>) at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:182
#8 0x00007f4bbb31554c in AK::Function<void ()>::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:115
#9 TLS::TLSv12::notify_client_for_app_data (this=this@entry=0x563e4be2c6f0)
at /home/kling/src/serenity/Userland/Libraries/LibTLS/Socket.cpp:140
#10 0x00007f4bbb315733 in TLS::TLSv12::read_from_socket()::$_0::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Userland/Libraries/LibTLS/Socket.cpp:160
#11 AK::ScopeGuard<TLS::TLSv12::read_from_socket()::$_0>::~ScopeGuard() (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/ScopeGuard.h:23
#12 TLS::TLSv12::read_from_socket (this=0x563e4be2c6f0) at /home/kling/src/serenity/Userland/Libraries/LibTLS/Socket.cpp:186
#13 0x00007f4bbb316036 in TLS::TLSv12::setup_connection()::$_0::operator()() const::{lambda()#1}::operator()() const (
this=<optimized out>) at /home/kling/src/serenity/Userland/Libraries/LibTLS/Socket.cpp:102
#14 AK::Function<void ()>::CallableWrapper<TLS::TLSv12::setup_connection()::$_0::operator()() const::{lambda()#1}>::call() (
this=<optimized out>) at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:182
#15 0x00007f4bbb1f48b1 in AK::Function<void ()>::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:115
#16 Core::TCPSocket::setup_notifier()::{lambda()#1}::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../Userland/Libraries/LibCore/Socket.h:209
#17 AK::Function<void ()>::CallableWrapper<Core::TCPSocket::setup_notifier()::{lambda()#1}>::call() (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:182
#18 0x00007f4bbb1eac30 in AK::Function<void ()>::operator()() const (this=<optimized out>)
at /home/kling/src/serenity/Meta/Lagom/../../AK/Function.h:115
#19 Core::Notifier::event (this=0x563e4c2fa840, event=...) at /home/kling/src/serenity/Userland/Libraries/LibCore/Notifier.cpp:48
#20 0x00007f4bbb1e2db5 in Core::EventReceiver::dispatch_event (this=<optimized out>, e=..., stay_within=0x0) at /home/kling/src/serenity/Userland/Libraries/LibCore/EventReceiver.cpp:163
#21 0x00007f4bbb200131 in Core::ThreadEventQueue::process (this=0x563e4bf39f50) at /home/kling/src/serenity/Userland/Libraries/LibCore/ThreadEventQueue.cpp:111
#22 0x00007f4bbb1dd53c in Core::EventLoopImplementationUnix::pump (this=0x563e4bdedc30, mode=Core::EventLoopImplementation::PumpMode::WaitForEvents)
at /home/kling/src/serenity/Userland/Libraries/LibCore/EventLoopImplementationUnix.cpp:109
#23 Core::EventLoopImplementationUnix::exec (this=0x563e4bdedc30) at /home/kling/src/serenity/Userland/Libraries/LibCore/EventLoopImplementationUnix.cpp:101
#24 0x00007f4bbb1dc722 in Core::EventLoop::exec (this=0x7ffc281225a8) at /home/kling/src/serenity/Userland/Libraries/LibCore/EventLoop.cpp:86
#25 0x0000563e4a88a4f7 in serenity_main (arguments=...) at /home/kling/src/serenity/Ladybird/RequestServer/main.cpp:62
#26 0x0000563e4a8b1823 in main (argc=5, argv=0x7ffc28122848) at /home/kling/src/serenity/Userland/Libraries/LibMain/Main.cpp:39
cc @alimpfard
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too