summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank K├╝hndel <frank.kuehndel@embedded-brains.de>2020-10-12 15:49:07 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-12 15:49:15 +0200
commitec13365d770f41a3d7ecda661a8844a47b4e1fb9 (patch)
treed7f9d3476d7b6fb93956648a27cb94e37f5a32ad
parenta479686c112144119866391ceb21c48be6a3eca9 (diff)
testsuites/samples/fileio - Increase of stack size
When I use the 'shell' from the fileio sample with the command below: env QEMU_AUDIO_DRV="none" \ qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 \ -m 256M \ -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe The executable crashes with an "BLOWN STACK!!!" as soon as I try to login as 'root' with password. (The logins without password work fine.) Increasing the stack size of the affected thread a bit solves the issue. Hence, I suggest this patch. My config.ini was [arm/realview_pbx_a9_qemu] RTEMS_DEBUG = True RTEMS_NETWORKING = True RTEMS_POSIX_API = True RTEMS_SMP = True BUILD_TESTS = True RTEMS origin.master at a479686c112144119866391ceb21c48be6a3eca9 Close #4143
-rw-r--r--testsuites/samples/fileio/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 86b34b99dd..c552d33613 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -630,7 +630,7 @@ static void fileio_start_shell(void)
printf(" =========================\n");
rtems_shell_init(
"SHLL", /* task_name */
- RTEMS_MINIMUM_STACK_SIZE * 4, /* task_stacksize */
+ RTEMS_MINIMUM_STACK_SIZE * 5, /* task_stacksize */
100, /* task_priority */
"/dev/foobar", /* devname */
/* device is currently ignored by the shell if it is not a pty */