[comp.unix.xenix.sco] memory fault

eric@abode.UUCP (Eric C. Bennett) (10/08/90)

Sometimes when I play the gin game (that came with SCO XENIX) the program
aborts and says,"Memory Fault" and dumps back to the $ prompt. Also, when
it does this, the commands that I type are not displayed on the screen
anymore and I am not able to log off. I have had this happen on one other
program (that did not come with the SCO XENIX 2.3.2 system) that I have.
Does anyone have ideas on what causes this? Is there any solutions? Also,
is there a way for the root user to log someone off of the system who is
on another terminal?

Thanks

Eric
-- 
     Eric C. Bennett     uucp: {elroy|cit-vax}!wciu!abode!eric
     El Monte, Ca    Internet: eric@abode.wciu.edu

If you can read this you aren't looking through the hubble space telescope!

mju@mudos.ann-arbor.mi.us (Marc Unangst) (10/08/90)

eric@abode.UUCP (Eric C. Bennett) writes:
> Sometimes when I play the gin game (that came with SCO XENIX) the program
> aborts and says,"Memory Fault" and dumps back to the $ prompt. Also, when
> it does this, the commands that I type are not displayed on the screen
> anymore and I am not able to log off. I have had this happen on one other
> program (that did not come with the SCO XENIX 2.3.2 system) that I have.

That sounds like a bug in the program.  Hardly surprising, considering
that it came with SCO Xenix.

To wake up your terminal, type 'stty sane' and then press ^J.  No, you
won't be able to see the characters echo.  Yes, you have to type ^J
instead of <return>.  That should fix things enough that you can reset
the terminal parameters the way you want them, or log out.  (FYI, the
problem is that when gin aborts, it leaves the terminal in 'raw' mode,
which means the tty driver doesn't interpret things like ^H, ^D, ^?,
^C, or any of the other characters it usually knows about.  It only
knows that ^J is the EOL character.  So, you need to run that 'stty'
command to put the terminal back into 'cooked' mode, where the tty
driver interprets all the control characters.)

> Does anyone have ideas on what causes this? Is there any solutions? Also,
> is there a way for the root user to log someone off of the system who is
> on another terminal?

Do a 'ps -fu user' command to find the PID of their login shell (it's
the one with argv[0][0] set to '-', and usually the lowest-numbered
PID in that process group), and then 'kill -1' it.

Note that this is a rather rude thing to do and won't exactly make the
user your best friend in the world.  They could potentially lose what
they're working on, which means you could get in trouble.  It's much
better to use 'write' to politely ask them to log off, and if they
don't do so in 5 minutes or so, ask them again.  Then, in another
minute or so, kill their shell if they're still logged on.

--
Marc Unangst               | "Decryption is not supported by crypt(C) in the
mju@mudos.ann-arbor.mi.us  |  export version of SCO Unix."
...!umich!leebai!mudos!mju |           -- SCO User Guide, Open DeskTop

silver@xrtll.uucp (Hi Ho Silver) (10/14/90)

In article <72@abode.UUCP> eric@abode.wciu.edu (Eric C. Bennett) writes:
$Sometimes when I play the gin game (that came with SCO XENIX) the program
$aborts and says,"Memory Fault" and dumps back to the $ prompt. Also, when
$it does this, the commands that I type are not displayed on the screen
$anymore and I am not able to log off. I have had this happen on one other
$program (that did not come with the SCO XENIX 2.3.2 system) that I have.

   I've found the games that ship with various Unix and Unix-like operating
systems to often be rather flaky.  When your commands don't appear, do they
take effect?  If so, try the usual stty sane trick:  type ^Jstty sane^J
and see if it fixes the problem.

$Does anyone have ideas on what causes this? Is there any solutions? Also,
$is there a way for the root user to log someone off of the system who is
$on another terminal?

   Generally, this can be done by killing off the user's processes.  When
the last one (your shell, usually) is killed, you're logged off.
-- 
HI ROGER |Nikebo says "Nikebo knows how to post.  Just do it."| silver@xrtll
_________|-----------------------|_______________|------------|_____________
yunexus!xrtll!silver (L, not 1)  | Hi Ho Silver  | costing the net thousands
Silver:  Ever Searching for SNTF |i need a grilf | upon thousands of dollars