[MacPorts] #22959: Too many open files error while doing a mass forced upgrade
#22959: Too many open files error while doing a mass forced upgrade -----------------------------------------+---------------------------------- Reporter: dave.evans55@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.1 Keywords: force upgrade | Port: -----------------------------------------+---------------------------------- I have 641 ports installed. I deleted all the inactive ports. I then ran a command to force upgrade them all with the +universal variant: script bigbuild.log sudo port -pdk upgrade --force installed +universal After a few hours of compilation an error occurred: ./libtool: cannot make pipe for command substitution: Too many open files I increased the ulimit(1) open files limit for the process from 256 to 10000 and ran the upgrade command again. While it was running I monitored the open files for the tclsh process using lsof: I noticed that there were a lot of instances of /opt/local/var/macports/receipts/file_map.db open. I counted them with: sudo lsof | grep -i tcl | grep receipts | wc -l and there were 272 instances of this file open. I think there is an open file leak in port. -- Ticket URL: <http://trac.macports.org/ticket/22959> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22959: Too many open files error while doing a mass forced upgrade -----------------------------------------+---------------------------------- Reporter: dave.evans55@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.1 Keywords: force upgrade | Port: -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Old description:
I have 641 ports installed.
I deleted all the inactive ports.
I then ran a command to force upgrade them all with the +universal variant:
script bigbuild.log sudo port -pdk upgrade --force installed +universal
After a few hours of compilation an error occurred:
./libtool: cannot make pipe for command substitution: Too many open files
I increased the ulimit(1) open files limit for the process from 256 to 10000 and ran the upgrade command again. While it was running I monitored the open files for the tclsh process using lsof:
I noticed that there were a lot of instances of
/opt/local/var/macports/receipts/file_map.db
open.
I counted them with:
sudo lsof | grep -i tcl | grep receipts | wc -l
and there were 272 instances of this file open.
I think there is an open file leak in port.
New description: I have 641 ports installed. I deleted all the inactive ports. I then ran a command to force upgrade them all with the +universal variant: {{{ script bigbuild.log sudo port -pdk upgrade --force installed +universal }}} After a few hours of compilation an error occurred: {{{ ./libtool: cannot make pipe for command substitution: Too many open files }}} I increased the ulimit(1) open files limit for the process from 256 to 10000 and ran the upgrade command again. While it was running I monitored the open files for the tclsh process using lsof: I noticed that there were a lot of instances of /opt/local/var/macports/receipts/file_map.db open. I counted them with: {{{ sudo lsof | grep -i tcl | grep receipts | wc -l }}} and there were 272 instances of this file open. I think there is an open file leak in port. -- -- Ticket URL: <http://trac.macports.org/ticket/22959#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22959: Too many open files error while doing a mass forced upgrade ------------------------------------------+--------------------------------- Reporter: dave.evans55@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.2 Component: base | Version: 1.8.1 Resolution: fixed | Keywords: Port: | ------------------------------------------+--------------------------------- Changes (by jmr@…): * keywords: force upgrade => * status: new => closed * resolution: => fixed * milestone: => MacPorts 1.8.2 Comment: Fixed in trunk in r61770, merged to branch in r61771. -- Ticket URL: <http://trac.macports.org/ticket/22959#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22959: Too many open files error while doing a mass forced upgrade -----------------------------+-------------------------------- Reporter: dave.evans55@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.2 Component: base | Version: 1.8.1 Resolution: fixed | Keywords: Port: | -----------------------------+-------------------------------- Comment (by lagrave+bugs+macosforge.org@…): This happened to me just now when running the restore_ports.tcl script to reinstall my ports after some other problems. -- Ticket URL: <https://trac.macports.org/ticket/22959#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts