Closed Jarred-Sumner closed 8 months ago
I'm able to reproduce in a debug build eventually:
call stack:
bun-debug.exe!abort() Line 563 (c:/bun/.cache/zig/lib/std/os.zig:563)
bun-debug.exe!handleSegfaultWindowsExtra(os.windows.EXCEPTION_POINTERS * info, unsigned char msg, []u8 label) Line 2621 (c:/bun/.cache/zig/lib/std/debug.zig:2621)
bun-debug.exe!handleSegfaultWindows(os.windows.EXCEPTION_POINTERS * info) Line 2592 (c:/bun/.cache/zig/lib/std/debug.zig:2592)
ntdll.dll!00007ffe04a47a8a() (Unknown Source:0)
ntdll.dll!00007ffe049ee242() (Unknown Source:0)
ntdll.dll!00007ffe04a7340e() (Unknown Source:0)
bun-debug.exe!uv__process_fs_event_req() (Unknown Source:0)
bun-debug.exe!uv_run() (Unknown Source:0)
bun-debug.exe!uv_run() (Unknown Source:0)
bun-debug.exe!us_loop_run(us_loop_t * loop) Line 202 (c:/bun/packages/bun-usockets/src/eventing/libuv.c:202)
bun-debug.exe!run(src.deps.uws.UVLoop * this) Line 2540 (c:/bun/src/deps/uws.zig:2540)
bun-debug.exe!autoTick(src.bun.js.event_loop.EventLoop * this) Line 1113 (c:/bun/src/bun.js/event_loop.zig:1113)
bun-debug.exe!run(builtin.StackTrace * reporter, src.cli.test_command.CommandLineReporter * vm, src.bun.js.javascript.VirtualMachine * file_name, []u8 is_last, mem.Allocator *) Line 1072 (c:/bun/src/cli/test_command.zig:1072)
bun-debug.exe!begin(src.cli.test_command.TestCommand.runAllTests.Context * this) Line 962 (c:/bun/src/cli/test_command.zig:962)
bun-debug.exe!00007ff6ce2005bc() Line 104 (c:/bun/src/bun.js/javascript.zig:104)
bun-debug.exe!JSC__VM__holdAPILock(JSC::VM * arg0, void * ctx, void(*)(void *) callback) Line 4548 (c:/bun/src/bun.js/bindings/bindings.cpp:4548)
[Inline Frame] bun-debug.exe!cppFn() Line 186 (c:/bun/src/bun.js/bindings/shimmer.zig:186)
bun-debug.exe!00007ff6cdb536b9() Line 5299 (c:/bun/src/bun.js/bindings/bindings.zig:5299)
[Inline Frame] bun-debug.exe!runWithAPILock() Line 2330 (c:/bun/src/bun.js/javascript.zig:2330)
bun-debug.exe!runAllTests(src.cli.test_command.CommandLineReporter * reporter_, src.bun.js.javascript.VirtualMachine * vm_, []src.string_types.PathString files_, mem.Allocator * allocator_) Line 971 (c:/bun/src/cli/test_command.zig:971)
Will take a look probably is a UAF
@cirospaciari
The following does not emit any events:
const path = require("path");
const fs = require("fs");
const watchPath = path.join(process.cwd(), "src");
const watcher = fs.watch(watchPath, { recursive: true }, (event, file) => {
try {
console.log(`Detected ${event} on ${file}...`);
reloadPacks();
} catch (e) {
console.error(e);
}
});
Then, in a separate shell, write hey
to src/hey.txt
Any progress?
@cirospaciari fs.watch test is panicking: