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 · 0 comments
Open

LevelDB Error #11010

jayamukti opened this issue May 11, 2024 · 0 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@jayamukti
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

1 participant