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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-06-2002, 08:55 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4
Rep:
|
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
Goody
|
|
|
11-06-2002, 09:30 PM
|
#2
|
Member
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177
Rep:
|
Did you write the app yourself?
If it's a commercial product, it might not be supported with that kernel.
|
|
|
11-07-2002, 12:11 PM
|
#3
|
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4
Original Poster
Rep:
|
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.
Goody
|
|
|
11-07-2002, 12:57 PM
|
#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:
|
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).
|
|
|
11-07-2002, 02:21 PM
|
#5
|
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4
Original Poster
Rep:
|
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
libc.so.6 and
ld-linux.so.2
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.
Thanks
Goody
|
|
|
11-07-2002, 03:57 PM
|
#6
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
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..
-NSKL
|
|
|
11-08-2002, 03:07 AM
|
#7
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
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.
|
|
|
11-08-2002, 07:33 PM
|
#8
|
LQ Newbie
Registered: Nov 2002
Location: USA
Distribution: redhat
Posts: 4
Original Poster
Rep:
|
I will try with earlier kernels ( like 2.4.18 ) to see if this problem
occurs there as well.
Thanks
|
|
|
All times are GMT -5. The time now is 12:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|