nodejs / undici

An HTTP/1.1 client, written from scratch for Node.js
https://nodejs.github.io/undici
MIT License
6.22k stars 541 forks source link

EFAULT: bad address in system call argument, write #3601

Open paulober opened 1 month ago

paulober commented 1 month ago

Bug Description

See https://github.com/nodejs/node/issues/54921

Reproducible By

See https://github.com/nodejs/node/issues/54921

Expected Behavior

Normal download like on any other platform than Raspberry Pi 4.

Logs & Screenshots

See title. That's the only response i got.

Environment

See https://github.com/nodejs/node/issues/54921

Additional context

I wanted to create a example that is smaller but was unable to reproduce it. But with the usage in the extension i can reproduce the issue for every file it downloads with undici.

Uzlopak commented 1 month ago

I dont see any mvce.

paulober commented 1 month ago

See the attached issue, where you find:

Execute the version v0.16.0 of the pico-vscode extension in vscode. The source of the bug seems to be the area around this line: https://github.com/raspberrypi/pico-vscode/blob/72a02fceb1608e3962caf46d9bb5aa7410ce5660/src/utils/download.mts#L233

(Sorry for not having a smaller reproducible example)

metcoder95 commented 1 month ago

Can you provide an Minimum Reproducible Example that isolates the issue for us to reproduce it?

paulober commented 1 month ago

Can you provide an Minimum Reproducible Example that isolates the issue for us to reproduce it?

See my last message. I currently don't have the time to dive into it. You can find my usage in the linked area of the project. Currently I just replace undici with got on affected platforms as workaround (for others having the same issue).