#5310·libuv

The failure occurred because the memory page size of 64KB did not match

Author: dabao1990Created Sep 30, 2026Updated Sep 30, 2026

Test Steps: 1、spack install [email protected] 2、cd [email protected] 3、su test_libuv -c "./run-tests pipe_write_cancel_after_close"

Error message:

su test_libuv -c "./run-tests pipe_write_cancel_after_close"
not ok 1 - pipe_write_cancel_after_close
# exit code 134
# Output from process `pipe_write_cancel_after_close`:
# Assertion failed in test/test-write-cancel.c on line 394: `1 == cancelled_count` (1 == 0)

The answer I received from deepseek-v4 is as follows:

Confirmed by actual testing: This machine has `getconf PAGESIZE = 65536` and `F_GETPIPE_SZ = 1048576`.
The memory page size of this machine is 64KB (x86 is 4KB), which causes the system pipe capacity to change from "the expected 64KB" to 1MB. The amount of data written in the test happens to be exactly equal to the pipe capacity, so all the data is written in one go. The write request that the test intended to cancel simply did not exist.

-- But I don't know if this is correct, so I want to ask.