Programming :: Debugging Kernel Binaries And Modules

Jun 13, 2011

I need to debug "ls". I downloaded coreutils and compiled them in debug mode."ls" uses readdir() kernel API to fetch files/directories from a file system. readdir() fetch data from any file system (suppose FAT or ext3).I have debug version of FAT/ext3 and installed, I also have debug version of coreutils (ls) as well.Now I want to debug from "ls" to "FAT/ext3 readdir()".How to do that?

View 6 Replies


Programming :: Effective Debugging Or Improving Ones Debugging Skills ?

May 21, 2009

Does anyone know how can one improve his debugging skills or how can one narrow down the problem and try to get to the solution ASAP.Or rather how once should approach a problem.I know this is a bit vague question but I want to know how you people approach?

View 3 Replies View Related

Slackware :: ERROR: No /lib/modules/ Kernel Modules Tree Found For Kernel "" ... For Mkinitrd - Encrypted Installation

Jul 22, 2010

I am trying to setup Slacware 13.1 x86_64 to a encrypted partition. I used the README_CRYPT.TXT howto : [URL] At the step when I create an initrd.gz I get this error: Quote: ERROR: No /lib/modules/ kernel modules tree found for kernel ""

I tried to look into the directory and there was only modules under So I tried to change the command into: Quote: mkinitrd -c -k -m ext3 -f ext3 -r cryptroot -C /dev/sda2

This command was successful, but I don't know if this is alright. I made the changes in lilo.conf, add initrd = initrd.gz. This is all on unencrypted /boot partition. The boot=/dev/sda1 I also set for the unencrypted boot partition. When I boot the system I get a kernel panic:


View 5 Replies View Related

Programming :: Using SIGNALS In Kernel Modules?

Apr 23, 2010

I am writing a kernel module which need to do something at some interval. Now this problem can be solved by using a user process, which will send signal to the kernel and the kernel would do accordingly. But it would be nice, i could do it within the kernel module itself. Is there any way to use SIGNALs inside the kernel module?

View 3 Replies View Related

OpenSUSE Hardware :: Unable To Start VirtualBox Kernel Modules - Error Stopping VirtualBox Kernel Modules

Mar 23, 2011

I was trying to install VirtualBox through the YaST > Software Management but it is not working, someone in the forum told me that I have to download the OSE version and do it manual way. Finally I am able to start up VB but not able to use the network connection. Thus I am trying to do this:

/etc/init.d/vboxdrv setup. I get this error:


When I type dmesg, it shows me a bunch of info which I don't know what should look for. When I type modprobe vboxnetflt, I get the error: FATAL: Error inserting vboxnetflt (/lib/modules/ Invalid module format. what should I do in order to get my VB to be able to connect to the internet?

View 5 Replies View Related

Programming :: Building And Running New Kernel Modules In An X86 Pc

Sep 26, 2010

I have an x86 pc and installed lucid these are the details of my distribution version:

I am trying to build a kernel module i am getting the following error:

How to build kernel modules

View 3 Replies View Related

Programming :: Avoiding Global Variables In Kernel Modules?

Jun 27, 2010

I have two modules A and B in the kernel which i am trying to hack by introducing a variable in A which is of type 'extern' (and using EXPORT_SYMBOL) and then calling it in B. Now the problem is how to introduce that variable in module A. Currently i have made a global variable and it works fine but global variable in kernel is a bad bad thing.

I tried having an 'extern' function in A which have that variable and calling that function in module B, but then again how would module A use my variable unless the variable is available outside the scope of that function and that again means a global variable.

View 3 Replies View Related

Programming :: How To Install Kernel Modules Automatically After Device Insertion

Jan 18, 2011

ubuntu could delay kernel module installation until device is inserted?Take my usb ath9271 wifi adapter as an example: when kernel boot up, no ath modules are installed until usb wifi apdapter is inserted, ath related modules are insmod.Could anybody how to achieve this? udev or something else?

