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

Crash while load testing a NextJS application #14019

Open
dmeijboom opened this issue Sep 18, 2024 · 1 comment
Open

Crash while load testing a NextJS application #14019

dmeijboom opened this issue Sep 18, 2024 · 1 comment
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS

Comments

@dmeijboom
Copy link

dmeijboom commented Sep 18, 2024

How can we reproduce the crash?

I was testing high memory usage with NodeJS/bun using --inspect in one of our NextJS applications. Unfortunately, I cannot reproduce the issue nor provide a minimal reproduction. But since it crashed (seemingly) randomly with a segfault I didn't want to throw away the report.

Some details:

  • We were using NextJS v14.2.6 (standalone build, App Router)
  • The route in question (homepage) was using searchParams which means that it wasn't cached
  • Testing happened via wrk with the following arguments: wrk -t 4 -c 50 -d 30s --latency http://localhost:3000

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.27 (267afa2) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x344000000000000

  • 2 unknown/js code
  • JSC::RecordedStatuses::finalize
  • JSC::CodeBlock::finalizeUnconditionally
  • void JSC::IsoCellSet::forEachMarkedCell<void JSC::Heap::finalizeMarkedUnconditionalFinalizers<JSC::CodeBlock, JSC::IsoCellSet>(...)::'lambda'(...)>
  • JSC::Heap::finalizeUnconditionalFinalizers
  • JSC::Heap::runEndPhase
  • JSC::Heap::runCurrentPhase
  • WTF::ScopedLambdaFunctor<void (...), JSC::Heap::collectInMutatorThread()::$_0>::implFunction
  • JSC::callWithCurrentThreadState
@dmeijboom dmeijboom added the crash An issue that could cause a crash label Sep 18, 2024
@github-actions github-actions bot added the macOS An issue that occurs on macOS label Sep 18, 2024
@Jarred-Sumner
Copy link
Collaborator

Interesting

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 macOS An issue that occurs on macOS
Projects
None yet
Development

No branches or pull requests

2 participants