bfr hangs at EOF when --speedcap is used

Bug #137699 reported by Ville Laurikari
6
Affects Status Importance Assigned to Milestone
bfr (Ubuntu)
Invalid
Low
Unassigned
Declined for Gutsy by Henrik Nilsen Omma
Nominated for Hardy by Ville Laurikari

Bug Description

Binary package hint: bfr

This should be easy to reproduce. Just pipe something through bfr and use the --speedcap option. At least on my system, bfr consistently hangs at end of file and doesn't exit.

I analyzed the problem and made a patch already a couple of years ago and sent a patch to the upstream maintainer (Mark Glines). I got no response, so maybe the patch should just be included in Ubuntu?

Here's the analysis: When writing from the buffer catches up with the reading there are zero bytes left in the buffer. This causes `mystate' to be set to RO. Next EOF is read -- at this point bfr should just quit since everything has been written and there is no more input. Instead, at least when --speedcap is used, it will just set state to WO and proceeds to wait forever for something to appear in the buffer.

Tags: patch
Revision history for this message
Ville Laurikari (ville-laurikari) wrote :
Daniel T Chen (crimsun)
Changed in bfr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
David Futcher (bobbo) wrote :

bfr has been removed from Ubuntu since Karmic. I am therefore going to close this bug. If bfr re-appers at any point and still exhibits this bug, please set the status back to 'New'. Thanks!

Changed in bfr (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.