bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 14/21] getdtablesize: do not use getrlimit() on OS/2 kLIBC


From: Paul Eggert
Subject: Re: [PATCH 14/21] getdtablesize: do not use getrlimit() on OS/2 kLIBC
Date: Sun, 30 Nov 2014 11:31:09 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

KO Myung-Hun wrote:
getrlimit() was implemented in kLIBC and works well. Strangely,
however, it crashes due to 'stack overflow' or 'SIGSEGV' when used in
GNU M4.

This needs explanation in the form of a brief comment in the source code.

Also, I don't see how it can be said to work "well" if it crashes. Most likely, kLIBC getrlimit is buggy, or is being compiled with the wrong options, or something like that. The implementation of kLIBC getrlimit is incorrectly attempting to stuff a 32-bit unsigned value into a 32-bit signed variable, and it could be something as simple as that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]