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 neologix
Recipients Thomas.Smith, dmalcolm, ezio.melotti, liang, neologix, pitrou, tim.peters
Date 2010-04-17.16:35:25
SpamBayes Score 0.0
Marked as misclassified No
Message-id <1271522130.61.0.0301094443447.issue7332@psf.upfronthosting.co.za>
In-reply-to
Content
> It looks a bit strange for this bug to happen, though. Does Ubuntu use a small stack size?

There are other possible reasons:
- the programs that crash (or the libraries they're using) use the stack a lot
- somehow, pthread_attr_setstacksize is called and set to a reduced thread stack size
- notice that this is reported on x86_64 architectures, and stack usage is increased on 64 bits

Since I don't have an Ubuntu box, it would be nice if one of the reporters could:
- return the result of "ulimit -s" on their box
- call "ulimit -s unlimited", and see if the bug goes away
- check that the attached patch marshal_stack.diff solves this
- return the result of "ltrace -e pthread_attr_setstacksize <command used to start program>"

> A small benchmark shows no difference in startup time when disabling the stack buffer. (this is on Linux: of course, the problem might be that the glibc is heavily optimized)

Yeap, there as some crappy systems out there (no name :-), that's why it would be nice to have some feedback and small benchmarks on various platforms. Anyway, even if compiled files are small most of the time, I'm not sure that this "let's copy the file to the stack/heap" approcah is optimal, and maybe mmap would be worth considering if we find that the overhead is not negligible (I haven't looked at the code in detail, so maybe it's not possible to use in this case).
History
Date User Action Args
2010-04-17 16:35:31neologixsetrecipients: + neologix, tim.peters, pitrou, ezio.melotti, dmalcolm, liang, Thomas.Smith
2010-04-17 16:35:30neologixsetmessageid: <1271522130.61.0.0301094443447.issue7332@psf.upfronthosting.co.za>
2010-04-17 16:35:28neologixlinkissue7332 messages
2010-04-17 16:35:27neologixcreate