<!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/docs/rtems-docs/-/issues/37">#37</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">Executing 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</a> results in a <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_rtems_sparc.exe</code> executable which crashes when executed. Currently, 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;">+ rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC2" class="line" lang="plaintext">RTEMS Testing - Run, 6.0.not_released</span>
<span id="LC3" class="line" lang="plaintext"> Command Line: /opt/rtems/6/bin/rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC4" class="line" lang="plaintext"> Host: Linux 134940171c14 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64</span>
<span id="LC5" class="line" lang="plaintext"> Python: 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0]</span>
<span id="LC6" class="line" lang="plaintext">Host: Linux-5.14.21-150500.55.68-default-x86_64-with-glibc2.39 (Linux 134940171c14 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64 x86_64)</span>
<span id="LC7" class="line" lang="plaintext"></span>
<span id="LC8" class="line" lang="plaintext"> SIS - SPARC/RISCV instruction simulator 2.30,  copyright Jiri Gaisler 2020</span>
<span id="LC9" class="line" lang="plaintext"> Bug-reports to jiri@gaisler.se</span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext"> LEON3 emulation enabled, 4 cpus online, delta 50 clocks</span>
<span id="LC12" class="line" lang="plaintext"></span>
<span id="LC13" class="line" lang="plaintext"> Loaded hello_rtems_sparc.exe, entry 0x40000000</span>
<span id="LC14" class="line" lang="plaintext"></span>
<span id="LC15" class="line" lang="plaintext">*** FATAL ***</span>
<span id="LC16" class="line" lang="plaintext">fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)</span>
<span id="LC17" class="line" lang="plaintext">CPU: 0</span>
<span id="LC18" class="line" lang="plaintext"></span>
<span id="LC19" class="line" lang="plaintext">unexpected trap 133</span>
<span id="LC20" class="line" lang="plaintext">PSR = 0xf3401fc0</span>
<span id="LC21" class="line" lang="plaintext">PC = 0x4000adc8</span>
<span id="LC22" class="line" lang="plaintext">nPC = 0x4000adcc</span>
<span id="LC23" class="line" lang="plaintext">WIM = 0x00000040</span>
<span id="LC24" class="line" lang="plaintext">Y = 0x00000000</span>
<span id="LC25" class="line" lang="plaintext">g0 = 0x00000000</span>
<span id="LC26" class="line" lang="plaintext">g1 = 0x4000b32c</span>
<span id="LC27" class="line" lang="plaintext">g2 = 0x00010009</span>
<span id="LC28" class="line" lang="plaintext">g3 = 0x0001004b</span>
<span id="LC29" class="line" lang="plaintext">g4 = 0x00000000</span>
<span id="LC30" class="line" lang="plaintext">g5 = 0x00000000</span>
<span id="LC31" class="line" lang="plaintext">g6 = 0x40026600</span>
<span id="LC32" class="line" lang="plaintext">g7 = 0x00000000</span>
<span id="LC33" class="line" lang="plaintext">[more register dumps]</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-10T09:56:41+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"><a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/commit/7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-reference-type="commit" data-original="7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-link="false" data-link-reference="false" data-commit="7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-project="12" data-container="body" data-placement="top" title='Revert "user: Add --release option to Rust instructions"' 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;'>7817d7a3</a></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">989ec6342f410f21e6585e4828a4c5f4f8da5e83</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">bd9f5c1eb07ec245576abb93d3bc54618be1fb94</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">cargo:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.81.0 (2dbb1af80 2024-08-20)</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rustc:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.83.0-nightly (eb4e23467 2024-10-09)</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-09T02: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"><a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/commit/7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-reference-type="commit" data-original="7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-link="false" data-link-reference="false" data-commit="7817d7a306cb4627b1208be84c33c4d9b1b2201f" data-project="12" data-container="body" data-placement="top" title='Revert "user: Add --release option to Rust instructions"' 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;'>7817d7a3</a></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">8c8156d2133a08d5b93de33828ae1e7009f49974</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">bd9f5c1eb07ec245576abb93d3bc54618be1fb94</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">cargo:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.81.0 (2dbb1af80 2024-08-20)</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rustc:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.83.0-nightly (3ae715c8c 2024-10-07)</td>
</tr>
</tbody>
</table>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">I had the CI re-run with the <em style="margin-top: 0;">rtems, rtems-source-builder, rtems-docs</em> git commits from the last good build – resulting in the same crash. Hence, I assume this is a new bug Rust <em>nigthly</em>.</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">By the way, the build of hello world for Risc V (which is also part of the RTEMS user manual instructions) is not affected and works fine. It uses the <em style="margin-top: 0;">standard</em> <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;'>rustc</code> and not the <em>nightly</em> one.</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The last bug of this type <a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/issues/32" data-reference-type="issue" data-original="#32" data-link="false" data-link-reference="false" data-issue="28564" data-project="12" data-iid="32" data-namespace-path="rtems/docs/rtems-docs" data-project-path="rtems/docs/rtems-docs" data-issue-type="issue" data-container="body" data-placement="top" title="Rust Documentation: Hello World on SPARC does not work anymore" class="gfm gfm-issue" style="margin-top: 0;">#32 (closed)</a> was just closed by the Rust community on Sunday (with a lot of labor) and this new issue pops up on Thursday ...</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/docs/rtems-docs/-/issues/37">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/78a0cb1f87b102069c728633c49e2e0f/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/docs/rtems-docs/-/issues/37"}}</script>


</p>
</div>
</body>
</html>