Results 1 to 6 of 6

Thread: Programs crash in Linux

  1. #1
    Join Date
    Nov 2009
    Posts
    3,020

    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,015

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,010

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,302

    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.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,394

    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.

  6. #6
    Join Date
    May 2008
    Posts
    2,393

    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.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •