<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 9:11 AM Kinsey Moore <<a href="mailto:kinsey.moore@oarcorp.com">kinsey.moore@oarcorp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm not sure it's specifically a GCC10 issue, but I've encountered something like this before (I think it was GCC8 or GCC9).<br>
<a href="https://github.com/ISI-apex/rtems/commit/edd6d90c3ad21393dd0de93056f371c7abc89b78" rel="noreferrer" target="_blank">https://github.com/ISI-apex/rtems/commit/edd6d90c3ad21393dd0de93056f371c7abc89b78</a><br>
<br>
I thought I'd sent in a patch for this or at least created a ticket, but I can't find either at the moment.<br></blockquote><div><br></div><div>Would switching this BSP from -O0 to -Og be prudent also?</div><div><br></div><div>I assume it is using -O0 to ease debugging.</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Kinsey<br>
<br>
-----Original Message-----<br>
From: devel <<a href="mailto:devel-bounces@rtems.org" target="_blank">devel-bounces@rtems.org</a>> On Behalf Of Frank Kühndel<br>
Sent: Friday, October 9, 2020 09:06<br>
To: <a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a><br>
Cc: <a href="mailto:rtems-devel@rtems.org" target="_blank">rtems-devel@rtems.org</a> <<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a>><br>
Subject: Re: [PATCH] testsuites/samples/fileio - Increase of stack size<br>
<br>
Hi Joel,<br>
<br>
Sebastian is the opinion its a "GCC 10 issue".<br>
<br>
On 10/9/20 3:32 PM, Joel Sherrill wrote:<br>
> This is interesting. When I teach RTEMS classes, I always run this <br>
> application and the last time, this BSP was the one used. It was a <br>
> rare case of all Zynq users with no LEON users. :)<br>
> <br>
> What version of RTEMS and how did you configure it? <br>
<br>
Version is the newest, I think 6:<br>
<br>
remote.origin.url=git://<a href="http://git.rtems.org/rtems.git" rel="noreferrer" target="_blank">git.rtems.org/rtems.git</a><br>
<br>
The branch bases on origin/master.<br>
The preceding commit was:<br>
commit 558a19d3adff6a3ecf678f94408b48beccbbc9fb (origin/master, origin/HEAD, master)<br>
<br>
The config.ini is<br>
<br>
[arm/realview_pbx_a9_qemu]<br>
RTEMS_DEBUG = True<br>
RTEMS_NETWORKING = True<br>
RTEMS_POSIX_API = True<br>
RTEMS_SMP = True<br>
BUILD_TESTS = True<br>
<br>
> <br>
> This sounds like it may need a ticket since it likely needs to be <br>
> included on the 5 <a href="http://branch.pa" rel="noreferrer" target="_blank">branch.pa</a> <<a href="http://branch.pa" rel="noreferrer" target="_blank">http://branch.pa</a>><br>
<br>
I can open a ticket for 5 and 6 if you like.<br>
<br>
Greetings<br>
Frank<br>
<br>
> <br>
> I don't doubt it crashed. Just want details so we can apply the patch <br>
> properly.<br>
> <br>
> --joel<br>
> <br>
> On Fri, Oct 9, 2020 at 8:07 AM Frank Kuehndel <br>
> <<a href="mailto:frank.kuehndel@embedded-brains.de" target="_blank">frank.kuehndel@embedded-brains.de</a><br>
> <mailto:<a href="mailto:frank.kuehndel@embedded-brains.de" target="_blank">frank.kuehndel@embedded-brains.de</a>>> wrote:<br>
> <br>
> When I use the 'shell' from the fileio sample with the command below:<br>
> <br>
> env QEMU_AUDIO_DRV="none" \<br>
> qemu-system-arm -no-reboot -net none -nographic -M<br>
> realview-pbx-a9 -m 256M \<br>
> -kernel <br>
> build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe<br>
> <br>
> The executable crashes with an "BLOWN STACK!!!" as soon as I try to<br>
> login<br>
> as 'root' with password. (The logins without password work fine.)<br>
> Increasing<br>
> the stack size of the affected thread a bit solves the issue. Hence,<br>
> I suggest this patch.<br>
> ---<br>
> testsuites/samples/fileio/init.c | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
> <br>
> diff --git a/testsuites/samples/fileio/init.c<br>
> b/testsuites/samples/fileio/init.c<br>
> index 86b34b99dd..c552d33613 100644<br>
> --- a/testsuites/samples/fileio/init.c<br>
> +++ b/testsuites/samples/fileio/init.c<br>
> @@ -630,7 +630,7 @@ static void fileio_start_shell(void)<br>
> printf(" =========================\n");<br>
> rtems_shell_init(<br>
> "SHLL", /* task_name */<br>
> - RTEMS_MINIMUM_STACK_SIZE * 4, /* task_stacksize */<br>
> + RTEMS_MINIMUM_STACK_SIZE * 5, /* task_stacksize */<br>
> 100, /* task_priority */<br>
> "/dev/foobar", /* devname */<br>
> /* device is currently ignored by the shell if it is not a pty */<br>
> -- <br>
> 2.26.2<br>
> <br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a> <mailto:<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a>><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> <br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>