Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Thread Tools Search this Thread Rate Thread
Old 19-Jun-2012, 01:55
ahbi82 ahbi82 is offline
Regular Member
Join Date: Jul 2006
Posts: 325
ahbi82 has a spectacular aura aboutahbi82 has a spectacular aura about

Help in kernel module

I got a 3rd party PCIe hardware. They provided me with the driver code to comiple Compilation was successful. However when i run the sample program provided, the system froze and nothing can be done.

I tried with CentOS 6.2 Fedora 15, etc, and it all appears the same.
I sent a support ticket and ask for the recommended linux dist and kernel version. To cut things short, the lib provided was compiled with glibc 2.13. But my system has glibc 2.14. They said that might be the problem.

From my knowledge, glibc are just standard c libraries and i don't think glibc213 has big difference with gibc214. Heres the change log i found, and mostly are bug fixes.

That's why i don't think its glibc thats causing the freeze.

Kdump seems to be a good utility to for debugging.
How do i use to debug "frozen" applications.
Any suggestions are welcomed.

BTW i'm new to linux
Old 08-Jul-2012, 21:22
aijazbaig1's Avatar
aijazbaig1 aijazbaig1 is offline
Join Date: May 2006
Location: India
Posts: 174
aijazbaig1 has a spectacular aura aboutaijazbaig1 has a spectacular aura about

Re: Help in kernel module

A device driver is a kernel mode component. (You probably do know I guess but let me say a few words on it )

What that means is, it lives along with the kernel (aka in the same address space). More about address spaces can be searched on the internet. Heres a very good link explaining how a program "typically" looks like while being executed. So debugging a frozen driver means debugging the kernel space on which you current are running. And thats not a great idea to do it from within itself. And since the system freezes for any bad behavior inside the kernel, one has to resort to remote debugging.

There are quite a few debuggers for the linux kernel. However if you are looking for debugging a 'live' kernel (on which you are running), theres kdb I believe. But the best way to debug a kernel mode component, is to typically use another machine and connect the target machine with the host machine serially or over the ethernet (or via JTAG)

Heres an article to get you started.
Hope to hear from you guys!


Best Regards,
Aijaz Baig.
Last edited by aijazbaig1 : 08-Jul-2012 at 22:35.
Old 08-Jul-2012, 23:04
ahbi82 ahbi82 is offline
Regular Member
Join Date: Jul 2006
Posts: 325
ahbi82 has a spectacular aura aboutahbi82 has a spectacular aura about

Re: Help in kernel module

Thanks for the reply. The driver and libraries are provided by 3rd party. There isn't much i can do about it. But everytime i execute the sample program, the system freezes. I wanted to capture the point where it freezes. I had a look at kdump, some learning curve required.
Old 02-Oct-2013, 06:12
maruti-strad maruti-strad is offline
Account Disabled
Join Date: Oct 2013
Posts: 25
maruti-strad is an unknown quantity at this point

Re: Help in kernel module

nice suggestions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DLP Module Beta Testers Needed jasonlfunk Apache Web Server Forum 0 30-Aug-2011 13:15
Linux Kernel Upgrade Mini Howto dsmith Computer Software Forum - Linux 4 31-Mar-2011 13:45
kernel compiling & Geforce updating crystalattice Computer Software Forum - Linux 5 16-Jun-2004 07:38
passing data in module jack Apache Web Server Forum 0 08-Feb-2004 00:40
Kernel panic: No init found JdS Computer Software Forum - Linux 9 04-Dec-2003 02:26

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:35.

vBulletin, Copyright © 2000 - 2018, Jelsoft Enterprises Ltd.