public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SysRq behavior
@ 2000-12-09  6:24 Frédéric L . W . Meunier
  2000-12-10 23:04 ` Pavel Machek
  0 siblings, 1 reply; 6+ messages in thread
From: Frédéric L . W . Meunier @ 2000-12-09  6:24 UTC (permalink / raw)
  To: linux-kernel

I don't remember having the same problem months (6?) ago when
I built my first Kernel with this enabled (well, maybe I never
touched the key).

When built into the Kernel, by only pressing the
PrintScreen/SysRq the current application is terminated (tested
on a console and GNU screen). Is this just me or I should
expect it?

% calc
C-style arbitrary precision calculator (version 2.11.2t1.0)
Calc is open software. For license details type:  help
copyright
[Type "exit" to exit, or "help" for help.]

> zsh: quit

While running the application I press the key and you see the
result. It's very annoying because I accidentaly keep touching
it.

Kernel 2.2.17 on x86 (br-abnt2 keyboard, kbd 1.03). glibc 2.2,
but Kernel compiled with egcs 1.1.2.

The SysRq stuff works:

Dec  9 04:09:05 pervalidus kernel: SysRq: unRaw saK Boot Sync
Unmount showPc showTasks showMem loglevel0-8 tErm kIll killalL

-- 
0@pervalidus.{net,{dyndns.}org} TelFax: 55-21-717-2399 (Niterói-RJ BR)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SysRq behavior
  2000-12-09  6:24 SysRq behavior Frédéric L . W . Meunier
@ 2000-12-10 23:04 ` Pavel Machek
  2000-12-11 23:00   ` James Simmons
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Machek @ 2000-12-10 23:04 UTC (permalink / raw)
  To: Frédéric L . W . Meunier, linux-kernel

Hi!

> I don't remember having the same problem months (6?) ago when
> I built my first Kernel with this enabled (well, maybe I never
> touched the key).
> 
> When built into the Kernel, by only pressing the
> PrintScreen/SysRq the current application is terminated (tested
> on a console and GNU screen). Is this just me or I should
> expect it?

Probably bug. Happens for me, too, and it is pretty nasty.

								Pavel
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SysRq behavior
  2000-12-10 23:04 ` Pavel Machek
@ 2000-12-11 23:00   ` James Simmons
  2000-12-12  0:05     ` Alan Shutko
  2000-12-17 10:34     ` Tuomas Heino
  0 siblings, 2 replies; 6+ messages in thread
From: James Simmons @ 2000-12-11 23:00 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Frédéric L . W . Meunier, linux-kernel


> Hi!
> 
> > I don't remember having the same problem months (6?) ago when
> > I built my first Kernel with this enabled (well, maybe I never
> > touched the key).
> > 
> > When built into the Kernel, by only pressing the
> > PrintScreen/SysRq the current application is terminated (tested
> > on a console and GNU screen). Is this just me or I should
> > expect it?
> 
> Probably bug. Happens for me, too, and it is pretty nasty.

Just played with this bug. It doesn't kill a login shell but does any
app running on it. I just went looking for where "Quit" is printed
out. When I press SysRq Quit is printed on the command line. Any ideas?


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SysRq behavior
  2000-12-11 23:00   ` James Simmons
@ 2000-12-12  0:05     ` Alan Shutko
  2000-12-14 23:34       ` Pavel Machek
  2000-12-17 10:34     ` Tuomas Heino
  1 sibling, 1 reply; 6+ messages in thread
From: Alan Shutko @ 2000-12-12  0:05 UTC (permalink / raw)
  To: James Simmons
  Cc: Pavel Machek, Frédéric L . W . Meunier, linux-kernel

James Simmons <jsimmons@suse.com> writes:

> Just played with this bug. It doesn't kill a login shell but does any
> app running on it. I just went looking for where "Quit" is printed
> out. When I press SysRq Quit is printed on the command line. Any ideas?

Not a bug.  Normally,. PrtSc will generate a ^\, which is the default
value of stty quit.  Try

stty quit ^A
cat

and hit PrtSc

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
If you have to think twice about it, you're wrong.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SysRq behavior
  2000-12-12  0:05     ` Alan Shutko
@ 2000-12-14 23:34       ` Pavel Machek
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Machek @ 2000-12-14 23:34 UTC (permalink / raw)
  To: Alan Shutko, James Simmons
  Cc: Pavel Machek, Frédéric L . W . Meunier, linux-kernel

Hi!

> > Just played with this bug. It doesn't kill a login shell but does any
> > app running on it. I just went looking for where "Quit" is printed
> > out. When I press SysRq Quit is printed on the command line. Any ideas?
> 
> Not a bug.  Normally,. PrtSc will generate a ^\, which is the default
> value of stty quit.  Try
> 
> stty quit ^A
> cat
> 
> and hit PrtSc

Okay, perhaps then it is bad for PrtSc to generate such dangerous
combination by default. Still bug ;-).
								Pavel
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: SysRq behavior
  2000-12-11 23:00   ` James Simmons
  2000-12-12  0:05     ` Alan Shutko
@ 2000-12-17 10:34     ` Tuomas Heino
  1 sibling, 0 replies; 6+ messages in thread
From: Tuomas Heino @ 2000-12-17 10:34 UTC (permalink / raw)
  To: James Simmons
  Cc: Pavel Machek, Frédéric L . W . Meunier, linux kernel

On Mon, 11 Dec 2000, James Simmons wrote:

> > > When built into the Kernel, by only pressing the
> > > PrintScreen/SysRq the current application is terminated (tested
> > > on a console and GNU screen). Is this just me or I should
> > > expect it?

Well this should happen even when sysrq is NOT compiled into the kernel...

> > Probably bug. Happens for me, too, and it is pretty nasty.

Not a bug - just an easy-to-disable "feature" - read on ;)

> Just played with this bug. It doesn't kill a login shell but does any
> app running on it. I just went looking for where "Quit" is printed
> out. When I press SysRq Quit is printed on the command line. Any ideas?

Well that "print-screen" key is usually bound to ^\ :

% dumpkeys | grep 'e  99'
keycode  99 = Control_backslash
        control alt     keycode  99 = Meta_Control_backslash

Now by default ^\ is bound to sigquit - and should be as quite a few
programs depend on that...

% dumpkeys | grep [^_]Control_backslash
keycode   5 = four             degree           dollar
Control_backslash Control_backslash
        altgr   control keycode  12 = Control_backslash
        control keycode  43 = Control_backslash
keycode  99 = Control_backslash

Looks like there're quite a few ways to generate ^\ - so disabling one of
them won't hurt:

% echo 'keycode  99 = VoidSymbol' | loadkeys

(Note that this leaves all the "modified" versions of sysrq to do whatever
they were already doing - so shift-printscreen will still generate ^\)

In any case putting that somewhere in your bootup scripts should solve it ;)

(or even users' login scripts as Linux allows anyone to screw up the
keyboard mappings - why?!)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-17 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-09  6:24 SysRq behavior Frédéric L . W . Meunier
2000-12-10 23:04 ` Pavel Machek
2000-12-11 23:00   ` James Simmons
2000-12-12  0:05     ` Alan Shutko
2000-12-14 23:34       ` Pavel Machek
2000-12-17 10:34     ` Tuomas Heino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox