Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long command in ksh causes kernel fail #672

Open
jpszczolowski opened this issue Apr 10, 2020 · 2 comments
Open

Long command in ksh causes kernel fail #672

jpszczolowski opened this issue Apr 10, 2020 · 2 comments
Labels
bug non-critical bug in master

Comments

@jpszczolowski
Copy link
Collaborator

Steps to reproduce:

  • Launch /bin/ksh
  • Enter a long command like this (512 letters a):
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • Kernel fails:
(gdb) bt
#0  assert_fail (expr=expr@entry=0xc0137780 "state->compare.val > state->count.val", file=file@entry=0xc0137754 "/home/jpszczolowski/mim2/sys/mips/timer.c", line=line@entry=0x45) at /home/jpszczolowski/mim2/sys/kern/assert.c:16                          
#1  0xc0102fd4 in set_next_tick (state=0xc0140010 <mips_timer_state>) at /home/jpszczolowski/mim2/sys/mips/timer.c:69
#2  0xc0103000 in mips_timer_intr (data=0xc0140048 <mips_timer>) at /home/jpszczolowski/mim2/sys/mips/timer.c:79
#3  0xc0121cfc in intr_event_run_handlers (ie=ie@entry=0xc0143200 <mips_intr_event+392>) at /home/jpszczolowski/mim2/sys/kern/interrupt.c:91                                                                                                                 
#4  0xc0105724 in mips_intr_handler (frame=<optimized out>) at /home/jpszczolowski/mim2/sys/mips/interrupt.c:73
#5  0xc0102abc in mips_exc_handler (frame=0xc0025e14) at /home/jpszczolowski/mim2/sys/mips/trap.c:234
#6  0x801009a8 in kern_exc_enter () at /home/jpszczolowski/mim2/sys/mips/ebase.S:483
#7  0xc01219a4 in intr_enable () at /home/jpszczolowski/mim2/sys/kern/interrupt.c:28
#8  0x0000000c in ?? ()
@jpszczolowski jpszczolowski added the bug non-critical bug in master label Apr 10, 2020
@mzr
Copy link
Contributor

mzr commented May 4, 2020

Failed to reproduce on c92f35b
https://asciinema.org/a/SHRXxpVx7xlByQ2PNKEdnEXUi

@jpszczolowski
Copy link
Collaborator Author

@mzr I still see this panic on master branch. Maybe try longer command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug non-critical bug in master
Projects
None yet
Development

No branches or pull requests

2 participants