rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
693 stars 126 forks source link

Ash process substitution with pipe causing crash, between version 5007 and 5181 #379

Closed shunf4 closed 10 months ago

shunf4 commented 10 months ago

Expected behaviour with 5007:

C:\Users\shunf4>busybox | busybox head -2
BusyBox v1.37.0-FRP-5007-g82accfc19 (2023-05-28 11:00:58 BST)
(mingw64-gcc 12.2.1-8.fc38; mingw64-crt 10.0.0-4.fc38; glob)

C:\Users\shunf4>busybox sh -c "cat <(echo HelloWorld | rev)"
dlroWolleH

Crash with 5181:

C:\Users\shunf4>busybox-5181 | busybox head -2
BusyBox v1.37.0-FRP-5181-g5c1a3b00e (2023-08-18 12:16:29 BST)
(mingw64-gcc 12.2.1-8.fc38; mingw64-crt 10.0.0-4.fc38; glob)

C:\Users\shunf4>busybox-5181 sh -c "cat <(echo HelloWorld | rev)"

(Crashes)


Crash with 5236:

C:\Users\shunf4>busybox-5236 | busybox head -2
BusyBox v1.37.0-FRP-5236-g7dff7f376 (2023-12-06 10:31:32 GMT)
(mingw64-gcc 13.2.1-5.fc39; mingw64-crt 11.0.0-2.fc39; glob)

C:\Users\shunf4>busybox-5236 sh -c "cat <(echo HelloWorld | rev)"

(Crashes)

rmyorston commented 10 months ago

Thanks for the report. This should be fixed in the latest prerelease binaries (from PRE-5247).