diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:21 +0000 |
commit | 4e8199b572f2035b7749cba276ece3a26630d23e (patch) | |
tree | f09feeed6a0fe39d027b1908aa63ea6b35e4b631 /vendor/stacker/src | |
parent | Adding upstream version 1.66.0+dfsg1. (diff) | |
download | rustc-4e8199b572f2035b7749cba276ece3a26630d23e.tar.xz rustc-4e8199b572f2035b7749cba276ece3a26630d23e.zip |
Adding upstream version 1.67.1+dfsg1.upstream/1.67.1+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/stacker/src')
-rw-r--r-- | vendor/stacker/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/stacker/src/lib.rs b/vendor/stacker/src/lib.rs index 3c1d8891e..ec0a55f9d 100644 --- a/vendor/stacker/src/lib.rs +++ b/vendor/stacker/src/lib.rs @@ -164,7 +164,8 @@ psm_stack_manipulation! { 0 ); if new_stack == libc::MAP_FAILED { - panic!("unable to allocate stack") + let error = std::io::Error::last_os_error(); + panic!("allocating stack failed with: {}", error) } let guard = StackRestoreGuard { new_stack, @@ -191,8 +192,9 @@ psm_stack_manipulation! { -1 }; if result == -1 { + let error = std::io::Error::last_os_error(); drop(guard); - panic!("unable to set stack permissions") + panic!("setting stack permissions failed with: {}", error) } guard } |