<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - KERN_INVALID_ADDRESS crash with lld but not ld64"
href="https://bugs.llvm.org/show_bug.cgi?id=52480">52480</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>KERN_INVALID_ADDRESS crash with lld but not ld64
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>MachO
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>keithbsmiley@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>gkm@fb.com, jezreel@gmail.com, llvm-bugs@lists.llvm.org, smeenai@fb.com
</td>
</tr></table>
<p>
<div>
<pre>Here is an iOS sample project
<a href="https://drive.google.com/file/d/1H1P5BsnfC_Q5Ebd1ddBVMqQ2OWuCAvlH/view">https://drive.google.com/file/d/1H1P5BsnfC_Q5Ebd1ddBVMqQ2OWuCAvlH/view</a>
Where the app crashes when exercising some specific codepaths.
Repro steps:
1. The attached project currently links with ld64 and should build + run on the
simulator out of the box
2. Launch the app on the simulator and click "Basic map", the map should load
fine
3. Change OTHER_LD_FLAGS to point to lld, I was using
`--ld-path=/Users/ksmiley/dev/llvm-project/build-dylibs/bin/ld64.lld` for this
4. Repeat 2, but this time it will crash.
Here's a snippet from the crash log:
```
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000030
Exception Codes: 0x0000000000000001, 0x0000000000000030
VM Region Info: 0x30 is not in any region. Bytes before following region:
4377145296
REGION TYPE START - END [ VSIZE] PRT/MAX
SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104e5f000-1053e5000 [ 5656K] r-x/r-x
SM=COW ...ogleMapsDemos
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [58739]
```
This could likely be reduced more if needed</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>