coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`sort`: tests sometimes stack overflow on `Code Coverage (windows-latest, windows)`

Open miDeb opened this issue 4 years ago • 6 comments

Example: https://github.com/uutils/coreutils/pull/2417/checks?check_run_id=2838351712 I really don't know why this happens. It seems to happen randomly on different sort tests, but I wasn't able to reproduce it in a windows vm. Interestingly the stack overflow always happens after the expected result is printed to stdout (i.e. stdout always contains the expected result, but stderr contains a message about the stack overflow) Any suggestions on how to debug this are appreciated!

miDeb avatar Jun 16 '21 11:06 miDeb

Hello @miDeb, wanted to check what's going on here but the link points to a passing run instead of a failing one it seems? Could you please point me to where I can see failure logs?

siebenHeaven avatar Jun 21 '21 15:06 siebenHeaven

Thanks, I must have pasted the wrong link. Here's a failing run: https://github.com/uutils/coreutils/pull/2443/checks.

miDeb avatar Jun 21 '21 15:06 miDeb

Thanks, taking a look. I'll try to see if I can reproduce locally and report back.

siebenHeaven avatar Jun 21 '21 15:06 siebenHeaven

Could not reproduce the stack-overflow so far in a couple of runs, Hitting this for couple of sort tests though (with or without grcov related steps)

stdout =
 stderr = sort: Access is denied. (os error 5) at path "C:\\windows\\uutils_sortDg6kGW"
', tests\common\util.rs:160:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

    test_sort::test_buffer_sizes
    test_sort::test_compress_fail
    test_sort::test_merge_batch_size
    test_sort::test_merge_batches

(Note this is consistent locally for these tests)

siebenHeaven avatar Jun 21 '21 16:06 siebenHeaven

Thanks, I can actually reproduce that in a VM. I'll take a look (weird that it doesn't fail on CI though)

miDeb avatar Jun 21 '21 17:06 miDeb

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 20 '23 04:01 stale[bot]