Intentionally create an unresponsive graphical process
Sometimes I want to test how a graphical application behaves in response to SIGTERM, SIGQUIT, xkill, and that pop-up that says "Do you want to terminate this application?"
What's a simple and reliable method to intentionally create an unresponsive graphical process, with the idea of running it under e.g. strace?
signals debugging strace testing
This question has an open bounty worth +50
reputation from Nathaniel M. Beaver ending in 7 days.
The current answers do not contain enough detail.
Must include a working example in e.g. bash or python.
add a comment |
Sometimes I want to test how a graphical application behaves in response to SIGTERM, SIGQUIT, xkill, and that pop-up that says "Do you want to terminate this application?"
What's a simple and reliable method to intentionally create an unresponsive graphical process, with the idea of running it under e.g. strace?
signals debugging strace testing
This question has an open bounty worth +50
reputation from Nathaniel M. Beaver ending in 7 days.
The current answers do not contain enough detail.
Must include a working example in e.g. bash or python.
1
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51
add a comment |
Sometimes I want to test how a graphical application behaves in response to SIGTERM, SIGQUIT, xkill, and that pop-up that says "Do you want to terminate this application?"
What's a simple and reliable method to intentionally create an unresponsive graphical process, with the idea of running it under e.g. strace?
signals debugging strace testing
Sometimes I want to test how a graphical application behaves in response to SIGTERM, SIGQUIT, xkill, and that pop-up that says "Do you want to terminate this application?"
What's a simple and reliable method to intentionally create an unresponsive graphical process, with the idea of running it under e.g. strace?
signals debugging strace testing
signals debugging strace testing
asked Aug 26 '17 at 18:56
Nathaniel M. BeaverNathaniel M. Beaver
180118
180118
This question has an open bounty worth +50
reputation from Nathaniel M. Beaver ending in 7 days.
The current answers do not contain enough detail.
Must include a working example in e.g. bash or python.
This question has an open bounty worth +50
reputation from Nathaniel M. Beaver ending in 7 days.
The current answers do not contain enough detail.
Must include a working example in e.g. bash or python.
1
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51
add a comment |
1
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51
1
1
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51
add a comment |
2 Answers
2
active
oldest
votes
The exact answer will depend on the framework etc.
The common "thread" on all the GUI frameworks, is a central/main event handler that receives the events/requests to redraw, keyboard and mouse input etc.
That is then the handler where you can have a event that will not respond back, but sit in a tight while true; do nothing; done loop.
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
add a comment |
You could knock out a GUI app in a few lines and wrap it in something that caught your signals. Tkinter with python say is pretty trivial. See here
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f388520%2fintentionally-create-an-unresponsive-graphical-process%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The exact answer will depend on the framework etc.
The common "thread" on all the GUI frameworks, is a central/main event handler that receives the events/requests to redraw, keyboard and mouse input etc.
That is then the handler where you can have a event that will not respond back, but sit in a tight while true; do nothing; done loop.
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
add a comment |
The exact answer will depend on the framework etc.
The common "thread" on all the GUI frameworks, is a central/main event handler that receives the events/requests to redraw, keyboard and mouse input etc.
That is then the handler where you can have a event that will not respond back, but sit in a tight while true; do nothing; done loop.
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
add a comment |
The exact answer will depend on the framework etc.
The common "thread" on all the GUI frameworks, is a central/main event handler that receives the events/requests to redraw, keyboard and mouse input etc.
That is then the handler where you can have a event that will not respond back, but sit in a tight while true; do nothing; done loop.
The exact answer will depend on the framework etc.
The common "thread" on all the GUI frameworks, is a central/main event handler that receives the events/requests to redraw, keyboard and mouse input etc.
That is then the handler where you can have a event that will not respond back, but sit in a tight while true; do nothing; done loop.
answered Aug 26 '17 at 19:57
HvisageHvisage
1839
1839
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
add a comment |
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
I'm not particular about framework, anything quick and dirty will do.
– Nathaniel M. Beaver
Aug 26 '17 at 20:17
add a comment |
You could knock out a GUI app in a few lines and wrap it in something that caught your signals. Tkinter with python say is pretty trivial. See here
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
add a comment |
You could knock out a GUI app in a few lines and wrap it in something that caught your signals. Tkinter with python say is pretty trivial. See here
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
add a comment |
You could knock out a GUI app in a few lines and wrap it in something that caught your signals. Tkinter with python say is pretty trivial. See here
You could knock out a GUI app in a few lines and wrap it in something that caught your signals. Tkinter with python say is pretty trivial. See here
answered Aug 26 '17 at 20:48
AlwaysLearningAlwaysLearning
26113
26113
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
add a comment |
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
An actual example would be great.
– Nathaniel M. Beaver
Jun 6 '18 at 15:06
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f388520%2fintentionally-create-an-unresponsive-graphical-process%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I don't understand what you are trying to do, can you elaborate. I simple way to make it unresponsive is SIGSTOP.
– ctrl-alt-delor
Aug 26 '17 at 21:51