Triggered with pv /proc/profile
after a ~30s system-wide profile.
[Profiler(161:161)]: KUBSAN: member call on null pointer of type 'struct KString'
[Profiler(161:161)]: KUBSAN: at /Users/andrewpiroli/work/serenity/Kernel/PerformanceEventBuffer.cpp, line 210, column: 13
[Profiler(161:161)]: Kernel + 0x00000000014e8e48 print_location +0x208
[Profiler(161:161)]: Kernel + 0x00000000014ed0b8 __ubsan_handle_type_mismatch_v1 +0x218
[Profiler(161:161)]: Kernel + 0x0000000001046dad AK::ErrorOr<void, AK::Error> Kernel::PerformanceEventBuffer::to_json_impl<AK::JsonObjectSerializer<Kernel::KBufferBuilder> >(AK::JsonObjectSerializer<Kernel::KBufferBuilder>&) const +0x98cd
[Profiler(161:161)]: Kernel + 0x0000000001036f84 Kernel::PerformanceEventBuffer::to_json(Kernel::KBufferBuilder&) const +0xf4
[Profiler(161:161)]: Kernel + 0x0000000000664f3f Kernel::ProcFSProfile::try_generate(Kernel::KBufferBuilder&) +0x6f
[Profiler(161:161)]: Kernel + 0x00000000010ceab8 Kernel::ProcFSGlobalInformation::refresh_data(Kernel::OpenFileDescription&) const [clone .localalias] +0xbf8
[Profiler(161:161)]: Kernel + 0x0000000000b90a81 Kernel::ProcFSGlobalInode::attach(Kernel::OpenFileDescription&) [clone .localalias] +0x131
[Profiler(161:161)]: Kernel + 0x0000000000b17b47 Kernel::OpenFileDescription::attach() [clone .localalias] +0x3b7
[Profiler(161:161)]: Kernel + 0x0000000000b32fbc Kernel::OpenFileDescription::try_create(Kernel::Custody&) +0x90c
[Profiler(161:161)]: Kernel + 0x0000000000c64626 Kernel::VirtualFileSystem::open(AK::StringView, int, unsigned short, Kernel::Custody&, AK::Optional<Kernel::UidAndGid>) +0xce6
[Profiler(161:161)]: Kernel + 0x000000000127e6d9 Kernel::Process::sys$open(AK::Userspace<Kernel::Syscall::SC_open_params const*>) +0x1359
[Profiler(161:161)]: Kernel + 0x0000000001158148 syscall_handler +0x1148
[Profiler(161:161)]: Kernel + 0x000000000156d391 syscall_entry +0x51
[Profiler(161:161)]: UB is configured to be deadly, halting the system.```
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