#38999 closed defect (fixed)
base/src/pextlib1.0/tracelib.c setrlimit failure — at Version 5
Reported by: | ajdudman | Owned by: | cal@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: |
Description (last modified by mf2k (Frank Schima))
Say OSX is 10.8.3 and open files are:
ulimit -Sn 10240 ulimit -Hn 12288
Then the current code will have rl.rlim_max as 12288, which is greater than OPEN_MAX. This produces an error in setrlimit() at line 438. See the attached log. OSX's setrlimit(2) is tricky and recently its behavior has changed. The manual page gives highlights. This problem is analogous to closed, fixed ticket:35612 for bsdmake and the solution is similar.
Change History (7)
Changed 11 years ago by ajdudman
comment:1 Changed 11 years ago by ajdudman
Say OSX is 10.8.3 and open files are:
ulimit -Sn 10240 ulimit -Hn 12288
The current code uses RLIM_INFINITY. This produces an error in setrlimit() at line 438. See the attached log. OSX's setrlimit(2) is tricky and recently its behavior has changed. The manual page gives highlights. This problem is like closed, fixed Ticket 35612 for bsdmake and the solution is similar.
comment:2 Changed 11 years ago by ajdudman
Sorry for the ugly ticket. I am having trouble editing the description. Please strike out the first sentence of the second paragraph. That applied to the old code for bsdmake port and is not valid here.
comment:3 Changed 11 years ago by neverpanic (Clemens Lang)
Cc: | cal@… removed |
---|---|
Owner: | changed from macports-tickets@… to cal@… |
Status: | new → assigned |
Thanks, r105748.
comment:4 Changed 11 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I wonder why I never saw this message, though.
comment:5 Changed 11 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
log showing setrlimit warning