Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Commitf53d9f2
authored
The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.
1 parent80d20b9 commitf53d9f2
File tree
3 files changed
+77
-14
lines changed- Lib/test
- Modules
- Python
3 files changed
+77
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1147 | 1148 | | |
1148 | 1149 | | |
1149 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1150 | 1199 | | |
1151 | 1200 | | |
1152 | 1201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
1763 | | - | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
1764 | 1769 | | |
1765 | 1770 | | |
1766 | 1771 | | |
| |||
2079 | 2084 | | |
2080 | 2085 | | |
2081 | 2086 | | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
2085 | 2090 | | |
2086 | 2091 | | |
2087 | 2092 | | |
| |||
2096 | 2101 | | |
2097 | 2102 | | |
2098 | 2103 | | |
| 2104 | + | |
2099 | 2105 | | |
2100 | 2106 | | |
2101 | 2107 | | |
| |||
2146 | 2152 | | |
2147 | 2153 | | |
2148 | 2154 | | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
2152 | 2158 | | |
2153 | 2159 | | |
2154 | 2160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
1213 | 1214 | | |
1214 | 1215 | | |
1215 | 1216 | | |
1216 | | - | |
1217 | | - | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1218 | 1225 | | |
1219 | 1226 | | |
1220 | 1227 | | |
| |||
1223 | 1230 | | |
1224 | 1231 | | |
1225 | 1232 | | |
1226 | | - | |
| 1233 | + | |
1227 | 1234 | | |
| 1235 | + | |
1228 | 1236 | | |
1229 | 1237 | | |
1230 | 1238 | | |
| |||
0 commit comments
Comments
(0)