diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:32 +0000 |
commit | 4547b622d8d29df964fa2914213088b148c498fc (patch) | |
tree | 9fc6b25f3c3add6b745be9a2400a6e96140046e9 /vendor/stacker/src | |
parent | Releasing progress-linux version 1.66.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-4547b622d8d29df964fa2914213088b148c498fc.tar.xz rustc-4547b622d8d29df964fa2914213088b148c498fc.zip |
Merging upstream version 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 } |