[LLVMbugs] [Bug 24113] New: Assertion: "Insufficient alignment"=" in IntervalMap.h:1045 in 32-bit MSVC builds

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 13 15:24:47 PDT 2015


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

            Bug ID: 24113
           Summary: Assertion: "Insufficient alignment"=" in
                    IntervalMap.h:1045 in 32-bit MSVC builds
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Object
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: bigcheesegs at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In a VS2013 x86 shell:

ninja bin\llvm-nm.exe 
bin\llvm-nm ..\test\Object\Inputs\corrupt-archive.a
Assertion failed: (uintptr_t(data.buffer) & (alignOf<RootLeaf>() - 1)) == 0 &&
"Insufficient alignment", file ..\include\llvm/ADT/IntervalMap.h, line 1045
0x0052E7A7 (0x00000016 0x6DB58356 0x6DB57CBD 0x017E7EB8)
0x6DB5764E (0x00B718F0 0x00B71048 0x00000415 0x0166F64C), abort() + 0x10
bytes(s)
0x0050E7BB (0x017E50A6 0x017E52A6 0x017E5259 0x0000004B)

It reproduces for me ~50% of the time. The other times, the test passes.

Adding printfs shows that the alignment of RootLeaf is 8, but data.buffer is
for example 00B6F63C .

I think this started with r241869. Maybe that's the first time we're putting an
InterValMap on the stack?

-- 
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/20150713/42fa712e/attachment.html>


More information about the llvm-bugs mailing list