Uh oh!
There was an error while loading. Please reload this page.
GH-51095: [CI][C++] Fix core file detection in run-test.sh - #51121
Conversation
pitrou
commented
Sep 1, 2026
This seems to fix #51095 for me but I'm not sure why. If this is just ignoring the error in case of a race condition, it means that in some cases the coredumps might not be detected. |
hiroyuki-sato
commented
Sep 1, 2026
It looks like I misunderstood which part needed to be fixed after looking at this error and the suggested change below it.
means The part I changed is related to files whose names start with I'll take another careful look. |
hiroyuki-sato
commented
Sep 2, 2026
@kou@pitrou Could you take a look again when you get a chance? Two of the three CI failures produced core files, so in a sense, it seems to be working as expected. ARM64 Ubuntu 22.04 C++ AMD64 Conda C++ AVX2 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kou
left a comment
There was a problem hiding this comment.
Could you call print_coredumps only when the test is failed?
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
hiroyuki-sato
commented
Sep 2, 2026
@kou Thank you for your review. Applied suggested change
Does this mean the following? if [ "$STATUS"-ne 0 ] ;then
print_coredumps
fi |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Wow. We never noticed this before. Do you think those were ignored silently @kou ? Edit: Ah, it's a |
Rationale for this change
In #50934,
findwas used instead of(ls /tmp | grep $PATTERN)to find core files in a ShellCheck-safe way, but using find can cause a race condition when files or directories under/tmpare removed by another process while find is scanning the directory.What changes are included in this PR?
This change uses shell globbing instead of find to avoid this issue.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.