File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ jobs:
146
146
- name : install go
147
147
uses : actions/setup-go@v5
148
148
with :
149
- go-version : 1.x # Latest stable
149
+ go-version : 1.21. x # TODO: switch to 1.x (latest stable) once Go 1.22 vs glibc issue is fixed.
150
150
151
151
- name : unit test
152
152
env :
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ > ** NOTE** : runc currently will not work properly when compiled with Go 1.22 or
10
+ > newer. This is due to some unfortunate glibc behaviour that Go 1.22
11
+ > exacerbates in a way that results in containers not being able to start on
12
+ > some systems. [ See this issue for more information.] [ runc-4233 ] .
13
+
9
14
### Deprecated
10
15
11
16
* ` runc ` option ` --criu ` is now ignored (with a warning), and the option will
@@ -47,6 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
47
52
* Remove tun/tap from the default device rules. (#3468 )
48
53
* specconv: avoid mapping "acl" to MS_POSIXACL. (#3739 )
49
54
55
+ [ runc-4233 ] : https://github.com/opencontainers/runc/issues/4233
56
+
50
57
## [ 1.1.8] - 2023-07-20
51
58
52
59
> 海纳百川 有容乃大
Original file line number Diff line number Diff line change
1
+ //go:build go1.22
2
+
3
+ package nsenter
4
+
5
+ /*
6
+ // We know for sure that glibc has issues with pthread_self() when called from
7
+ // Go after nsenter has run. This is likely a more general problem with how we
8
+ // ignore the rules in signal-safety(7), and so it's possible musl will also
9
+ // have issues, but as this is just a hotfix let's only block glibc builds.
10
+ #include <features.h>
11
+ #ifdef __GLIBC__
12
+ # error "runc does not currently work properly with Go >=1.22. See <https://github.com/opencontainers/runc/issues/4233>."
13
+ #endif
14
+ */
15
+ import "C"
You can’t perform that action at this time.
0 commit comments