Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1685217 - [abrt] file: file_buffer(): file killed by SIGABRT
Summary: [abrt] file: file_buffer(): file killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fad2b63c4685e99f9987d0b3964...
: 1699330 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 17:00 UTC by James Olson
Modified: 2019-09-03 21:17 UTC (History)
8 users (show)

Fixed In Version: file-5.37-2.fc31 file-5.36-3.fc30 file-5.34-14.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-19 22:45:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Music concert announcement (57.71 KB, image/jpeg)
2019-03-05 01:25 UTC, James Olson
no flags Details

Description James Olson 2019-03-04 17:00:39 UTC
Description of problem:
Attempted to see if a jpg file which wouldn't display in Firefox (says errors inside the file) was really some other file type e.g. png under the hood.
I figured the filename extension was wrong. The file command crashed instead:

Ran from the command line as a regular user:
lansdale:~> file /run/media/jolson/USB20FD/TD_QEE.jpg 
free(): double free detected in tcache 2
Aborted (core dumped)
lansdale:~> 

I can upload the (presumably damaged) file, just need a ticket# to attach it if I'm allowed.

Version-Release number of selected component:
file-5.34-12.fc29

Additional info:
reporter:       libreport-2.10.0
backtrace_rating: 4
cmdline:        file TD_QEE.jpg
crash_function: file_buffer
executable:     /usr/bin/file
journald_cursor: s=4a874f4148344157983c223b90ff49a7;i=89846;b=df74b94391a741349445af01a7353c1a;m=1d315a33e;t=583472794a4f5;x=f6406226920701dc
kernel:         4.20.13-200.fc29.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            5100

Truncated backtrace:
Thread no. 1 (3 frames)
 #5 file_buffer at funcs.c:336
 #6 file_or_fd at magic.c:521
 #7 process at file.c:543

Comment 1 James Olson 2019-03-04 17:15:36 UTC
I attempted to read TD_QEE.jpg and getting an I/O error, likely the VFAT filesystem on USB stick is damaged. This means I can't upload it. Using ls -l, I see the file is 59099 bytes in size, permissions 644 jolson:users, and I'm using the jolson account (owner) to access.

I ran fsck earlier today after first seeing the crash in the 'file' command. That did not fix the I/O problem with this file (bad blocks??). I'm thinking the I/O error is not being handled correctly at the application level, leading to the double-free error I saw.

Interesting, I ran hexdump and it was able to dump the first 0x2000 (8KiB) bytes before hitting the I/O error. (A bad block is likely.)
I am pasting part of the hexdump that I got. I removed a chunk to save space here.


