[LLVMbugs] [Bug 18502] New: Bad alignment in MultiSource/Benchmarks/PAQ8p

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 15 20:57:56 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18502

            Bug ID: 18502
           Summary: Bad alignment in MultiSource/Benchmarks/PAQ8p
           Product: Test Suite
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Nightly Tester
          Assignee: unassignedbugs at nondot.org
          Reporter: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The template instantiation BH<4>::operator[] in paq8p.cpp contains:

  static U8 tmp[B];  // element to move to front
  if (j==M) {
    --j;
    memset(tmp, 0, B);
    *(U16*)tmp=chk;
    if (M>2 && t[(i+j)*B+2]>t[(i+j-1)*B+2]) --j;
  }

The SPARC linker is evil and doesn't align the global 'static U8 tmp[B]', so
the U16 store is unaligned and crashes.

-- 
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/20140116/bbdef2ee/attachment.html>


More information about the llvm-bugs mailing list