[Bug 1764] New: RTEMS shell not always waiting for termination

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Mar 14 09:15:32 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1764

           Summary: RTEMS shell not always waiting for termination
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: shell
        AssignedTo: chrisj at rtems.org
        ReportedBy: dufault at hda.com
                CC: joel.sherrill at oarcorp.com


Sometimes two shells startup at the console and they get every other character
of input.  Observe, this is after a reset:

RTEMS SHELL (Ver.1.0-FRC):/dev/console. Mar 11 2011. 'help' to list commands.   
[/] #                                                                           
RTEMS SHELL (Ver.1.0-FRC):/dev/console. Mar 11 2011. 'help' to list commands.   
[/] # eecchhoo  121212                                                          
111                                                                             
[/] #                                                                           
222                                                                             
[/] # 
[/] # ttaasskk                                                                  
  ID       NAME           PRI  STATE MODES   EVENTS    WAITID  WAITARG  NOTES   
------------------------------------------------------------------------------  
0a010001   ntwk           100 READY  P:T:nA    NONE   1a01000b 0x210a28a8       
0a010002   DCrx           100 Wevnt  P:T:nA    NONE   1a01000b 0x210a28a8       
0a010003   DCtx           100 Wevnt  P:T:nA    NONE   1a01000b 0x210a28a8       
0a010004   TNTD           100 Wevnt  P:T:nA    NONE   55655191 0x210a28a8       
0a010005   RPCd           100 Wevnt  P:T:nA    NONE   1fb05ea2 0x210a28a8       
0a010006   SHLC           100 READY  P:T:nA    NONE   1a010004 0x210a28a8       
0a010007   SHLC           100 READY  P:T:nA    NONE   1a010004 0x210a28a8       

I start the shell up like this, so it shouldn't return until it terminates:

    while(1) {
        rtems_shell_init(
            "SHLC",                       /* task name */
            RTEMS_MINIMUM_STACK_SIZE * 16, /* task stack size */
            100,                          /* task priority */
            "/dev/console",               /* device name */
            false,                        /* run forever */
            true,                         /* wait for shell to terminate */
            0                             /* login check function,
                                           * use NULL to disable 
                                           * login check
                                           */
        );

This is a problem because I typically start my applications with a shell with
an optional startup file, and when this happens my application doesn't start
right, and it sometimes fails in the field.  It happens very rarely.  This is
happening in 4.11, but it also happened in 4.10.

I know this isn't much to go on, I'll try to watch for more clues.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list