Opened 19 years ago

Closed 19 years ago

#5898 closed defect (fixed)

BUG: "port -a upgrade" finally aborts with memory error

Reported by: schneck@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 1.0
Keywords: Cc: olegb@…
Port:

Description

Even though I have no outdated ports, "port -a upgrade" runs forever and seems to use a lot of resources, and finally ends with an abort. If I run "port -dva upgrade", then after 188000 or so lines of output, the end of the output is:

DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendar win.org_dpupdate_dports/lang/perl5.8 DEBUG: epoch: in tree: 0 installed: 0 DEBUG: perl5.8 5.8.7_0 exists in the ports tree DEBUG: perl5.8 5.8.7_0 is installed DEBUG: No need to upgrade! perl5.8 5.8.7_0 >= perl5.8 5.8.7_0 DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendar win.org_dpupdate_dports/devel/gettext DEBUG: epoch: in tree: 0 installed: 0 DEBUG: gettext 0.14.5_0 exists in the ports tree DEBUG: gettext 0.14.5_0 is installed DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendar win.org_dpupdate_dports/textproc/libiconv DEBUG: epoch: in tree: 0 installed: 0 DEBUG: libiconv 1.10_1 exists in the ports tree DEBUG: libiconv 1.10_1 is installed DEBUG: No need to upgrade! libiconv 1.10_1 >= libiconv 1.10_1 DEBUG: No need to upgrade! gettext 0.14.5_0 >= gettext 0.14.5_0 DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendar win.org_dpupdate_dports/perl/p5-xml-parser DEBUG: epoch: in tree: 0 installed: 0 DEBUG: p5-xml-parser 2.34_3 exists in the ports tree DEBUG: p5-xml-parser 2.34_3 is installed DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendar win.org_dpupdate_dports/lang/perl5.8 tclsh(242,0xa000ed68) malloc: * vm_allocate(size=520192) failed (error code=3) tclsh(242,0xa000ed68) malloc: * error: can't allocate region tclsh(242,0xa000ed68) malloc: * set a breakpoint in szone_error to debug unable to alloc 518111 bytes Abort trap

I also note that this particular line:

DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/lang/perl5.8

occured no less that 371 times in the output. I only have 104 ports installed!

Robert

Change History (4)

comment:1 Changed 19 years ago by mww@…

Summary: "port -a upgrade" finally aborts with memory errorBUG: "port -a upgrade" finally aborts with memory error

comment:2 Changed 19 years ago by blb@…

dependson: 6220

Noting bug 6220 as that patch may fix this issue.

comment:3 Changed 19 years ago by olegb@…

Cc: olegb@… added

Could you check if the new optimization of the upgrade code helps - it might, it might not. upgrade -a *is* a heavy lady.

(adding /me as CC)

comment:4 Changed 19 years ago by schneck@…

Resolution: fixed
Status: newclosed

This now seems to be working reasonably well.

Note: See TracTickets for help on using tickets.