View 5 Replies View Related

Ubuntu :: Program Kernel Modules And Smoothly Transition In Device Driver Programming?

Apr 27, 2011

i am trying learn to program linux kernel modules and smoothly transition in device driver programming. I have a year and a half worth of programming in C and have been using linux for years!! But my question is how do i compile a module? I got as far as coding it but am stuck as of now.

View 2 Replies View Related

Software :: Kernel Debugging In Fedora 11

Dec 24, 2010

I am trying to do remote debugging of kernel 2.6.30 form fedora 11 (2.6.29).For this gdb and kgdb are there in the kernels. But am not able to use it.I have not any manual for plz tell me the procedure of remote debugging.

View 7 Replies View Related

CentOS 5 :: Kernel Debugging (structures) At Runtime

Dec 3, 2009

I'm trying to do some kenel debugging (at runtime). For very basic debugging, I've inserted some printk() statements in my customized kernel source. Now I would like to do a full-dump of some data structures (struct sk_buff, ...) in different functions (e.g. netif_rx(), ip_rcv(), __udp4_lib_rcv(), ...), and what kind of locks are required to prevent "overlapping" of dumped data)?

View 1 Replies View Related

Ubuntu :: Error : After Installing Linux-kernel-pae And Binaries

Dec 11, 2010

I read in some website and thought of giving a shot at the pae enabled kernel as i was having 6GB of RAM available in my system. I couldn't use 64bit system because i have a lot of applications that are not available in 64bit. I use a few customised software (From my office corporate) they are 32bit too.
Here is what i did..

sudo install linux-generic-pae
It installed a few headers and packages additionally required.
and i did a reboot.


An alternate solution to use all the 6GB is also welcome... using the current pae enabled kernel. do i need to install any additiona drivers..While i try to load Xwindows.. I get the following error.A long error report is generated and at the end "No Xwindows system installed.."

View 4 Replies View Related

Ubuntu :: Debugging Device Driver In Kernel Mode

Nov 10, 2010

I am writing a device driver on x86 machine,Ubuntu distribution,kernel version 2.6.35.I want to debug my driver in kernel mode.I tried KGDB(Kernel Level Source Debugger).But support is given for kernel version 2.6.13.But I want to make KGDB work on version 2.6.35.Could anyone help me where can I get help to make KGDB work on 2.6.35 version?Or is there any other method to debug my driver using some other tool?

View 1 Replies View Related

OpenSUSE :: Kernel Module / Building VirtualBox Guest Additions Kernel Modules - Failed?

Feb 10, 2010

I installed openSUSE 11.2 on virtualbox. My host is windows 7. I tried to install the guest additions, but i get an error saying

Building VirtualBox Guest Additions Kernel Modules...Failed
(Your system does not seem to be set up to build kernel modules)

How should i go about to let my system build kernel modules?

View 7 Replies View Related

Debian Configuration :: Compile Custom Kernel Without Debugging Symbols

Aug 3, 2010

