Skip to content

Commit 4a115eb

Browse files
authored
Merge pull request docker-library#3813 from JayH5/test-python-stack-size
tests/python: Add a test for stack size segfault on Alpine
2 parents 76c0107 + b6c5ab4 commit 4a115eb

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ imageTests+=(
160160
python-imports
161161
python-pip-requests-ssl
162162
python-sqlite3
163+
python-stack-size
163164
'
164165
[rabbitmq]='
165166
rabbitmq-basics
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import threading
2+
import sys
3+
4+
5+
def fun(i):
6+
try:
7+
fun(i+1)
8+
except:
9+
sys.exit(0)
10+
11+
12+
t = threading.Thread(target=fun, args=[1])
13+
t.start()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../run-python-in-container.sh

0 commit comments

Comments
 (0)