[RTEMS Project] #2203: edit command results in crash in shell after save and exit.

RTEMS trac trac at rtems.org
Sun Nov 30 22:43:13 UTC 2014


#2203: edit command results in crash in shell after save and exit.
------------------------+-----------------------
 Reporter:  chrisj      |       Owner:  chrisj
     Type:  defect      |      Status:  accepted
 Priority:  highest     |   Milestone:  4.11
Component:  shell       |     Version:  4.11
 Severity:  blocker     |  Resolution:
 Keywords:  shell edit  |
------------------------+-----------------------

Comment (by chrisj):

 I have found the shell's command list is corrupted while editing a file. A
 bisect indicates the bug has been in the code from the start and I suspect
 a movement of code or data has made it appear.

 The variable to watch is 'rtems_shell_first_cmd'. If you open the
 scripts/js file and use the arrow key and move to the bottom of the file
 then up arrow on the third press (I think) gdb shows in edit.c 'up' entry:

 1: rtems_shell_first_cmd = (rtems_shell_cmd_t *) 0x209e388

 and after running the up code it becomes:

 1: rtems_shell_first_cmd = (rtems_shell_cmd_t *) 0x1b

 This is in the SIS simulator. This bug also happens on a zynq. I have not
 been able to set a watch point on the write in gdb running the SIS and
 have it break. Things get a little weird with stdout/stdin when the watch
 point is active.

--
Ticket URL: <http://devel.rtems.org/ticket/2203#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list