Long run time and high cpu usage when trying to determine type of file padded with 'LF'-s

Bug #953971 reported by Alexander
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
file (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm not sure that this is actually a bug. Maybe this is normal behavior?..

Steps to reproduce:

1) create some empty file padded with 'LF's or 'CRLF's only, about 8kb or more in size
2) $ file test-file-LF

On my machine (AMD Athlon(tm) 64 Processor 3000+) with 32kb test file it tooks about 45 seconds:

$ time file test-file-LF
test: ASCII text

real 0m45.917s
user 0m41.903s
sys 0m0.420s

Revision history for this message
Ken Sharp (kennybobs) wrote :

$ du -h LF.txt ; time file LF.txt
44K LF.txt
LF.txt: ASCII text

real 0m53.395s
user 0m53.320s
sys 0m0.010s

Changed in file (Ubuntu):
status: New → Confirmed
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.