lansdale:~> hexdump /run/media/jolson/USB20FD/TD_QEE.jpg
0000000 32a8 c1b8 c1c9 a35d 1b1d f1d4 c1e4 c338
0000010 bb9f 9afc 907f cdad dd56 2f8e f848 1e33
0000020 a0a1 1aea e695 c8b0 b3f0 ad32 3bac e8bc
0000030 e7f6 1c84 8fe1 dc41 b762 e1df 9bee c317
0000040 13dd d54f 06ee de8c cf5a a272 5d66 289f
0000050 1024 cb08 591e 09b2 55c9 00ce 75aa 5267
0000060 d7cf fcfa 764a 29bf fccf d150 f42d 86df
0000070 75fa 9fce 147b 54ba 9b7a 5b5b 6924 e48c
0000080 2e39 4e4e 2a49 7b4e 1e8c bdf5 4ff0 3a45
0000090 85e7 bbe4 d6be fb24 9f1e ac33 8436 9182
00000a0 5cb1 6c96 e7f6 0e20 933a b6d6 b08e e882
00000b0 f9df 00ff e590 2455 d0ed fee5 580e eb5b
00000c0 105f 6df5 5236 a5ba b488 ad90 cad4 2814
00000d0 760e 96b7 9c73 2796 8f1d 853d a77a 3e85
00000e0 db19 b1e8 668d 08de d4e2 c5c9 60ac 8e04
00000f0 c728 580a 9601 7c24 dfc7 d98e a9a4 597b
0000100 2e49 ff8f 6d00 f54f 3246 a0aa 55ac 2ff1
0000110 2f87 e334 ac71 ba6a cb9b 676f 6d79 5a72
0000120 cb38 a034 a74a c1cb 5138 439f d2e9 4ebd
0000130 f337 5722 cbda 03b8 86b5 fa08 46d7 3809
0000140 2762 6e19 e4d7 f9df 6298 5c1c 8853 2bea
0000150 39d6 8a42 f800 5d16 5b25 5524 7429 53a7
0000160 8af2 8de0 3d5b 4e4f 02a5 dab3 11cd 69e8
0000170 e252 8f68 d624 52d7 b430 cba0 6a71 f823
0000180 d2aa 475c c820 5961 33b8 5468 ccd2 6297
0000190 61bf bd51 23b1 548c 5873 c6d5 a2ec 6323
00001a0 5770 291d 4cfe 4586 5255 8e59 0300 ad39
00001b0 91ee 8b92 900c 0f70 7934 7184 c24e 89bd
00001c0 b962 cf68 69ca 9564 72e4 124b 72cc d6c7
00001d0 8d93 c69d ede4 5161 70c0 553b 90b4 7233
00001e0 0c7a b7d2 a252 edc9 826e 9c4b b4e2 baa0
00001f0 d405 e786 e220 abb1 6803 43cb d3b6 263e
0000200 93f8 4847 dbd6 6f54 342e a411 2832 0a64
0000210 0c3a ba54 c5df 73bd d15a 34ee 8b9b da98
0000220 9909 3ab7 d6a6 402a 78f9 0eec 3f7f e56a
0000230 6784 6415 33f4 1895 73b7 9c87 365b 239f
0000240 fdef e0ee a3a8 e7b0 fe24 f383 87ac 3675
0000250 63e0 1304 adcf d374 8bbd ec9b 7653 79ce
0000260 18a8 c0f1 d335 62e6 2df7 f7e8 4ea3 6cd6
0000270 48ef 6042 2499 d701 e472 4610 7e47 7170
0000280 fa5a b936 9725 618d 26d7 7173 b921 232f
0000290 c94b f96d fd04 627e 0a6b e690 4b4c f4b1
00002a0 8067 646f 35d7 506d b1a6 3570 4822 8494
00002b0 9152 36c6 db85 8c91 e49c 637b 6a8e bbf6
00002c0 eef0 9d5b ce62 2ef1 d4e6 61a7 bb2d 687f
00002d0 31b8 13c3 ccfc 5040 2539 e742 8fd1 574c
00002e0 681c b43a 6ee5 fc8f 9d88 5a4e 3a84 886f
00002f0 f5ad e253 b18f cddf b664 1bae 10ce 556d
0000300 6281 995f 2e0b 7030 e376 cdeb 5c61 b6c0
0000310 00ff 6d0e bf35 5a0f 468d a7d4 9f92 986c
0000320 6699 743f e6be 0338 2470 e18e 6047 9e2b
0000330 2d9c 552e 57e6 bf3a 79de c46f 898f f832
0000340 7ee9 6fcd 1569 939e 3965 3cfb 9c31 0f99
0000350 ed40 3a8e 0c0c 2776 6bae c307 257e 74d6
0000360 a62b c59a acd9 46a0 e696 6206 38b1 6823
0000370 eb2f 4782 d51e e9de 4573 5d46 630d 231b
0000380 f0ae b6ce 16be 02d6 121f 5bd8 7dc5 7da6
0000390 f2aa 14e1 486f 4ab0 bd46 8d84 1dd7 3e40
00003a0 e9f5 163f 24fe e1cd 9ddb cb3e bd49 53cc
00003b0 19db 4098 6641 ae04 1bd2 e3a8 9d3f 4173
00003c0 32ca dd95 b4ae 2efc 3863 25a7 8363 7cd4
00003d0 e347 ed9b 6523 34d2 535a b7f9 9616 a2d2
00003e0 a799 4108 6677 42ce b7e4 873e 828e 07bd
00003f0 f84c a7dd a2c5 4d5a 33ab b91b 99cb 5824
0000400 704c b447 948f 7212 07c7 6bb6 ca28 9a71
0000410 379d fae5 5295 6a82 77c7 ffe1 1c00 1ee8
0000420 b726 b8ba 6fd3 4343 376c f248 8ca9 ee05
0000430 9ec0 3daa 1547 eb6a dac4 ad6d 5bca 5a89
0000440 5d69 55a3 8d10 c8dc bc70 f7f4 73fa ac5e
0000450 b031 f974 4edf 879e a513 d82b acd6 479d
0000460 5ac5 910e d676 86ba 67af 3a6d 7fa0 592e
0000470 b642 c009 ffe0 2a00 9dea c248 d23c 3122
0000480 7672 c647 e903 b44b d211 9dbc 6ecf 0cda
0000490 786b 1ce4 e6a8 93a0 854c daf8 f439 8cab
00004a0 7ada d309 a54c 8926 56c6 bea9 719d e009
00004b0 e81a 5485 39f7 41a7 50ad b8d4 069e 81f9
00004c0 ace2 a9c5 e129 0d86 825b a27a 5121 49c7
00004d0 6d09 fbfb 2bc6 71cf a657 36b8 3950 018c
00004e0 a123 d840 03e4 c7c1 33be 2d51 37d2 f783
00004f0 8c5c c780 9914 3539 b7d0 ae39 7a39 7a72
0000500 8855 c189 392c e4a5 a835 95dc 8e3c 62b5
0000510 0026 3467 4999 3dea 6e1c e2a9 6193 3504
0000520 5a12 d558 323b 895b 399b 1dcf 31aa 6d23
0000530 bbdf 858a 6215 01db 003b c879 5e35 c969
0000540 0238 8a9a fa22 c811 5285 2436 c665 0f70
0000550 d241 c798 f56a 4fe9 86d0 6f49 b676 2257
0000560 5478 a83c 66a7 c0e1 a462 ea67 9133 05ee
0000570 e432 6f43 4433 f992 1ba1 fe6e 47cc 3d52
0000580 28bd eab3 d14d f8d6 e26b 896f 2dbc dfa9
0000590 e9de 3057 2f99 ebce 9e85 e110 04db f529
00005a0 cf18 386e c3ae f859 abf7 9f6a a30f ded2
00005b0 b737 a5d6 449a b9ba 0184 401b e141 9273
00005c0 dc09 b607 41d2 57e4 b327 399d 0f5e fe47
00005d0 7346 3387 c8b9 8b78 06e2 e2a9 2332 8d79
00005e0 0ab4 e473 4ac0 7cab 9f8a 3c37 2f8c ce4a
00005f0 f5d3 129f 366b 6fba 7485 46fd edf5 c37c
0000600 bd15 6f9c 72b5 07e3 6ca7 af67 6400 d2fa
0000610 6354 eb08 d1d0 fda4 9d4c 1ba2 842b 31ca
0000620 7659 8c92 1c18 c171 111c 4aef 84da b6b6
0000630 c1f2 601b 814e fb1c 3567 a3d0 6377 da5b
0000640 191a 05e0 8563 7500 2bc6 4563 e4d7 2fd2
0000650 9d23 8ea0 54e5 ec22 9298 2b36 da06 013d
0000660 7e20 aa54 5252 8c8d 2e63 515d 5b7b 6ef1
0000670 aeb1 b5de e5dd 82eb fdf0 649f 6a67 f298
0000680 dc4e d90e 0335 86f8 e3f2 b64a a7d3 7b75
0000690 707b 17db 0f6e 3c27 39fe ebfc 5028 2449
00006a0 538b bf77 c972 0df1 8ae4 b9d8 0b95 21c4
00006b0 1b71 5694 d141 1c48 c011 d6e0 97d5 6dc4
<snip>
0001a90 fe7e ece3 6f70 6a69 7766 efe7 f5f3 f5fb
0001aa0 fdf9 7bf9 7df5 7cfc fc7c fefd 7dfd 6779
0001ab0 f47c e4e2 f7e1 7dfc 797d fb7b efe1 73ef
0001ac0 6868 6365 6c63 f6f6 ebf3 6fea 7b71 fef5
0001ad0 fefe fbfe ebe7 7efe eefc 7cea 717c 6d77
0001ae0 6d69 f67a dfe6 f3ee 7d7d 6162 ef6b fc7c
0001af0 76ff 7979 6d6d fdfd e3df 6ce7 575b 655e
0001b00 ed6f dce7 e9dc 7e7e 6669 756c edf9 f8fb
0001b10 7af8 fa7b ebf1 f0e4 7477 7b7b 7e6e eefe
0001b20 3030 6364 2cd6 0000 d8ff e0ff 1000 5641
0001b30 3149 0000 2cd6 0000 2cd5 0000 ddff 0400
0001b40 0000 dbff 8400 0800 0605 0607 0805 0607
0001b50 0907 0808 0c09 0d14 0b0c 0c0b 1219 0f13
0001b60 1e14 1f1a 1d1f 1d1a 211c 2f25 2128 2d23
0001b70 1c23 291d 2938 312d 3532 3535 2720 3e3a
0001b80 333a 2f3e 3534 0133 0908 0c09 0c0a 0d18
0001b90 180d 2233 221d 3333 3333 3333 3333 3333
0001ba0 3333 3333 3333 3333 3333 3333 3333 3333
*
0001bc0 3333 3333 3333 3333 c4ff a201 0000 0501
0001bd0 0101 0101 0101 0000 0000 0000 0000 0201
0001be0 0403 0605 0807 0a09 010b 0300 0101 0101
0001bf0 0101 0101 0001 0000 0000 0100 0302 0504
0001c00 0706 0908 0b0a 0010 0102 0303 0402 0503
0001c10 0405 0004 0100 017d 0302 0400 0511 2112
0001c20 4131 1306 6151 2207 1471 8132 a191 2308
0001c30 b142 15c1 d152 24f0 6233 8272 0a09 1716
0001c40 1918 251a 2726 2928 342a 3635 3837 3a39
0001c50 4443 4645 4847 4a49 5453 5655 5857 5a59
0001c60 6463 6665 6867 6a69 7473 7675 7877 7a79
0001c70 8483 8685 8887 8a89 9392 9594 9796 9998
0001c80 a29a a4a3 a6a5 a8a7 aaa9 b3b2 b5b4 b7b6
0001c90 b9b8 c2ba c4c3 c6c5 c8c7 cac9 d3d2 d5d4
0001ca0 d7d6 d9d8 e1da e3e2 e5e4 e7e6 e9e8 f1ea
0001cb0 f3f2 f5f4 f7f6 f9f8 11fa 0200 0201 0404
0001cc0 0403 0507 0404 0100 7702 0100 0302 0411
0001cd0 2105 0631 4112 0751 7161 2213 8132 1408
0001ce0 9142 b1a1 09c1 3323 f052 6215 d172 160a
0001cf0 3424 25e1 17f1 1918 261a 2827 2a29 3635
0001d00 3837 3a39 4443 4645 4847 4a49 5453 5655
0001d10 5857 5a59 6463 6665 6867 6a69 7473 7675
0001d20 7877 7a79 8382 8584 8786 8988 928a 9493
0001d30 9695 9897 9a99 a3a2 a5a4 a7a6 a9a8 b2aa
0001d40 b4b3 b6b5 b8b7 bab9 c3c2 c5c4 c7c6 c9c8
0001d50 d2ca d4d3 d6d5 d8d7 dad9 e3e2 e5e4 e7e6
0001d60 e9e8 f2ea f4f3 f6f5 f8f7 faf9 c0ff 1100
0001d70 0008 01f0 0340 2101 0200 0111 1103 ff01
0001d80 00da 030c 0001 1102 1103 3f00 f700 29fa
0001d90 9a26 00ba 98a2 1405 5100 0540 0014 4051
0001da0 1405 5100 0540 0014 4051 1405 5100 0540
0001db0 0014 4051 1405 5100 0540 9a14 05b8 9415
0001dc0 aca0 0d21 8c34 95d7 8988 8c0c 2ac6 d1bc
0001dd0 0357 ded0 4b95 cb33 0c7e 467c 4c69 163e
0001de0 2cf1 2fcc 6d10 b9b2 f190 8e32 4f88 bdf7
0001df0 710f d7ef 6bd8 c1db d14a bf74 f297 fee9
0001e00 d846 5e9a 76ca 4541 9c77 45c1 1400 0150
0001e10 0045 5014 4501 1400 0150 0045 5014 4501
0001e20 1400 0150 0045 5014 4501 7000 00ff b519
0001e30 57cd dec3 1a0f 8986 d674 2bb7 ab70 46b8
0001e40 90af 7043 0243 813a 865d 2b9d a74f 4bdb
0001e50 6e23 2279 6356 48ea e715 35a9 e58d 8ebe
0001e60 aa3f 7135 cd5e b148 7a45 4106 2745 06b0
0001e70 3129 335c dca7 8496 a322 0290 cb2b 14ad
0001e80 3b99 e433 553b 4e4d 0433 82d9 01f2 d891
0001e90 3a82 5e11 f0ef e287 6b2b 34e8 791d 7a84
0001ea0 bad5 ae7c 1778 074a 1fde 60ed fa64 faf5
0001eb0 a975 2afb 5daa 473f 4cfe f1f6 f610 f994
0001ec0 9eba 4597 077b 1490 0150 0045 5014 4501
0001ed0 1400 0150 0045 5014 4501 1400 0150 0045
0001ee0 5014 4501 1400 0750 fc9f 527b 0edf 882e
0001ef0 c419 fef0 07ac aef5 41b7 36dd a583 92ca
0001f00 0615 26da 673c d870 cc2b 07ab 622c 7e6b
0001f10 d55f bf1b 23e1 8a4e ccf4 8a02 2800 e7ac
0001f20 a01b d310 af48 bc22 d90c 2df1 e095 0325
0001f30 624a 3f9a 33f5 a767 27fb bada 5b5b 3599
0001f40 4907 e4ad 3d6b cd5a a395 3864 6165 83d0
0001f50 625b ad20 efa9 9ad2 1f7a fc40 f12c 7ee4
0001f60 d32d d79a db50 b706 0266 c3dc 6f8c bded
0001f70 a147 ecf4 0a7f ebed 09ab da57 b353 68dd
0001f80 5579 baa9 6873 ae28 10b3 80a2 280a a200
0001f90 0a80 0028 80a2 280a a200 0a80 0028 80a2
0001fa0 280a a200 0a80 0328 f88b 6ecf 3fd7 af0f
0001fb0 8fa3 ed6e 30f1 710c 3a9c 7e9c b795 93e0
0001fc0 069f 4768 4fd7 ffb7 d100 5c6b 5f57 b75b
0001fd0 7ff7 a153 00ff 7a05 049b 5164 7bce 5d11
0001fe0 5232 e2bd 8b73 5a45 ec69 4501 600f 4803
0001ff0 826b 6eb4 3e4b 4310 8383 fa5a e175 4d67
hexdump: /run/media/jolson/USB20FD/TD_QEE.jpg: Input/output error
0002000
lansdale:~>

Comment 2 James Olson 2019-03-05 01:22:20 UTC
I found a good copy of the input file on my hard drive, attaching it.

lansdale:~/Downloads> file TD_QEE.jpg 
TD_QEE.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, Exif Standard: [TIFF image data, little-endian, direntries=1, software=Google], baseline, precision 8, 512x640, frames 3
lansdale:~/Downloads>

Comment 3 James Olson 2019-03-05 01:25:24 UTC
Created attachment 1540795 [details]
Music concert announcement

This is a working copy of the file that caused the 'file' command to crash with a "double-free" error.

Comment 4 Kamil Dudka 2019-03-05 09:13:53 UTC
I suspect that the crash must have been caused by the I/O failure.  Are you able to crash file(1) if you run it on attachment #1540795 [details]?

Comment 5 Kamil Dudka 2019-06-10 11:31:43 UTC
*** Bug 1717641 has been marked as a duplicate of this bug. ***

Comment 6 Kamil Dudka 2019-06-10 12:07:07 UTC
I have proposed a fix upstream:

https://mailman.astron.com/pipermail/file/2019-June/000144.html

Comment 7 Kamil Dudka 2019-06-11 07:41:57 UTC
upstream commit: https://github.com/file/file/commit/d13204e8

Comment 8 Fedora Update System 2019-06-11 07:50:31 UTC
FEDORA-2019-ebf3bf0a1c has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ebf3bf0a1c

Comment 9 Fedora Update System 2019-06-11 07:50:32 UTC
FEDORA-2019-be28413187 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-be28413187

Comment 10 Fedora Update System 2019-06-12 01:29:53 UTC
file-5.36-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-be28413187

Comment 11 Fedora Update System 2019-06-12 01:31:41 UTC
file-5.34-14.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ebf3bf0a1c

Comment 12 Fedora Update System 2019-06-19 22:45:16 UTC
file-5.36-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2019-06-28 05:20:33 UTC
file-5.34-14.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Kamil Dudka 2019-09-03 21:17:39 UTC
*** Bug 1699330 has been marked as a duplicate of this bug. ***


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