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

Unknown Error #15972

Open
hnuuhc opened this issue Dec 24, 2024 · 0 comments
Open

Unknown Error #15972

hnuuhc opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@hnuuhc
Copy link

hnuuhc commented Dec 24, 2024

What version of Bun is running?

1.1.42

What platform is your computer?

windows32 2.6.2 i686-pc Intel

What steps can reproduce the bug?

import fs from 'fs'
import * as dpapi from "node-dpapi-prebuilt"
import os from 'os'
import path from 'path'

let home = path.join(os.homedir(), 'AppData/Local/Microsoft/Edge/User Data')
let encrypted_key = JSON.parse(fs.readFileSync(path.join(home, 'Local State')).toString()).os_crypt.app_bound_encrypted_key
let encryptedKey = dpapi.unprotectData(Buffer.from(encrypted_key, 'base64').subarray(4), null, "CurrentUser")
console.log(encryptedKey)

What is the expected behavior?

return a Buffer

What do you see instead?

Bun v1.1.42 (50eec00) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\HHC.bun\bin\bun.exe" "f:\Project\NodeScript\src\browser5.ts"
Features: bunfig jsc tsconfig tsconfig_paths process_dlopen
Builtins: "bun:main" "node:fs" "node:os" "node:path" "node:string_decoder" "node:util/types"
Elapsed: 110ms | User: 15ms | Sys: 15ms
RSS: 0.14GB | Peak: 0.14GB | Commit: 0.16GB | Faults: 33349

panic(main thread): Segmentation fault at address 0x7FFE5E95CE5B
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.1.42/wa150eec00iCh8/7//DCenode-dpapi.nodeu7LCenode-dpapi.nodewkWCenode-dpapi.nodemlaCenode-dpapi.nodeo1fCenode-dpapi.nodeuvew+0+pB__423lnCA28//B2ln3y+C

Additional information

I don't know if it's a bun or dpapi problem.

@hnuuhc hnuuhc added bug Something isn't working needs triage labels Dec 24, 2024
@hnuuhc hnuuhc marked this as a duplicate of #15971 Dec 24, 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 needs triage
Projects
None yet
Development

No branches or pull requests

1 participant