Bug 251616 - portage hangs after tests run
Bug#: 251616 Product:  Portage Development Version: 2.2 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dev-portage@gentoo.org Reported By: pva@gentoo.org
Component: Core
URL: 
Summary: portage hangs after tests run
Keywords:  InSVN, REGRESSION
Status Whiteboard: 
Opened: 2008-12-19 12:46 0000
Description:   Opened: 2008-12-19 12:46 0000
This is really weird bug. After I've disabled failing tests in bzr tests pass
but then emerge process hangs after:

>>> Completed installing bzr-1.10-r1 into /vt/portage/tmp/portage/dev-util/bzr-1.10-r1/image/

hang... 100% cpu load.

------- Comment #1 From Peter Volkov 2008-12-19 12:51:46 0000 -------
Created an attachment (id=175862) [details]
bzr-1.10-r1.ebuild

to reproduce the problem run
FEATURES=test emerge -v bzr

I've tried to reduce number tests but failed: at some point I've reduced to 4
tests branches (by branches I mean blackbox.*, )test_http.* and so on - tests
having same beginning in their name) but then after I've tried to reduce to
two, emerge passes. When I back to 4 tests it stopped to hang too but when I
back to all tests it hangs.

------- Comment #2 From Peter Volkov 2008-12-19 12:55:43 0000 -------
And forgot to note. To avoid tests failures you need net-misc/curl-7.18.2 and
dev-python/pycurl-7.16.4... I have not checked if I disabled all tests for
newer versions of this libraries.

------- Comment #3 From Zac Medico 2008-12-19 21:42:06 0000 -------
Created an attachment (id=175901) [details]
remove unnecessary regex patterns that cause problems

The test suite uses \r to rewrite the same line thousands of times and this
triggers a performance issue in the regex patterns that are used to search the
build log for QA issues.

------- Comment #4 From Peter Volkov 2008-12-20 10:45:08 0000 -------
Thank you very much Zac. It works.

------- Comment #5 From Zac Medico 2008-12-20 22:30:55 0000 -------
This is fixed in 2.1.6.2 and 2.2_rc18.