[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


            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

    mov     x0,x1

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*)
#1 0x591891 SignalHandler(int) (/install/bin/llvm-mc+0x591891)
#2 0x7ff6e2d4c8f0 __restore_rt (/lib/libpthread.so.0+0xf8f0)
#3 0x7ff6e202ab25 gsignal
#4 0x7ff6e202e670 abort /build/buildd/eglibc-2.11.1/stdlib/abort.c:94:0
#5 0x7ff6e20239f1 __assert_fail
#6 0x450e1e
#7 0x40d40c main (/install/bin/llvm-mc+0x40d40c)
#8 0x7ff6e2015c4d __libc_start_main
#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