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

Random segmentation fault at address 0x50 #16535

Open
Sayrix opened this issue Jan 19, 2025 · 0 comments
Open

Random segmentation fault at address 0x50 #16535

Sayrix opened this issue Jan 19, 2025 · 0 comments
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@Sayrix
Copy link

Sayrix commented Jan 19, 2025

How can we reproduce the crash?

I randomly get that error when I try to run my code.
The only package I use is "discord.js-selfbot-v13", here is a part of the code that I run:

import * as Discord from "discord.js-selfbot-v13";
const client = new Discord.Client() as Client;

declare global {
	namespace NodeJS {
		interface Process {
			_sayrixPresence: Discord.Presence;
		}
	}
	interface Client extends Discord.Client {
		lastUpdate: number;
	}
}

client.on("ready", async () => {
	console.log(`${client.user?.username} is ready!`);

	const guild = client.guilds.cache.get("634848647829258251");
	const sayrix = guild?.members.cache.get("629031362351071252");

	if (!sayrix?.presence?.status) {
		client.user?.setStatus("invisible");
		console.log("Set status to invisible");
	}
});

client.lastUpdate = Date.now();

client.login("TOKEN");

process.on("unhandledRejection", (err) => {
	console.error("🚨 Unhandled Rejection:", err);
});

process.on("uncaughtException", (err) => {
	console.error("🚨 Uncaught Exception:", err);
});

Here is a video of me running almost the same code as above, randomly having that crash.

19.January.2025.21h39m33s.mp4

OS Name Microsoft Windows 11 Pro
Version 10.0.26100 Build 26100

Relevant log output

Stack Trace (bun.report)

Bun v1.1.45 (196621f) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000050

  • FTLLowerDFGToB3.cpp:16162: JSC::FTL::\anonymous namespace'::LowerDFGToB3::compileMaterializeNewObject`
  • AssemblerBuffer.h:431: JSC::AssemblerBuffer::LocalWriter::~LocalWriter
  • Vector.h:1778: WTF::Vector<std::pair<JSC::X86Registers::RegisterID,JSC::X86Registers::RegisterID>,1,WTF::CrashOnOverflow,16,WTF::FastMalloc>::removeAllMatching
  • PrintStream.h:73: WTF::PrintStream::atomically<\lambda at C:\a\WebKit\WebKit\WebKitBuild\WTF\Headers\wtf\PrintStream.h:80:13'>`
  • Vector.h:380: WTF::VectorBufferBase<JSC::AbstractMacroAssembler<JSC::X86Assembler>::Jump,WTF::FastMalloc>::deallocateBuffer
  • StdLibExtras.h:1104: WTF::memcpySpan
  • ustrcase_internalToTitle_73
  • span:216: std::_Span_extent_type<const unsigned char,18446744073709551615>::_Span_extent_type
  • Parser.h:2297: JSC::parse<JSC::ModuleProgramNode>
  • corecrt_internal_big_integer.h:345: __crt_strtox::multiply

Features: bunfig, fetch, jsc, transpiler_cache, tsconfig, tsconfig

Sentry Issue: BUN-BFE

@Sayrix Sayrix added the crash An issue that could cause a crash label Jan 19, 2025
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

1 participant