LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Kernel panic: killing interrupt handler! In interrupt handler - not syncing. (https://www.linuxquestions.org/questions/programming-9/kernel-panic-killing-interrupt-handler-in-interrupt-handler-not-syncing-805969/)

divyashree 05-04-2010 08:12 PM

Kernel panic: killing interrupt handler! In interrupt handler - not syncing.
 
I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings:

It takes srcIP, sourceport, destIP, destport and loadvalue as command line arguments. If configured load value is greater than 1, it creates different channels (i.e. No of UDP channels created equals to configured load value), assign different source port and destination port to different channels and send UDP datagram in different channels. Say for example the configured parameters are as follows srcIP=10.17.17.43 destIP= 10.17.17.44 sourceport=10000 destport= 20000 loadvalue=2. Then it creates two UDP different channels and transmits UDP packets (in every 20 milliseconds) to destination IP address (i.e., 10.17.17.44) with source port 10000, destination port 20000 in one channel and source port 10002, destination port 20000 in another channel.

When I configure to pass ?loadvalue=500? and run the module, I get the below kernel panic message in system log file (i.e., var/log/messages)


Quote:

<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing.

Running the same linux kernel module ,in 1000 loadvalue, I get this message,
Quote:

eth0: Out-of-sync dirty pointer, 49937 vs. 49954
in text console.

What are the root cause of these problems and how will I solve these ?

TB0ne 05-05-2010 01:58 PM

Quote:

Originally Posted by divyashree (Post 3957532)
I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings:

Running the same linux kernel module ,in 1000 loadvalue, I get this message, in text console.

What are the root cause of these problems and how will I solve these ?

Since you don't post any of your code, and you've written it for a VERY old kernel and version of Linux, there's not much for us to go on.

Since you wrote the code, you're the best one to debug it. Not sure what the point is, though, since even if you get it working right, it'll be useless for any modern distro, with a 2.6.xx kernel.

divyashree 05-12-2010 02:27 AM

Kernel Panic Messages:



Code:

Code: 8b 56 18 89 70 04 8b 46 1c c7 46 10 00 00 00 00 8b 7e 0c 89

 

<0>Kernel panic: Aiee, killing interrupt handler!

In interrupt handler - not syncing

 

Call Trace:

c01dd0bc ide_wait_stat c01dcff0

c01dd4a6 start_request c01dd2e0

c01dd6ae ide_do_request c01dd5e0

c01dd98d ide_timer_expiry c01dd8a0

c01dd8a0 ide_timer_expiry c01dd8a0

c012167b run_timer_list c0121570

c011d332 bh_action c011d310

c011d246 tasklet_hi_action c011d200

c011d085 do_softirq c011cff0

c0108b9e do_IRQ c0108b00

c0105360 default_idle c0105360

c010b208 call_do_IRQ c010b203

c0105360 default_idle c0105360

c0105383 default_idle c0105360

c0105412 cpu_idle c01053c0

c0105000 rest_init c0105000


TB0ne 05-12-2010 10:00 AM

Quote:

Originally Posted by divyashree (Post 3965434)
Kernel Panic Messages:

Ok...is there some point/question to that post??? We get that you're having kernel panic messages. Did you read my first post? About the very old system you're running on? About how you haven't posted any of your code, or given us any details about it??

Without information, we can't help. And again, YOU wrote this code....YOU are the best person to debug it.

divyashree 05-14-2010 07:48 AM

Quote:

Originally Posted by TB0ne (Post 3965812)
Ok...is there some point/question to that post??? We get that you're having kernel panic messages. Did you read my first post? About the very old system you're running on? About how you haven't posted any of your code, or given us any details about it??

Without information, we can't help. And again, YOU wrote this code....YOU are the best person to debug it.

No Guruji ,actually this is a task given by my boss to me ..

pixellany 05-14-2010 07:55 AM

In your first post, you said you wrote it:
Quote:

I have written a Linux kernel module
Who is "Guruji" ??

Aquarius_Girl 05-14-2010 07:59 AM

Quote:

Originally Posted by pixellany
Who is "Guruji" ??

LOL

She must be referring to TB0ne as he is titled "Guru" and "ji" is a mark of respect in Hindi.

pixellany 05-14-2010 08:03 AM

She?

Obviously, you recognize the name. Which part of the screen name is the feminine name that you are seeing?

Aquarius_Girl 05-14-2010 08:04 AM

"divyashree" This whole word is a girl's name in India !

pixellany 05-14-2010 08:30 AM

I am reasonably clueless about Indian culture and language. Really hope to visit someday.....

Aquarius_Girl 05-14-2010 09:05 AM

Quote:

Originally Posted by pixellany (Post 3968370)
I am reasonably clueless about Indian culture and language.

I can imagine how much difficult it is for you to pronounce that name *properly* :)

But in fact it is a very sweet name pronounced as follows:
div--ya--sh--ree

And you must be thinking anishakaul is a weird screen name.
But in fact anisha is my actual first name and kaul is my actual last name.

Quote:

Originally Posted by pixellany (Post 3968370)
I am reasonably clueless about Indian culture and language. Really hope to visit someday.....

You are most welcome here :hattip:
and you must visit South India. Southern India has still a lot of culture preserved.

TB0ne 05-14-2010 10:26 AM

Quote:

Originally Posted by divyashree (Post 3968315)
No Guruji ,actually this is a task given by my boss to me ..

Ok...then how about this: WHOEVER wrote the code, is the person responsible for debugging it. If your boss gave you the code to debug, then it is YOUR responsibility to do it. You have the source code, there's not much more help anyone can give you.

divyashree 05-14-2010 12:14 PM

Quote:

Originally Posted by TB0ne (Post 3968498)
Ok...then how about this: WHOEVER wrote the code, is the person responsible for debugging it. If your boss gave you the code to debug, then it is YOUR responsibility to do it. You have the source code, there's not much more help anyone can give you.

No No ,that's not the case . The code is not given but the question is asked to find what may the possible cause of that and the solution ...

divyashree 05-14-2010 12:16 PM

Quote:

Originally Posted by anishakaul (Post 3968331)
LOL

She must be referring to TB0ne as he is titled "Guru" and "ji" is a mark of respect in Hindi.

Ya Anisha you r right ,I referred to Tbone as Guruji

divyashree 05-14-2010 12:18 PM

Quote:

Originally Posted by pixellany (Post 3968370)
I am reasonably clueless about Indian culture and language. Really hope to visit someday.....

You are mostly welcome sir .


All times are GMT -5. The time now is 04:45 AM.