swift icon indicating copy to clipboard operation
swift copied to clipboard

[Backtracing][Linux] Include declarations for gettid() and tgkill().

Open al45tair opened this issue 1 year ago • 4 comments

Older glibc doesn't include these. Nor does Musl, it seems. The previous fix put the gettid() declaration too far down the file.

rdar://110417355

al45tair avatar Jun 09 '23 08:06 al45tair

Explanation: The previous fix was right but in the wrong place in the file so we still had the problem. Also, @MaxDesiatov pointed out a problem with Musl which will probably also affect older glibc, so fix that at the same time. Risk: Low. The code change only affects Linux. Original PR: #66486 Reviewed by: @MaxDesiatov Resolves: rdar://110417355 Tests: This fixes a Linux nightly build failure on platforms with older glibc.

al45tair avatar Jun 09 '23 08:06 al45tair

@swift-ci Please test

al45tair avatar Jun 09 '23 08:06 al45tair

@swift-ci test windows

MaxDesiatov avatar Jun 09 '23 12:06 MaxDesiatov

@swift-ci Please test Windows platform

al45tair avatar Jun 09 '23 15:06 al45tair