[llvm-bugs] [Bug 51714] New: liblzma compress/uncompress mismatch when built with llvm >=12 on FreeBSD powerpc64 (BE)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 2 05:44:10 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51714

            Bug ID: 51714
           Summary: liblzma compress/uncompress mismatch when built with
                    llvm >=12 on FreeBSD powerpc64 (BE)
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: alfredo.junior at eldorado.org.br
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

On FreeBSD 13/powerpc64 (BE, ELFv2 ABI), a xz (liblzma.so) compiled with llvm12
or later isn't able to uncompress files produced by other machines or
downloaded from the Internet (data corruption). 
It can uncompress files compressed by itself (the same library binary), but
other machines won't recognize the .xz as well (data corruption).

Bisect points to this commit[1] as source of regression. Reverting it makes
liblzma.so work correctly again, but it's not clear to me how it's
interefering.

FreeBSD 13/powerpc64le and amd64 are not affected.


How to reproduce:
1 - install FreeBSD 13/powerpc64
2 - install llvm12 or latest devel (pkg install llvm12 llvm-devel)
3 - take source from http://git.tukaani.org/xz.git and compile branch v5.0
using clang12 or later as CC
4 - download an .xz from the internet and try to uncompress it



[1]
https://github.com/llvm/llvm-project/commit/42eaf4fe0adef3344adfd9fbccd49f325cb549ef

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210902/aad3d90a/attachment.html>


More information about the llvm-bugs mailing list