Emacs dired problem triggered by NPTL-enabled glibc

Roland McGrath roland@redhat.com
Tue Dec 23 23:07:00 GMT 2003


> 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.

You are correct.  I've added a test case that creates the same situation
(just by doing "ulimit -s 1023" before running a test binary).  It hits the
assert as well.  (Production builds won't see this since they define NDEBUG.)

I made the initializer round the value taken from getrlimit up to page size.


Thanks,
Roland



More information about the Libc-hacker mailing list