PIE breaks detection of available stack depth with getrlimit?

Tom Lane tgl at redhat.com
Wed Apr 17 03:40:19 UTC 2013


John Reiser <jreiser at bitwagon.com> writes:
>> If you can write a short program that demonstrates the failure,
>> say by comparing getrlimit(RLIMIT_STACK) to the results of
>> an internal "cat /proc/self/maps", then that's a kernel bug.

> [ proposed test program ]

That program doesn't fail for me either, but Postgres definitely does;
probably the problem is dependent on having a bunch of shlibs loaded,
or having a SysV-style shared memory segment, or some other odd little
detail.  I adapted your program into a debugging-printout patch for
Postgres and filed the results as bz #952946.

			regards, tom lane


More information about the devel mailing list