<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Integrated assembler segfault"
href="http://llvm.org/bugs/show_bug.cgi?id=20060">20060</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Integrated assembler segfault
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brad@comstyle.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12668" name="attach_12668" title="preprocessed assembly">attachment 12668</a> <a href="attachment.cgi?id=12668&action=edit" title="preprocessed assembly">[details]</a></span>
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>