This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Thomas.Smith, dmalcolm, doko, ezio.melotti, keescook, liang, neologix, pitrou, tim.peters, vstinner
Date 2010-04-21.21:17:08
SpamBayes Score 1.1451567e-10
Marked as misclassified No
Message-id <1271884630.6.0.707296629059.issue7332@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a short shell script to reproduce the stack overflow:
 - create 100 Python modules: stack1 imports stack2, stack2 imports stack3, ...., and stack100 prints "hello"
 - each module calls os.system("cat /proc/%s/maps|grep stack" % os.getpid()) to display the stack map
 - set the max stack size to 128 KB

The stack starts with 86016 bytes and it crashs at import depth 6.

I don't know if my script is realistic (128 KB stack), but at least it shows a crash.

I think that most programs crash with small stack.
History
Date User Action Args
2010-04-21 21:17:10vstinnersetrecipients: + vstinner, tim.peters, doko, pitrou, ezio.melotti, dmalcolm, liang, Thomas.Smith, neologix, keescook
2010-04-21 21:17:10vstinnersetmessageid: <1271884630.6.0.707296629059.issue7332@psf.upfronthosting.co.za>
2010-04-21 21:17:08vstinnerlinkissue7332 messages
2010-04-21 21:17:08vstinnercreate