Emacs dired problem triggered by NPTL-enabled glibc
David Mosberger
davidm@napali.hpl.hp.com
Mon Dec 29 23:33:00 GMT 2003
>>>>> On Tue, 23 Dec 2003 15:07:38 -0800, Roland McGrath <roland@redhat.com> said:
>> Thanks, but I must still be missing something. setrlimit() is
>> perfectly happy to set a non-page-size-aligned limit, so I don't
>> understand how the code in init.c could succeed if Emacs were to
>> set a limit that's greater than PTHREAD_STACK_MIN, but not
>> page-aligned.
Roland> You are correct. I've added a test case that creates the
Roland> same situation (just by doing "ulimit -s 1023" before
Roland> running a test binary). It hits the assert as well.
Roland> (Production builds won't see this since they define NDEBUG.)
Roland> I made the initializer round the value taken from getrlimit
Roland> up to page size.
Sounds great.
Thanks!
--david
More information about the Libc-hacker
mailing list