Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-06-2002, 07:55 PM   #1
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4

Rep: Reputation: 0
2.4.19 kernel kills application

Hello Linux experts

I was running linux kernel 2.4.14 uptill now. I had an application ( a logger ) that sets up some shared memory initially when it
starts up. Then it waits for someone to send it a message and
then logs that message. This was working fine in 2.4.14.
(I was starting it from the syslog script ).

When I tried the same app under 2.4.19, the application starts
ok, but is killed by something in a very short while. However if
I start it again later, it seems to keep running. There is no
core file or any message in the /var/log/messages.

I have put debug messages in the application and everything is
working fine. So the app is getting killed by the kernel.

Any ideas why this might be happening or how to debug it ?

Thanks in advance
Old 11-06-2002, 08:30 PM   #2
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 30
Did you write the app yourself?

If it's a commercial product, it might not be supported with that kernel.
Old 11-07-2002, 11:11 AM   #3
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Yes. I wrote the application myself. I have been running it for
a few months without any problems on 2.4.14 kernel.
Now I switched to 2.4.19 kernel and the darn thing is not
working the way it used to.

Any help will be greatly appreciated.

Old 11-07-2002, 11:57 AM   #4
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Have you recompiled it for the new kernel?
Which libraries does it use?
What are the error messages when you run it from a command line?
(/var/log/messages are kernel messages only).
Old 11-07-2002, 01:21 PM   #5
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4

Original Poster
Rep: Reputation: 0
No, I haven't recompiled it for the new kernel. The development machine I have is a Redhat 7.3 ( with 2.4.18-3 ) kernel on it.
The target machine is with 2.4.19 kernel. I don't have any development tools on the target.

The only libraries that this is using is and

When I run it from command line, it gives no error, it runs fine.
When I start it from syslog script also it gives no error, but the
process gets killed after it starts up ok.

I can start it up again on the command line and it will run fine.
I put a bunch of debug statements in my application code and
all of it is working fine. The application does not seem to have
any errors.

Old 11-07-2002, 02:57 PM   #6
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
A very long way to debug it is to try it with ebery kernel release from 2.4.14 to 2.4.19 and see at which it release it starts getting killed, then check the kernel changelog for the release of that kernel which kills it, and you might come across some clues in new kernel code that might be causing your app to die.
I know this is a very time-consuming and hard thing to do, but its the only one that comes to mind now..
Old 11-08-2002, 02:07 AM   #7
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Is it really the difference in kernel version? You said you where running it on a different machine is everything on the other machine identical to the one where it works, with exception of the kernel version?
How exactly is it started from syslog? And how are the scripts setup which run syslog? In my rotatelogs script I restart syslog to make sure it starts writing to the new log files instead of continueing with the old ones. It could be some script similar to this which is causing syslog along with your app to stop.
Just not sure if it's right to blame the kernel if you say it does work properly after starting it up again later.
Old 11-08-2002, 06:33 PM   #8
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4

Original Poster
Rep: Reputation: 0
I will try with earlier kernels ( like 2.4.18 ) to see if this problem
occurs there as well.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel upgrade kills networking swede Linux - Networking 2 07-28-2005 08:34 AM
Limit max thread and memory for application in linux kernel 2.4.x manhvt Linux - General 4 07-12-2005 03:41 PM
Compiled kernel kills Real Player acanton MEPIS 7 06-28-2005 02:28 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
kernel update kills laptop RH7.3 ASUS L3800 Smerk Linux - Distributions 3 01-15-2003 09:23 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration