oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.38k stars 2.78k forks source link

LevelDB Error #11010

Open jayamukti opened 6 months ago

jayamukti commented 6 months ago

How can we reproduce the crash?

when i write bun index.ts

JavaScript/TypeScript code that reproduces the crash?

const { Level } = require('level')

// Create a database
const db = new Level('./db', { valueEncoding: 'json' })

// Add an entry with key 'a' and value 1
await db.put('a', 1)

// Add multiple entries
await db.batch([{ type: 'put', key: 'b', value: 2 }])

// Get value of key 'a': 1
const value = await db.get('a')

// Iterate entries with keys that are greater than 'a'
for await (const [key, value] of db.iterator({ gt: 'a' })) {
  console.log(value) // 2
}

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.8 (89d2580) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x7FFD57FABAE0

hnuuhc commented 3 months ago

error: No native build was found for platform=linux arch=x64 runtime=node abi=115 uv=1 libc=glibc node=22.3.0 loaded from: /root/windvane2/F:\Project\NodeScript\node_modules\classic-level