Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Programs crash in Linux

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-01-2010
Member
 
Join Date: Nov 2009
Posts: 3,014
Programs crash in Linux
  

Hi,
What to do if a program is crashed in Linux. Like in Windows we run the Task Manager. Then in the process tab we select the service and then we click on End process. How the same can be done in Linux. There are some command but I am unfamiliar with them. How to run them and get rid of annoying services which is freezing the system.

Reply With Quote
  #2  
Old 17-01-2010
Member
 
Join Date: May 2008
Posts: 2,001
Re: Programs crash in Linux

If the program is not running in the background and you have access to launch terminal, type ctrl + c. If this does not work, try Ctrl + z to suspend the program and recover the shell. You can also use another terminal and run: $ killall -9 and the name of program. This will help you to end process your program in case of crash.
Reply With Quote
  #3  
Old 17-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,993
Re: Programs crash in Linux

If the command fails then to identify the pid of the program, run the ps command: $ ps -ax. The pid of the program is the first number. Otherwise, you can: $ kill -9 ps -ax . Under the X Window graphical environment the same method still works, but is often more difficult because the number of processes is important, and identify the right is not always obvious. The simplest is to use xkill is a kill in graphics mode: the cursor turns into a cross and then simply click on the window that does not respond immediately to kill the process crashed.
Reply With Quote
  #4  
Old 17-01-2010
Member
 
Join Date: May 2008
Posts: 2,283
Re: Programs crash in Linux

You can get a crash analyzing tool for the Linux system. This tool analyzes the kernal crash which has occurred and the core dump which is created by the netdump. Crash is an tool which easy to use and gives out optimum result. It is has a enhanced gdb debugger which is based on SVR4 UNIX crash command. So this can give you a better output.
Reply With Quote
  #5  
Old 17-01-2010
Member
 
Join Date: Oct 2005
Posts: 2,385
Re: Programs crash in Linux

LKCD is a set of Linux kernel patches and tools to save a copy of kernel memory when it panic. The kernel memory dump analysis allows afterward the cause of his panic. Thanks to the tools included in the package. Most commercial Unix systems come with similar tools. On Linux, however, this package is fairly new and should be added manually.
Reply With Quote
  #6  
Old 17-01-2010
Member
 
Join Date: May 2008
Posts: 2,373
Re: Programs crash in Linux

Here are some list of killall command for Linux. Killall -z for context patter, -e for exact, i for interactive, -g for process group, s fo signal, w for wait, V for version, q for quiet, r for regexp, etc. This commands a end up a the process and sends a end signal to all the running commands. The signals are specified in SIGTERM or eght by -HUP.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Programs crash in Linux"
Thread Thread Starter Forum Replies Last Post
Run windows programs in Ubuntu Linux Computer_Freak Tips & Tweaks 1 05-06-2011 08:08 AM
Which programs should be ported to Linux? Daamodar Operating Systems 3 11-11-2010 05:17 PM
How to Uninstall programs in Linux Gillian Anderson Operating Systems 5 24-03-2010 11:34 AM
Good Paint programs for Linux? Endowed Operating Systems 4 15-03-2010 05:24 PM
Programs get Crash on XML Files Anwar Software Development 3 23-04-2009 01:54 PM


All times are GMT +5.5. The time now is 11:28 PM.