[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343853: Bug in glibc: setrlimit



On Mon, Dec 19, 2005 at 01:54:52AM -0500, Gene Cooperman wrote:
> Perhaps my description was not clear enough, but this would be a very
> strange feature.  When setrlimit() is called in the original process
> as specified, then after that, pthread_create() continues to succeed
> in the original process.  _However_, if the original process creates
> a child process, and if the child process calls pthread_create(),
> then pthread_create() will fail with a non-zero error code.

Yes, that was what I meant by "this happens during program
initialization": glibc calls getrlimit() before main() to set the
default stack size, which then does not change for the life of the
program.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: