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

LevelDB Error #11010

Open
jayamukti opened this issue May 11, 2024 · 1 comment
Open

LevelDB Error #11010

jayamukti opened this issue May 11, 2024 · 1 comment
Labels
crash An issue that could cause a crash

Comments

@jayamukti
Copy link

jayamukti commented May 11, 2024

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

  • 1 unknown/js code
  • ??? at 0x5deb5 in ntdll.dll
  • ??? at 0x5dbab in ntdll.dll
  • ??? at 0x5da8d in ntdll.dll
  • ??? at 0x1e3bb in KERNEL32.DLL
  • ??? at 0x205bc in ucrtbase.dll
  • ??? at 0x2045f in ucrtbase.dll
  • Global.zig:123: exitWide
  • Global.zig:106: exit
  • javascript.zig:941: eventLoop
@jayamukti jayamukti added bug Something isn't working crash An issue that could cause a crash labels May 11, 2024
@hnuuhc
Copy link

hnuuhc commented Aug 22, 2024

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

@nektro nektro removed the bug Something isn't working label Oct 26, 2024
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
Projects
None yet
Development

No branches or pull requests

3 participants