You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getHeapSnapshot causes lodestar beacon node to crash #23393
exportasyncfunctionwriteHeapSnapshot(prefix: string,dirpath: string): Promise<string>{// Lazily import NodeJS only modulesconstfs=awaitimport("node:fs");constv8=awaitimport("node:v8");constsnapshotStream=v8.getHeapSnapshot();constfilepath=`${dirpath}/${prefix}_${newDate().toISOString()}.heapsnapshot`;constfileStream=fs.createWriteStream(filepath);returnnewPromise<string>((resolve,reject)=>{fileStream.on("error",(err)=>{reject(err);});snapshotStream.pipe(fileStream);snapshotStream.on("end",()=>{resolve(filepath);});});}
note that I launched the node with ethereum hoodi public network so perhaps it requires more memory there
the api works fine if I launch a local small devnet on my localhost (Macbook)
What is the expected behavior?
no crash
What do you see instead?
oh no: Bun has crashed. This indicates a bug in Bun, not your code
Activity
linear commentedon Oct 9, 2025
ENG-20824
twoeths commentedon Oct 10, 2025
my beacon node running Bun was also crashed using
generateHeapSnapshot()api