PDA

View Full Version : [ubuntu] who "Killed" my process?



sbq
April 7th, 2009, 05:04 PM
Greetings,

My application runs as a background process on Ubuntu. It is currently started at the command line in a Terminal window.

Recently a user was executing the application for a while and it died mysteriously. The text:

Killed

was on the terminal. This happened two times. I asked if someone at a different Terminal used the kill command to kill the process? No.

Under what conditions would Linux/Terminal decide to kill my process and cause "Killed" to be displayed?

-Sam

Vadi
April 7th, 2009, 07:04 PM
It might've went haywire on memory and the kernel killed it.

sbq
April 7th, 2009, 07:14 PM
It might've went haywire on memory and the kernel killed it.

That must have been what happened. I wrote a program that malloc'd memory in an infinite loop. The system got really slow, then "Killed" appeared in the terminal window and the process was terminated. There were log messages written into /var/log/kern.log.