<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.rtems.org/frank_k">Frank Kuehndel</a> created an issue: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5139">#5139</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #28272d; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #28272d; margin: 0 0 16px;" align="initial">
<a href="#summary" aria-hidden="true" class="anchor" id="user-content-summary" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Summary</h2>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">We have a CI job which executs the exact instructions from the <a href="https://docs.rtems.org/branches/master/user/rust/bare-metal.html#bare-metal-rust-with-rtems" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">rtems user manual: Bare Metal Rust with RTEMS</a> and therefore runs <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>hello.exe</code> from the RTEMS samples. This executable crashes when executed. The Ticker sample crashes too.</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">This is <strong style="font-weight: 600; margin-top: 0;">not</strong> a Rust bug! This is just RTEMS without any Rust involved!</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">Basically, it does:</p>
<ol dir="auto" style="text-align: initial; margin: 0 0 16px; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Run RSB for Risc-V to install Tools.</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Build for Risc-V</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Run the <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>hello.exe</code> sample</li>
</ol>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The output looks like:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #28272d; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">+ qemu-system-riscv64 -M virt -nographic -bios build/riscv/rv64imafdc/testsuites/samples/hello.exe</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">*** FATAL ***</span>
<span id="LC4" class="line" lang="plaintext">fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)</span>
<span id="LC5" class="line" lang="plaintext">mstatus 0x8000000a00007800</span>
<span id="LC6" class="line" lang="plaintext">mcause 0x0000000000000007</span>
<span id="LC7" class="line" lang="plaintext">mepc 0x0000000080005d66</span>
<span id="LC8" class="line" lang="plaintext">ra 0x0000000080005d36</span>
<span id="LC9" class="line" lang="plaintext">sp 0x0000000080057a40</span>
<span id="LC10" class="line" lang="plaintext">gp 0x0000000080053800</span>
<span id="LC11" class="line" lang="plaintext">tp 0x0000000000000000</span>
<span id="LC12" class="line" lang="plaintext">t0 0x000000008000b56e</span>
<span id="LC13" class="line" lang="plaintext">t1 0x000000000000000f</span>
<span id="LC14" class="line" lang="plaintext">t2 0x0000000000000000</span>
<span id="LC15" class="line" lang="plaintext">s0 0x000000008005c470</span>
<span id="LC16" class="line" lang="plaintext">s1 0x0000000000000010</span>
<span id="LC17" class="line" lang="plaintext">a0 0x0000000080055010</span>
<span id="LC18" class="line" lang="plaintext">a1 0x0000000000000000</span>
<span id="LC19" class="line" lang="plaintext">a2 0xffffff788005c480</span>
<span id="LC20" class="line" lang="plaintext">a3 0x00000000800550b0</span>
<span id="LC21" class="line" lang="plaintext">a4 0x0000000100000000</span>
<span id="LC22" class="line" lang="plaintext">a5 0x0000000000000000</span>
<span id="LC23" class="line" lang="plaintext">a6 0x0000000000000000</span>
<span id="LC24" class="line" lang="plaintext">a7 0x0000000000000008</span>
<span id="LC25" class="line" lang="plaintext">s2 0x000000877ffa3b80</span>
<span id="LC26" class="line" lang="plaintext">s3 0x0000000000000011</span>
<span id="LC27" class="line" lang="plaintext">s4 0x00000087fffffff0</span>
<span id="LC28" class="line" lang="plaintext">s5 0x0000000000000020</span>
<span id="LC29" class="line" lang="plaintext">s6 0x000000877ffa3b91</span>
<span id="LC30" class="line" lang="plaintext">s7 0x0000008800000000</span>
<span id="LC31" class="line" lang="plaintext">s8 0x000000008005c46f</span>
<span id="LC32" class="line" lang="plaintext">s9 0x0000000000000000</span>
<span id="LC33" class="line" lang="plaintext">s10 0x0000000000000000</span>
<span id="LC34" class="line" lang="plaintext">s11 0x0000000000000000</span>
<span id="LC35" class="line" lang="plaintext">t3 0x00000000000000f6</span>
<span id="LC36" class="line" lang="plaintext">t4 0x0000000000000000</span>
<span id="LC37" class="line" lang="plaintext">t5 0x0000000000000000</span>
<span id="LC38" class="line" lang="plaintext">t6 0x0000000000000000</span>
<span id="LC39" class="line" lang="plaintext">fcsr 0x00000000</span>
<span id="LC40" class="line" lang="plaintext">RTEMS version: 6.0.0.eaaeebedda43a9e9886078389b3af05d0c267a7a</span>
<span id="LC41" class="line" lang="plaintext">RTEMS tools: 13.3.0 20240521 (RTEMS 6, RSB 78680c889c2458f26170fe6e4a05c37791aacc87, Newlib 1b3dcfd)</span>
<span id="LC42" class="line" lang="plaintext">executing thread is NULL</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The first known buggy build was:</p>
<table dir="auto" style="border-spacing: 0; text-align: initial; color: #28272d; width: auto; display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; border-width: 0;">
<thead style="margin-top: 0;">
<tr style="margin-top: 0;">
<th style="line-height: 20px; margin-top: 0; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top"></th>
<th style="line-height: 20px; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top">Version/Commmit</th>
</tr>
</thead>
<tbody style="background-color: #ffffff;">
<tr style="margin-top: 0;">
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">Date:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">2024-10-26T02:33:07+02:00</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-docs:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">a3cfaea265cb6b5af8f0eb6cb5f4ace32873ecf3</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-source-builder:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">78680c889c2458f26170fe6e4a05c37791aacc87</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top"><a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/commit/eaaeebedda43a9e9886078389b3af05d0c267a7a" data-reference-type="commit" data-original="eaaeebedda43a9e9886078389b3af05d0c267a7a" data-link="false" data-link-reference="false" data-commit="eaaeebedda43a9e9886078389b3af05d0c267a7a" data-project="26" data-container="body" data-placement="top" title="riscv/beaglevfire: Rename 'bvf' to 'beaglevfire'" class="gfm gfm-commit has-tooltip" style='font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; font-variant-ligatures: none; font-size: 95%; margin-top: 0;'>eaaeebed</a></td>
</tr>
</tbody>
</table>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The last known good build was:</p>
<table dir="auto" style="border-spacing: 0; text-align: initial; color: #28272d; width: auto; display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; border-width: 0;">
<thead style="margin-top: 0;">
<tr style="margin-top: 0;">
<th style="line-height: 20px; margin-top: 0; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top"></th>
<th style="line-height: 20px; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top">Version/Commmit</th>
</tr>
</thead>
<tbody style="background-color: #ffffff;">
<tr style="margin-top: 0;">
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">Date:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">2024-10-25T02:33:14+02:00</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-docs:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">2cafea3f43db17f7f0355078449acd77527e2dd3</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-source-builder:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">d7870131e4de88f35ed137e62c83874597ccee82</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top"><a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/commit/e0f1c8fe0b20ae486f5b99c3a9155686bc3a11f2" data-reference-type="commit" data-original="e0f1c8fe0b20ae486f5b99c3a9155686bc3a11f2" data-link="false" data-link-reference="false" data-commit="e0f1c8fe0b20ae486f5b99c3a9155686bc3a11f2" data-project="26" data-container="body" data-placement="top" title="Set Python scripts to use Python 3" class="gfm gfm-commit has-tooltip" style='font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; font-variant-ligatures: none; font-size: 95%; margin-top: 0;'>e0f1c8fe</a></td>
</tr>
</tbody>
</table>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">By the way, the build of <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>hello.exe</code> for SPARC (which is also part of the RTEMS user manual instructions) is not affected and works fine.</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #28272d; margin: 24px 0 16px;" align="initial">
<a href="#steps-to-reproduce" aria-hidden="true" class="anchor" id="user-content-steps-to-reproduce" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Steps to reproduce</h2>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">Follow the instructions in <a href="https://docs.rtems.org/branches/master/user/rust/bare-metal.html#bare-metal-rust-with-rtems" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">Bare Metal Rust with RTEMS</a></p>
<h3 dir="auto" style="font-size: 1.3em; margin: 24px 0 0;" align="initial">
<a href="#pre-set-options" aria-hidden="true" class="anchor" id="user-content-pre-set-options" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Pre-set options</h3>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5139">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/07756d8274b50e26b702171f231abf59/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5139"}}</script>
</p>
</div>
</body>
</html>