-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Go >=1.23.3 crash due to running hook in vfork (#2989)
* asm glue fixed on x64 * Changelog * integration test * fmt * Comment style
- Loading branch information
Showing
6 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed panic when Go >=1.23.3 verifies pidfd support on Linux. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module issue2988 | ||
|
||
go 1.23.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
_ "net" | ||
"os" | ||
) | ||
|
||
func main() { | ||
_, err := os.FindProcess(os.Getpid()) | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#![feature(assert_matches)] | ||
#![warn(clippy::indexing_slicing)] | ||
use std::{path::Path, time::Duration}; | ||
|
||
use rstest::rstest; | ||
|
||
mod common; | ||
|
||
pub use common::*; | ||
|
||
/// Verify that issue [#2988](https://github.com/metalbear-co/mirrord/issues/2988) is fixed. | ||
#[rstest] | ||
#[tokio::test] | ||
#[timeout(Duration::from_secs(60))] | ||
async fn test_issue2988( | ||
#[values(Application::Go23Issue2988)] application: Application, | ||
dylib_path: &Path, | ||
) { | ||
let (mut test_process, _intproxy) = application | ||
.start_process_with_layer(dylib_path, vec![], None) | ||
.await; | ||
test_process.wait_assert_success().await; | ||
} |