Bug 316501 - file hugging cpu
Summary: file hugging cpu
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: rawhide
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-03 07:41 UTC by Hubert Lin
Modified: 2008-02-03 10:32 UTC (History)
0 users

Fixed In Version: 4.21-5.fc8
Clone Of:
Environment:
Last Closed: 2008-02-02 08:59:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
the file that fails the *file* util (880.41 KB, application/x-executable)
2007-10-03 07:41 UTC, Hubert Lin
no flags Details

Description Hubert Lin 2007-10-03 07:41:58 UTC
Description of problem:

While testing the file type with the file attached, the process hugs the cpu and
never returned.

Version-Release number of selected component (if applicable):
file-4.21-1.fc6

How reproducible:
Always.

Steps to Reproduce:
1. file e5f5fdb10c8bb35d3219a87516147e15.exe
  
Actual results:
The process never exits, which CPU hugging.

Expected results:
Shows file type info.

Additional info:
The file size attached is less than 1 MB, and is infected by
Trojan.Downloader.Small-1444 (scanned by ClamAV).

Comment 1 Hubert Lin 2007-10-03 07:41:59 UTC
Created attachment 214381 [details]
the file that fails the *file* util

Comment 2 Tomas Smetana 2007-12-11 08:10:55 UTC
Reproduced.  I'll take a look at it.  Thanks for reporting.

Comment 3 Tomas Smetana 2007-12-11 08:11:48 UTC
And changed version to rawhide, so the bug doesn't get closed automatically.

Comment 4 Tomas Smetana 2008-01-16 12:36:44 UTC
The process exits -- it's only extremely slow:
e5f5fdb10c8bb35d3219a87516147e15.exe: PE32 executable for MS Windows (GUI) Intel
80386 32-bit

The problem is in the regexec function provided by glibc.  Unfortunately I can't
reproduce the problem anywhere else but in the file binary.  I've tried to take
the exect regular expression that seems to cause the problem but no luck.  If I
reproduce it I may file a bug on glibc.  If not, I'll try to rewrite the regular
expression to it's equivalent and see whether that helps.

Comment 5 Tomas Smetana 2008-01-29 08:46:06 UTC
Fixed in 4.23-1.fc9.  Will push also update for F-8.

Comment 6 Fedora Update System 2008-01-29 09:15:39 UTC
file-4.21-5.fc8 has been submitted as an update for Fedora 8

Comment 7 Fedora Update System 2008-02-02 08:59:44 UTC
file-4.21-5.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Hubert Lin 2008-02-03 10:32:29 UTC
Just verified it's fixed in file-4.21-5.fc8.
Thanks.


Note You need to log in before you can comment on or make changes to this bug.