I've compiled 2.6.35 for my eeepc, but I have noticed that resulting .deb file is 30mb large. After investigating i saw that modules (and maybe kernel) are compiled with debugging symbols enabled.I've checked my lenny router and modules there are without debugging symbols.So stock 2.6.26 from lenny comes without debugging symbols and linux-image .deb file is around 20mb.Stock 2.6.32-5-686 from squeeze comes with debugging symbols enabled - linux-image .deb here is 26mb. (I have used 2.6.32's .config file to build my kernel, then i did make oldconfig.)I guess this is what increase my kernel size, but how to disable it?Or maybe enable stripping of debugging symbols.

View 3 Replies View Related

Fedora :: Debugging Memory Error Lockup & Kernel Panic?

Jan 31, 2010

I am having a problem with lockups on a new FC12 box (dual core 3 ghz, 4 gb memory,HDPVR,nvidia 8400gs). This happens reliably when replaying MythTV videos, but also randomly at other times using other apps (I suspect also boot but I can't be sure; it just occasionally stalls part way through the boot display).

Usually but not always this is accompanied by a kernel panic (caps lock + scroll lock lights flash on keyboard).

I did a core dump with kdump and it reports:

Thread 1 (<main task>):
Cannot access memory at address 0xffff880028025b70

I am in the process of running memtest86+ right now, and it's been through several passes without errors. I know it needs to run more, but given the reliability of this problem with MythTV video playback I am wondering if the problem could be in the video card memory.

Does anyone know of a linux (or bootable) tester for video memory? All I am able to find are some things for windoze like this.

Also is there any way to track that address from the core dump back to a physical location?

View 2 Replies View Related

Programming :: Debugging Multithreaded Application?

Aug 23, 2010

i need to debug a application which is using many threads. i am using eclipse with GDB debugger but it is not possible to debug it since it has a lot of different threads and i can not not debug it as wre debug in case of single thread(main) . So i would like to know, is there a way to debug such an application, if there is some tutorial that would be nice to know.

View 8 Replies View Related

Programming :: GDB (No Debugging Symbols Found)

Oct 19, 2010

I'm running gdb across a network using gdb server. I've got it up and running. However I can't see any source or variables for my code (in ddd /gdb). At start up gdb says (no debugging symbols found). I've got a g in my make file,
CPFLAGS = -Wall -Os -g -pedantic

I've tried loading symbols in using "symbol-file testarm", this sort of works in that I can view symbols but not names, e.g. if I ask dd to show x y and z, rather than
x = 10
y = 20
x = 30

It says:

Also ddd does not show anything in the source window, is there a way I can get it to show this? I think it's because I've started ddd with ddd arm-linux-gdb, as I'm calling a crosscompiler gdb. So can I tell ddd to point to the correct folders? What commands I need to set in gdb/ddd to view variable names (it's hard to keep track when it bunches them all together) and how to view my source code.

View 2 Replies View Related

Programming :: Switch Between Processes When Debugging With Gdb?

Feb 11, 2011

How to switch between processes when debugging with gdb?

View 2 Replies View Related

Programming :: Compiling Binaries With Static Linkers

Sep 3, 2010

I am trying to compile certain Linux general utilities like ls, lsof, ping, netstat with static linkers and not sure how do that. Does any one aware how to compile the application with statically rather than dynamically.

View 4 Replies View Related

Debian Programming :: Building Gtk-sharp2 Binaries On Testing

Nov 20, 2014

I am trying to build architecture specific binaries of gtk-sharp2. So far I have been unable to get gtk-sharp2 to build even without specifying a specific architecture. I got the source with apt-get source gtk-sharp2 and attempted ./configure, make, but it fails to build with the error message:

Code: Select allNo rule to make target 'thread.c', needed by 'thread.lo'.

I've also tried downloading the source directly from the mono project [URL] ...., but when building it fails with

Code: Select all#error "Only <glib.h> can be included directly."

This site [URL] .... provides a patch to fix the error, but when I applied it I got the same error.

I think the Debian version applied the patch correctly, but for some reason I still get that other error message.

These message outputted by configure may point to the problem:

"checking if gcc supports -fno-rtti -fno-exceptions... no"
"./configure: line 12920: enable_msi: command not found"

View 2 Replies View Related

Programming :: Debugging GTK + Programs Hangs The System?

Oct 28, 2010

A thread-aware version of gdb receives a system notification when a thread starts in the app it is debugging. GTK+ has hidden threads associated with loading icons into menus. So trying to debug a GTK+ program, even one that is apparently single-threaded, can produce a deadlock between gdb, the app and XWindows. The app (actually GdkPixbufLoader) grabs the focus, the mouse and the keyboard and then starts a thread when a menu is opened. If gdb has trouble with threads, it leaves the app blocked but still holding the mouse, et. al. Then you can't talk to gdb or any other GUI interface. To make gdb happy, all GTK+ apps need to be linked with -pthread, if you have the source. If not, gdb cannot be used. In order to break the deadlock, you need a non-GUI shell. If your /etc/inittab starts agetty, mingetty, or the like, and you can get to it with <CRTL><ALT><F3...F6>, you can do a kill -KILL <pid> on the offending app, recover and then go back to XWindows with <CTRL><ALT> <F1/F2>. Otherwise it's reboot time.

View 3 Replies View Related

Programming :: Debugging Nasm Source Code ?

Dec 5, 2010

I found on the Internet a rough suggestion to debug code which says to add a line:

An example shows this lists the lines of source that do work.

I do not know where these lines are supposed to go and whether the "notdeadyet" should be a call to a subroutine or what. I only found that "%define" is used to link to external files, so I am confused because what I tried did not work.

(I am unable to use (and learn) any debugging tool for another few weeks and I'd like to progress on this If I can.)

View 2 Replies View Related

Programming :: Debugging QT Project Through GDB In Command Line?

Jan 31, 2011

First step will obviously be to compile the QT project with -g option, but how to do that through command line?

View 6 Replies View Related

Programming :: Gdb Debugging Exec From Child Process?

Jul 14, 2011

Im using gdb for debugging my application.. I was able to debug child process(when fork comes) .. and in child process we have an exec call to .... So the problem is, when the control come to exec , the exec process is executing at a time... I could not debug the exec. process... error is stack curruption due to same frame So, is there any way to debug the exec process

View 1 Replies View Related

Programming :: Make File Debugging Racking?

Feb 24, 2010

I have an environment where i have recursive make files (that is one main and in each directory of a project a with rules for that directory).Since i'm not the one who wrote it i'm not familiar with it. I would like to explore when i run certain targets how the rules work, which files cause dependency rules to work and why. Also i would like to know ALL the targets that are available to me. i couldn't find any way to 'debug' makefiles or to put it in such debug mode that i see all the information i need when i run a certain target.

View 4 Replies View Related

Programming :: Working With C++ And Autotools - Debugging Application ?

Mar 22, 2010

I have started to work with c++ and autotools.

I mainly maintain an application and a shared library as a hobby.

Nothing professional yet, because I want to understand the best practice strongly recommended by advanced professional programmers.

I check out my sources into $HOME/repository and svn creates:

Where I get c++ sources/headers + and

Now I need to understand what is considered as a good practice for debugging application, either A), B) or something else.

