Opened 11 years ago

Last modified 11 years ago

#38999 closed defect

base/src/pextlib1.0/tracelib.c setrlimit failure — at Initial Version

Reported by: ajdudman Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.3
Keywords: Cc: cal@…
Port:

Description

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 (2)

Changed 11 years ago by ajdudman

Attachment: portsuvt added

log showing setrlimit warning

Changed 11 years ago by ajdudman

Attachment: p added

setrlimit patch for tracelib.c

Note: See TracTickets for help on using tickets.