Discussion:
Dreaded Exception 13 (sigh)
(too old to reply)
Tim Reiff
2005-03-11 13:27:51 UTC
Permalink
Greetings all. I basically have everything done except background
processes, which don't seem to be a big deal. However, I'm getting an
"Exception 13" from Bochs when doing some seemingly harmless commands inside
the shell.c file in the "Spawn_Single_Command" function. I fear this
relates to a problem some others were having on Project 2 (I should add I'm
not using the provided solution code for this project).

Anyway, if I simply add a line like Print( "hi!" ) in that function, Bochs
will crash after I type any string at the shell and press enter. The same
will happen if I try to alter the command line at all to remove the '&'
character.

I think it must be something simple (and dumb) that I'm overlooking, just
not sure what. Anyone have any ideas, or remember how they fixed an
"Exception 13" previously (not sure if this would help)? On a possibly
related note, my shell crashes if I ever hit backspace and correct the
spelling of a program name. Are these errors connected? I'll take a break
and have a fresh look later I guess.

Thanks,

- Tim
Timothy Finley
2005-03-11 15:21:11 UTC
Permalink
Just a guess, maybe you are erroring out somewhere in the set row and
column syscall? I'm fairly sure that this is being called every time you
hit backspace and enter.

Tim
Tim Reiff
2005-03-11 19:29:08 UTC
Permalink
Ah, I thought I might be on to something with your suggestion, but never
found the error. I tested my Project 2 and it handled backspaces fine, and
as it turns out the Project 3 version only had problems when I altered the
code in shell.c. Weird. I finally gave in and used the Project 2 solution
as my base, copy/pasted the code in, and everything seems fine first try.
Too lazy now to figure out what the key difference was though :) Thanks for
the help,

- Tim

Loading...