View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0000211 | file | General | public | 2020-11-17 08:13 | 2020-12-17 20:45 | 
| Reporter | Albrecht | Assigned To | christos | ||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | resolved | Resolution | fixed | ||
| Platform | Linux | OS | Debian | OS Version | Bullseye | 
| Product Version | 5.38 | ||||
| Fixed in Version | 5.40 | ||||
| Summary | 0000211: running file terminates with “ERROR: error reading” | ||||
| Description | Running file on the attached sample file terminates with albrecht@deneb:/tmp$ file file-error-sample ; echo $? file-error-sample: ERROR: error reading (Invalid argument) 1 Guessing the MIME type is successful, though: albrecht@deneb:/tmp$ file --mime-type file-error-sample ; echo $? file-error-sample: application/x-executable 0  | ||||
| Steps To Reproduce | 1. extract the attached archive 2. run commands as above  | ||||
| Tags | No tags attached. | ||||
| 
		 | 
	|
| 
		 | 
	
	I can't reproduce it: [6:46pm] 109>./file -m ../magic/magic.mgc error_sample.zip error_sample.zip: Zip archive data, at least v2.0 to extract [6:46pm] 110>./file -v file-5.39 magic file from /usr/local/share/misc/magic [6:49pm] 115>/usr/bin/file -v file-5.38 magic file from /etc/magic:/usr/share/misc/magic [6:49pm] 116>/usr/bin/file error_sample.zip error_sample.zip: Zip archive data, at least v2.0 to extract [6:49pm] 117>uname -a Linux uranus 5.4.0-56-generic 0000062-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux  | 
| 
		 | 
	
	Umm, sorry, please do not use the ZIP itself, but its extracted contents – I didn't want to post an executable as plain file.  I.e. something like: albrecht@deneb:/tmp$ unzip file-error-sample.zip Archive: file-error-sample.zip inflating: file-error-sample albrecht@deneb:/tmp$ file file-error-sample file-error-sample: ERROR: error reading (Invalid argument)  | 
| 
		 | 
	
	Fixed in HEAD: ./file -m ../magic/magic.mgc file-error-sample  file-error-sample: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), can't read section at -1, missing section headers at 7136  | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2020-11-17 08:13 | Albrecht | New Issue | |
| 2020-11-17 08:13 | Albrecht | File Added: file-error-sample.zip | |
| 2020-12-16 23:45 | christos | Assigned To | => christos | 
| 2020-12-16 23:45 | christos | Status | new => assigned | 
| 2020-12-16 23:50 | christos | Status | assigned => feedback | 
| 2020-12-16 23:50 | christos | Note Added: 0003507 | |
| 2020-12-17 08:01 | Albrecht | Note Added: 0003512 | |
| 2020-12-17 08:01 | Albrecht | Status | feedback => assigned | 
| 2020-12-17 20:45 | christos | Status | assigned => resolved | 
| 2020-12-17 20:45 | christos | Resolution | open => fixed | 
| 2020-12-17 20:45 | christos | Fixed in Version | => 5.40 | 
| 2020-12-17 20:45 | christos | Note Added: 0003513 |