Bug 125982 - ksnapshot "denial of service"
Summary: ksnapshot "denial of service"
Status: RESOLVED NOT A BUG
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 23:38 UTC by Tomasz Chmielewski
Modified: 2007-07-07 19:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Chmielewski 2006-04-20 23:38:21 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Mandriva RPMs
OS:                Linux

On my system, ksnapshot starts whenever I press PrintScreen button on the keyboard.

Unfortunately, if the PrintScreen button is pressed and not released, new instances of ksnapshot will start again and again.
The system will try to start dozens of ksnapshot processes every second, and, as a result, your system will be very slow or even freeze.

This can happen on several occasions:
1) if you accidentally press ksnapshot (you put a book on a keayboard)
2) if your system is slow, one presses PrintScreen to make a snapshot, and sees no immediate result (as ksnapshot is still starting), presses PrintScreen again, and again, or doesn't release it

IMO, ksnapshot, by default:
- shouldn't be allowed to start more than once at a time, or,
- start only once every few seconds, or,
- allow a maximum of 5 instances.

Perhaps the above values should be configurable.

I'm not sure if it's a bug or a feature request.
As I froze my system several times with ksnapshot started via PrintScreen, I'll post it as bug.
Comment 1 Maksim Orlovich 2006-04-20 23:50:16 UTC
PrintScreen invoking ksnapshot is a modification done by your distribution.
Comment 2 Nicolas L. 2006-06-15 23:43:30 UTC
for me this is a Ksnapshot bug anyway, because i have not to open multiple sessions of it,  it have t work like Kontact, konversation  like Kunique Application ( i hope that i use the good words :) )


WDYT ?
Comment 3 Richard Moore 2006-06-16 00:44:48 UTC
Still a won't fix
Comment 4 Tomasz Chmielewski 2006-06-16 00:53:01 UTC
Perhaps not a "WONTFIX", but a "WISHLIST" then.

IMHO attaching ksnapshot to PrintScreen key is quite useful.
Comment 5 Richard Moore 2006-06-16 01:00:49 UTC
On 15 Jun 2006 22:53:02 -0000, Tomasz Chmielewski <mangoo@interia.pl> wrote:
> ------- Additional Comments From mangoo interia pl  2006-06-16 00:53 -------
> Perhaps not a "WONTFIX", but a "WISHLIST" then.
>
> IMHO attaching ksnapshot to PrintScreen key is quite useful.
>


The trouble is that I use that to launch multiple snapshots for
different things, so a KUniqueApplication won't do it. In fact I think
it's one of those things where there isn't a right answer.

What I could see, is some sort of limit on the rate with which things
would get launched by global shortcuts. Either way, I don't see a bug
in ksnapshot here.

Cheers

Rich.
Comment 6 Tomasz Chmielewski 2006-06-16 11:41:29 UTC
> Either way, I don't see a bug in ksnapshot here.

It really depends on the user's perspective. From your point of view it's a feature, as you're able to launch multiple instances of ksnapshot.
From my point of view (and Nicolas Lécureuil's) it's a bug, because it's too easy to break the system.
Comment 7 Pacho Ramos 2007-07-07 19:20:21 UTC
This bug MUST be reopened, I have exactly the same behavior under Gentoo