View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000045 | file | General | public | 2018-09-17 07:54 | 2018-10-01 23:34 |
Reporter | sezero | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.34 | ||||
Fixed in Version | 5.35 | ||||
Summary | 0000045: unreadable output for macho fat files | ||||
Description | $ file --version file-5.34 magic file from /home/sezero/opt/file-5.34/share/misc/magic $ file wildmidi wildmidi: Mach-O universal binary with 3 architectures: [x86_64:Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL>] [ppc:Mach-O ppc executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL>] This is a fat file with x86_64, i386 and ppc architectures. While trying to output flags (useless IMHO, but it's just me), file loses one of the arches (i386) and the output is pretty much unreadable. As far as I can tell, this behavior began with file-5.27 (file-5.26 doesn't compile for me.) With file-5.25, the output was readable, although it did lose the last arch, i.e. ppc: wildmidi: Mach-O universal binary with 3 architectures: [x86_64: Mach-O 64-bit x86_64 executable] [i386: Mach-O i386 executable] [] | ||||
Tags | No tags attached. | ||||
|
Do you have a binary that reproduces this? I get: ./file -m ../magic/magic.mgc /bin/sync /bin/sync: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>] [i386:Mach-O i386 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE|NO_HEAP_EXECUTION>] |
|
waiting for example. |
|
The tarball here has the file I referred to in the original report: https://github.com/Mindwerks/wildmidi/releases/download/wildmidi-0.3.14/wildmidi-0.3.14-macosx.tar.gz Also attaching one of the files from that tarball here. wildmidi (73,772 bytes)
��� � Mx ` ]� � `, �� � @ � H __PAGEZERO � __TEXT 0 0 __text __TEXT � � __symbol_stub1 __TEXT � V � � __stub_helper __TEXT ! � ! __eh_frame __TEXT �# 8 �# ` __cstring __TEXT �% �% x __DATA 0 0 __dyld __DATA 0 8 0 __nl_symbol_ptr __DATA 80 80 9 __la_symbol_ptr __DATA X0 � X0 = __data __DATA 2 � 2 __const __DATA �4 �4 __bss __DATA �6 � __common __DATA �? H H __LINKEDIT @ @ x @ g HH 0 P * = pF v /usr/lib/dyld ?'�=�#��@,�� � * X /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL @ @executable_path/libWildMidi.1.dylib 8 � /usr/lib/libgcc_s.1.dylib 8 } /usr/lib/libSystem.B.dylib j H��H���H�}H�u������H�H���H��H�9 u�H���, ���" �ASL�����AS�%�' �%�' ����������H��1�� ��uH���fD fD H�9. H��6 H�3. H��6 H��6 � 1�H���. fD � H��1�� ��uH���fD fD H�5y6 1��� H�s6 H��- H�u6 H��- H%���H�a6 H��H�F6 H�76 1�1�� � � 1�1�H��� ���������� � ��� � H�=a �A @ �=^- � D H��H�=�1 �� H�=W � �=0- �h �=%- 1Ҿ �b H�5n1 � � H�5- � � H�=<1 �F H�=(1 �. H� 1 H� 1 ��, H���fD AUATUSH��I������, ��wF��H��0 �<�D��' ��L�� �y �v, ���n, ��� 1�H��[]A\A]�L�l$�=I, L�� �a �|$ � �D$ H�\$fD � �=, H�ھ �& �T$��t�H�\$�=�+ H�ھ �$ �|$D�' ��L�� �� �=�+ H�ھ �� �� ���� �=�+ L�� � �|$ �%���H��=}+ � � �$���� �=b+ � 1�H��[]A\A]Ë=J+ H�ھ �t �=7+ �c 1�H��[]A\A]Ë=+ �K �4 ������H�:$ H�� � H�=* � ��������� � H�$ H�� � H�= �K ������K���H��# H��! � H�= �! ������!���fD fD SH��H��H��H��S㥛� H��H��Hc�H�$Hi�� H)�Hi�@B H�|$fD H��H���� ��t� H��[�fD SH����Hc=E% H��� H��x .. 1�[��� �8�� H��H�5t H�# H�81��L �=% �/ ��$ ���������[�� SH��� �$ ���� H�=N 1��P ��- �$���D$���D$���D$�=�$ 1Ҿ( � �=�$ � H���C H���� �m- ��$�d- �$���D$���D$���D$�=J$ 1Ҿ � �=8$ � H���� H��x2� � �=$ ��x�@ �$ ����H��[�f� � �8� H��H�5: H��! H�81�� �� AWAVAUATUSH��� A��I��H��! H�H��$� 1�DŽ$� ��, �|( H�5 H�=& 1�� H�=H � H�=l �� H�=� �� H�=� �� H�= �� H�5$ H�=J 1�� H�5O H�=t 1�� 1��D$[d�D$\ �D$f �D$g L��$� L�-� f� M��H� f% H�H L��D��� �Ã���� �C���vA���� � ��H�� H��$� H3 � H��� []A\A]A^A_�@ ��IcD� L��� � ����� ��������� ��������� � � � y a ����< ����/ ���� % �L$\�L$ZH�� D90�k �=+ u� H�5� H�=+ �q ��. H�=p �L �=�& |