Opened 15 years ago
Closed 15 years ago
#158 closed defect (fixed)
apt uses up all memory and errors out during postinstall
Reported by: | maphew | Owned by: | |
---|---|---|---|
Priority: | major | Component: | Installer |
Version: | Keywords: | apt | |
Cc: |
Description
Installing sip with apt the computer appears to hang during postinstall at the textreplace stage. Cpu usage is low, around 12%, and python.exe memory use climbs slowly but inevitably until it errors out tens of minutes later.
C:\>apt install sip D:\o4w\cache/http%3a%2f%2fdownload.osgeo.org%2fosgeo4w/./release/python/sip/sip- 4.8.2-2.tar.bz2 76266867c6089ccea2e58edbba6db3b7 sip-4.8.2-2.tar.bz2 - remote 76266867c6089ccea2e58edbba6db3b7 sip-4.8.2-2.tar.bz2 - local installing sip 4.8.2-2 C:\OSGeo4W>set OSGEO4W_ROOT=C:\\OSGeo4W C:\OSGeo4W>textreplace -std -t apps\Python25\Lib\site-packages\sipconfig.py Traceback (most recent call last): File "d:\code\o4w\apt\apt.py", line 1064, in <module> __main__.__dict__[command] () File "d:\code\o4w\apt\apt.py", line 166, in install do_install () File "d:\code\o4w\apt\apt.py", line 427, in do_install post_install () File "d:\code\o4w\apt\apt.py", line 841, in post_install lst.append(out) MemoryError
I've encountered this once or twice before but didn't pause to document it. I don't recall if it's always with the same package, or even always textreplace (a vague recollection of dll-dupes). Running textreplace manually on sipconfig.py.tmpl from o4w shell returns in seconds.
Host system is win7x64. Same results with apt from svn and package.
Change History (1)
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | textreplace memory error → apt uses up all memory and errors out during postinstall |
I was not reading the output carefully enough, textreplace was the last SUCCESSFUL command. The real problem was infinite regex recursion in
def postinstall()
. Fixed in r1156.