[llvm-bugs] [Bug 24656] New: Assertion in GlobalVariable::setInitializer fires on .ll file
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 1 10:21:26 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24656
Bug ID: 24656
Summary: Assertion in GlobalVariable::setInitializer fires on
.ll file
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: kschimpf at google.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 14805
--> https://llvm.org/bugs/attachment.cgi?id=14805&action=edit
Test file
This bug was found using lib/Fuzzer (using llvm-as-fuzzer).
When you run llvm-as compiled with ASAN:
llvm-as bug.ll -o /dev/null
You get:
llvm-as-fuzzer: /workspace/llvm-dev/llvm/lib/IR/Globals.cpp:209: void
llvm::GlobalVariable::setInitializer(llvm::Constant *): Assertion
`InitVal->getType() == getType()->getElementType() && "Initializer type must
match GlobalVariable type"' failed.
ASAN:DEADLYSIGNAL
=================================================================
==24287==ERROR: AddressSanitizer: SEGV on unknown address 0xbe0f00005edf (pc
0x7f23824cdcc9 bp 0x7f2382617830 sp 0x7ffec4a1ead8 T0)
#0 0x7f23824cdcc8 (/lib/x86_64-linux-gnu/libc.so.6+0x36cc8)
#1 0x7f23824d10d7 (/lib/x86_64-linux-gnu/libc.so.6+0x3a0d7)
#2 0x7f23824c6b85 (/lib/x86_64-linux-gnu/libc.so.6+0x2fb85)
#3 0x7f23824c6c31 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc31)
#4 0x90a97f
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x90a97f)
#5 0x521c61
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x521c61)
#6 0x51aac0
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x51aac0)
#7 0x50cc94
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x50cc94)
#8 0x50c891
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x50c891)
#9 0x4edfb1
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x4edfb1)
#10 0x4eee30
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x4eee30)
#11 0x4ec7d1
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x4ec7d1)
#12 0xd39071
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd39071)
#13 0xd38900
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd38900)
#14 0xd397e5
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd397e5)
#15 0xd39c83
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd39c83)
#16 0xd342da
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd342da)
#17 0xd33650
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0xd33650)
#18 0x7f23824b8ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#19 0x424ac7
(/workspace/llvm-dev/build-as-test/bin/llvm-as-fuzzer+0x424ac7)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x36cc8)
==24287==ABORTING
--
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/20150901/4940c890/attachment.html>
More information about the llvm-bugs
mailing list