tests/python: Add a test for stack size segfault
This commit is contained in:
parent
76c01078f0
commit
b6c5ab4eb7
|
|
@ -160,6 +160,7 @@ imageTests+=(
|
||||||
python-imports
|
python-imports
|
||||||
python-pip-requests-ssl
|
python-pip-requests-ssl
|
||||||
python-sqlite3
|
python-sqlite3
|
||||||
|
python-stack-size
|
||||||
'
|
'
|
||||||
[rabbitmq]='
|
[rabbitmq]='
|
||||||
rabbitmq-basics
|
rabbitmq-basics
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
import threading
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def fun(i):
|
||||||
|
try:
|
||||||
|
fun(i+1)
|
||||||
|
except:
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
t = threading.Thread(target=fun, args=[1])
|
||||||
|
t.start()
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../run-python-in-container.sh
|
||||||
Loading…
Reference in New Issue