[LLVMbugs] [Bug 21988] New: [MC][Aarch64] -no-exec-stack causes crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 19 13:14:50 PST 2014


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

            Bug ID: 21988
           Summary: [MC][Aarch64] -no-exec-stack causes crash
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: weimingz at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

cat test.s 
.global foo
.type foo,%function

foo:
    mov     x0,x1
    ret


llvm-mc   ./test.s -arch=aarch64 -no-exec-stack -filetype obj -o test.o
llvm-mc: llvm/include/llvm/MC/MCStreamer.h:352: virtual void
llvm::MCStreamer::SwitchSection(const llvm::MCSection*, const llvm::MCExpr*):
Assertion `Section && "Cannot switch to a null section!"' failed.
#0 0x593582 llvm::sys::PrintStackTrace(_IO_FILE*)
(/install/bin/llvm-mc+0x593582)
#1 0x591891 SignalHandler(int) (/install/bin/llvm-mc+0x591891)
#2 0x7ff6e2d4c8f0 __restore_rt (/lib/libpthread.so.0+0xf8f0)
#3 0x7ff6e202ab25 gsignal
/build/buildd/eglibc-2.11.1/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:64:0
#4 0x7ff6e202e670 abort /build/buildd/eglibc-2.11.1/stdlib/abort.c:94:0
#5 0x7ff6e20239f1 __assert_fail
/build/buildd/eglibc-2.11.1/assert/assert.c:81:0
#6 0x450e1e
(/prj/llvm-arm/home/nightly/install/community-mainline/cross/2014-12-18/bin/llvm-mc+0x450e1e)
#7 0x40d40c main (/install/bin/llvm-mc+0x40d40c)
#8 0x7ff6e2015c4d __libc_start_main
/build/buildd/eglibc-2.11.1/csu/libc-start.c:258:0
#9 0x40e84d _start (/install/bin/llvm-mc+0x40e84d)
Stack dump:
0.    Program arguments: llvm-mc ./test.s -arch=aarch64 -no-exec-stack
-filetype obj -o test.o 
[1]    31130 abort      llvm-mc ./test.s -arch=aarch64 -no-exec-stack -filetype
obj -o test.o

-- 
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/20141219/1619b500/attachment.html>


More information about the llvm-bugs mailing list