#4143 closed defect (fixed)

fileio - Stack too small for login with password

Reported by: Frank Kuehndel Owned by: joel@…
Priority: normal Milestone: 6.1
Component: test Version: 6
Severity: minor Keywords: fileio, stack, password, login, root
Cc: Blocked By:
Blocking:

Description

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 (to 5 times RTEMS_MINIMUM_STACK_SIZE) solves the issue.

How to reproduce:

  1. Start the fileio sample in QEMU with the above command.
  1. Type a key to stop the timer.
  1. Type "s" <return> to enter the shell.
  1. Login as "root" with the password printed to the terminal.
  1. In the line with the first shell prompt, the text "BLOWN STACK!!!" appears unexpectedly followed by further crash information.
[...]
/dev/foobar login: root
Password: 

RTEMS Shell on /dev/foobar. Use 'help' to list commands.
SHLL [/] # BLOWN STACK!!!
task control block: 0x00205278
[...]

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 558a19d3adff6a3ecf678f94408b48beccbbc9fb

Change History (1)

comment:1 Changed on 10/12/20 at 13:49:36 by Frank Kühndel <frank.kuehndel@…>

Resolution: fixed
Status: newclosed

In ec13365/rtems:

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

Note: See TracTickets for help on using tickets.