-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
fs::metadata() crashes on FreeBSD 12 due to layout change in stat.h #42681
Copy link
Copy link
Closed
rust-lang/libc
#937Labels
C-bugCategory: This is a bug.Category: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-freebsdOperating system: FreeBSDOperating system: FreeBSDP-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-freebsdOperating system: FreeBSDOperating system: FreeBSDP-highHigh priorityHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The layout of
struct statused to be this in FreeBSD 11, in FreeBSD 12 it's now this. This causes the FreeBSD-specific implementation ofstd::fs::metadata()to crash for 1.18 and nightly as of 17/06/15, as it's stack frame get's boiled up.Can be reproduced via
Downstream this appeared in alacritty/alacritty#618