A) install application and its dependency with:



And then I debug the application in the place it was built. [$HOME/repository/app/src/]

View 2 Replies View Related

Programming :: Debugging Shell Script With A Variable Expansion?

Jan 20, 2011

What I am trying to accomplish is a way to read only the lines that have been added to the file mylog0 since the last time the script looped (5 seconds). I am open to new suggestions too, I have been stuck on this little script for a few hours already.

Code: #!/bin/bash


View 2 Replies View Related

Programming :: No Debugging Symbols Found (not The Simple Case)?

Jan 6, 2011

I wasn't sure where to put this so if I need to move it just let me know.I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.Our program is built via the standard make using:GS=-g -Wall-pedantic and as I mentioned I can debug the resulting program. After the build, I package it up using:

cmd="rpmbuild -v -bb ptsnmp.spec --define "ver ${cmvc_release}" --define "rel ${cmvc_level}" --define "_topdir $rpmdir""When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not strippedyet when I try to debug it I get the no debugging symbols found.This is really taxing my brain and I am sure I am just missing something

View 4 Replies View Related

Programming :: Debugging A Simple Server Supporting Multiple Clients

Sep 24, 2009

I don't have any problem when I'm communicating with one client. The problem starts when I connect another client.The server eventually ignores the older clients and responds only to the latest one.The working mechanism is simple: Accept connections and print messages received from multiple clients.

View 4 Replies View Related

Copyrights 2005-15, All rights reserved