[LLVMbugs] [Bug 20060] New: Integrated assembler segfault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 16 20:03:34 PDT 2014


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

            Bug ID: 20060
           Summary: Integrated assembler segfault
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brad at comstyle.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12668
  --> http://llvm.org/bugs/attachment.cgi?id=12668&action=edit
preprocessed assembly

Trying to build the OpenBSD amd64 bootstrap bits I noticed the integrated
assembler was crashing when trying to build biosboot(8)...

clang  -m32  -fno-pie  -DLOADADDR=0x40000 -DLINKADDR=0x40120
-DBOOTMAGIC=0xc001d00d 
-I/usr/src/src/sys/arch/amd64/stand/biosboot/../../../..
-I/usr/src/src/sys/arch/amd64/stand/biosboot/../libsa -I.
-I/usr/src/src/sys/arch/amd64/stand/biosboot -c
/usr/src/src/sys/arch/amd64/stand/biosboot/biosboot.S
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.5 -cc1as -triple
i386-unknown-openbsd5.5 -filetype obj -main-file-name biosboot.S -target-cpu
i486 -fdebug-compilation-dir /usr/src/src/sys/arch/amd64/stand/biosboot/obj
-dwarf-debug-producer clang version 3.5 (trunk) -o biosboot.o
/tmp/biosboot-74d230.s 
1.      Program arguments: -triple i386-unknown-openbsd5.5 -filetype obj
-main-file-name biosboot.S -target-cpu i486 -fdebug-compilation-dir
/usr/src/src/sys/arch/amd64/stand/biosboot/obj -dwarf-debug-producer clang
version 3.5 (trunk) -o biosboot.o /tmp/biosboot-74d230.s 
clang-3.5: error: unable to execute command: Segmentation fault (core dumped)
clang-3.5: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 3.5 (trunk)
Target: i386-unknown-openbsd5.5
Thread model: posix
clang-3.5: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.5: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.5: note: diagnostic msg: /tmp/biosboot-9efc5a.S
clang-3.5: note: diagnostic msg: /tmp/biosboot-9efc5a.sh
clang-3.5: note: diagnostic msg:

(gdb) bt full
#0  memset (dst=0x1fe4c0b29b84, c=0, n=18446744073709550467) at
/usr/src/lib/libc/string/memset.c:43
        d = (unsigned char *) 0x1fe4c0b2a000 <Address 0x1fe4c0b2a000 out of
bounds>
#1  0x00001fe2bffa6b83 in llvm::MCObjectStreamer::EmitFill () from
/usr/local/bin/clang-3.5
No symbol table info available.
#2  0x00001fe2bffa6360 in llvm::MCObjectStreamer::EmitValueToOffset () from
/usr/local/bin/clang-3.5
No symbol table info available.
#3  0x00001fe2be5bc70c in (anonymous namespace)::AsmParser::parseAssignment ()
from /usr/local/bin/clang-3.5
No symbol table info available.
#4  0x00001fe2be5c7c34 in (anonymous namespace)::AsmParser::parseStatement ()
from /usr/local/bin/clang-3.5
No symbol table info available.
#5  0x00001fe2be5cc318 in (anonymous namespace)::AsmParser::Run () from
/usr/local/bin/clang-3.5
No symbol table info available.
#6  0x00001fe2bdc219ff in ExecuteAssembler () from /usr/local/bin/clang-3.5
No symbol table info available.
#7  0x00001fe2bdc23984 in cc1as_main () from /usr/local/bin/clang-3.5
No symbol table info available.
#8  0x00001fe2bdc1ee10 in main () from /usr/local/bin/clang-3.5
No symbol table info available.

-- 
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/20140617/fea21f32/attachment.html>


More information about the llvm-bugs mailing list