Intentionally create an unresponsive graphical process












0















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?










share|improve this question















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
















0















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?










share|improve this question















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














0












0








0








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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










2 Answers
2






active

oldest

votes


















1














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.






share|improve this answer
























  • I'm not particular about framework, anything quick and dirty will do.

    – Nathaniel M. Beaver
    Aug 26 '17 at 20:17



















1














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






share|improve this answer
























  • An actual example would be great.

    – Nathaniel M. Beaver
    Jun 6 '18 at 15:06











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
});


}
});














draft saved

draft discarded


















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









1














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.






share|improve this answer
























  • I'm not particular about framework, anything quick and dirty will do.

    – Nathaniel M. Beaver
    Aug 26 '17 at 20:17
















1














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.






share|improve this answer
























  • I'm not particular about framework, anything quick and dirty will do.

    – Nathaniel M. Beaver
    Aug 26 '17 at 20:17














1












1








1







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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



















  • 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













1














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






share|improve this answer
























  • An actual example would be great.

    – Nathaniel M. Beaver
    Jun 6 '18 at 15:06
















1














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






share|improve this answer
























  • An actual example would be great.

    – Nathaniel M. Beaver
    Jun 6 '18 at 15:06














1












1








1







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






share|improve this answer













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







share|improve this answer












share|improve this answer



share|improve this answer










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



















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)