Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269650 - app-text/po4a-0.32-r1 hangs at 100% CPU if output of emerge is redirected
Summary: app-text/po4a-0.32-r1 hangs at 100% CPU if output of emerge is redirected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on: 369011
Blocks: 275268
  Show dependency tree
 
Reported: 2009-05-13 05:37 UTC by Andreas Schoelver
Modified: 2011-05-29 08:05 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.19 KB, text/plain)
2009-05-13 07:39 UTC, Sebastian Luther (few)
Details
fix-io-capture-0.36.patch (fix-io-capture-0.36.patch,788 bytes, patch)
2009-09-04 19:18 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details | Diff
Modified ebuild (po4a-0.36.ebuild,1.06 KB, text/plain)
2009-09-04 19:19 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schoelver 2009-05-13 05:37:37 UTC
I redirect outputs of emerge to a file.
first steps of ebuild are quickly done.
last message written to logfile is 'X Translate binary manpages to ca'.
CPU consumption increases to 100%.
over time also memory consumption increases.
after 12 hours the amount of memory used by the build process reached 1.2 GB.
I had to stop emerge using CTRL-C.
after some investigations doing a private build (unpacked src; 
ran 'make' (which created new perl script 'Build'); ran ./Build), which succeeded.

tried emerge again but w/o output redirection - succeeded.
removed po4a and emerged again w/ output redirection: hung again.
final emerge w/o output redirection succeeded again.

I guess that issues 257741 and 219889 might have similar problems.


Reproducible: Always

Steps to Reproduce:
1. emerge po4a > po4a.log 2>&1


Actual Results:  
hangs with 100% CPU (maybe only until out-of-memory)

Expected Results:  
ebuild should work too if output redirection is used

installed version of perl is 5.8.8-r5
installed version of perl-Module-Build is 0.28.08
Comment 1 Sebastian Luther (few) 2009-05-13 07:39:41 UTC
Created attachment 191127 [details]
build.log

Confirmed on amd64. Works without redirection, hangs with redirection.
Comment 2 Zac Medico gentoo-dev 2009-07-02 01:12:06 UTC
It's the perl process that hangs, not emerge.
Comment 3 Sebastian Pipping gentoo-dev 2009-07-25 21:47:36 UTC
for me it hangs at

  X Translate binary manpages to pl

without redirection.  not sure if this problem is related.  x86 here.
Comment 4 Mihai Moldovan 2009-08-31 15:04:24 UTC
(In reply to comment #3)
> for me it hangs at
> 
>   X Translate binary manpages to pl
> 
> without redirection.  not sure if this problem is related.  x86 here.
> 

Hi,

assuming you are using paludis, this is the same problem, yeah. :)

Best regards,


Mihai
Comment 5 fatty 2009-09-02 17:56:22 UTC
No solution yet?

I have the same problem with paludis and x86 and wonder how I can install dpkg now...
Comment 6 Sebastian Pipping gentoo-dev 2009-09-02 18:30:44 UTC
Are there any know workarounds?

I guess we're hitting lack-of-time atm mainly, me included.
Stephan, do you have time to help out with further research?
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-09-04 19:18:16 UTC
Created attachment 203139 [details, diff]
fix-io-capture-0.36.patch

After applying the attached patch by extending PATCHES to read 

PATCHES=( 
	"${FILESDIR}/0.36-3-debian.patches"
	"${FILESDIR}/fix-io-capture-${PV}.patch"
)

It ceases to fail on me during build, and instead progresses nicely and passes the test suite.

Why exactly It fails however, is still a bewilderment.
Comment 8 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-09-04 19:19:13 UTC
Created attachment 203140 [details]
Modified ebuild
Comment 9 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-09-04 19:24:55 UTC
( nb. tests performed on perl5.10.1 , you're experience may differ, but I don't think anything reasonable in perl changes since 5.8.8 would translate from 12 hours to : 

app-text/po4a: Sat Sep  5 07:15:36 2009: 1 minute, 11 seconds

)
Comment 10 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2009-09-04 19:36:56 UTC
Also to note, an alternative of system(@list) does *NOT* work either. open(-|) appears to be the only thing that works.
Comment 11 Torsten Veller (RETIRED) gentoo-dev 2009-09-05 07:05:27 UTC
0.36.4 with the patch is in the tree.

I am closing this bug and leave the tracker bug open until we find the real cause
Comment 12 Jonas Fietz 2009-09-22 10:17:09 UTC
Hi, is there a way to create a patch for 0.32? (The workaround for me as a paludis-user was to temporarily switch back to emerge)
The 0.36.4 depends (indirectly) on perl5.10.1, which is not even in the tree, and I really don't need another overlay :)
Thanks