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
ADVERTISEMENT
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 this.so plz tell me the procedure of remote debugging.
View 7 Replies
View Related
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
View Related
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
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
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
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
May 16, 2009
I'm running CentOS operation system 5.2 with the following softwares installed:
1) OS: CentOS release 5.2 (Final)
2) Web Server: Apache 2.2.4
3) Mono: Mono 1.2.4
4) xsp: xsp 1.2.4
5) mod_mono: mod_mono 1.2.4
I don't find any errors during installation of all of the above items. Problem is that, when I try to invoke one of my ASMX file from the browser, I'm getting the following error in my $APACHE_HOME/logs/error_log. This same ASMX is working fine in one of my RedHat ES Linux 5 system, what I mean here is I don't have any compilation or runtime errors in my ASMX code.
ERROR DETAILS
[Sat May 16 08:03:38 2009] [notice] Apache/2.2.4 (Unix) mod_mono/1.2.4 configured -- resuming normal operations
System.PlatformNotSupportedException: This operation requires Windows NT, Windows 2000, or Windows XP.
at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000]
[Code]...
View 1 Replies
View Related
Oct 15, 2010
I am trying to install the Matlab 7.5 compiled runtime for 64-bit Linux (MCRInstaller.75.glnxa64.bin) and keep getting a "No Java Runtime Environment(JRE) was found on this system." error message.
I understand the JRE is bundled with MCRInstaller and will self-compile/install. However, I don't have admin access, could this be the source of the problem? If so, how could I fix it (not sure how to direct it to install locally without going into the source code)?
I got around this error before, but stupid me didn't write down what I did and I forgot.
View 3 Replies
View Related
Jun 1, 2011
My firefox can't auto install java runtime evnviroment. I have try manual download at http://java.com/en/download/linux_manual.jsp?locale=en&host=java.com (Linux x64), and I have set up it follow intruction. But it is not effect. My contribution: Centos release 5.6(Final) Molliza: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110429 CentOS/3.6-1.el5.centos Firefox/3.6.17
View 2 Replies
View Related
Feb 16, 2011
After installing Fedora 14 and being satisfied with the behaviour and the packages installed for it, i want to replicate the same installation in a few more PCs, so i installed Revisor to make with it an iso file that reflects my actual installation.
The problem is that if i run the software from Applications->System tools->Revisor, nothing happens after giving the user password.
Then i run it from a consele and this error is produced after giving my password: "Cannot find anaconda-runtime in /usr/lib/anaconda-runtime"
But anaconda is the environment used for installation, so it is installed from the very begining. Why this happens?
View 1 Replies
View Related
May 19, 2010
Anyone know some links where i can find about data structures using STL ?
View 4 Replies
View Related
Jun 17, 2011
I hace some code C/C++ STL, which i need to use for android, using SDK-NDK-JNI.my problem is that i need to pass some STL structures across JNI, I can't pack/unpack data into basic types or arrays of basic types, doing my own simple streaming between the two layers.My application need to pass a pointer to a STL structure which is updated by eachuser interaction wonder if it is possible using NDK-JNI ?Other option is "native activity" but it also needs JNI in some way ... and passing the STL structures wille a requirement, yet.I only can package data into an own streaming if there is a second (concurrent) application running (implementing the STLfunctionality). Is it possible ?
View 1 Replies
View Related
Apr 18, 2011
I am working on a project that needs to use structures and I'm pretty sure string arrays. First I declare my structures and they must be exactly like this.
typedef struct
{
int hour;
[code]....
View 4 Replies
View Related
Apr 25, 2011
how to run a linux commands in shell programming using control structures.
View 1 Replies
View Related
Jul 16, 2010
I just ran the update manager and am now unable to access any of my files. Additionally I can not run the software center or run apt-get from the terminal. Luckily my web browsers and email client are still working.
I first ran the update a few days ago, but for some reason, about 30 or so packages wouldn't download, so update manager installed all but those ~30 packages. Afterwards everything seemed fine, except the clock was broken on my desktop, which corrected itself after two reboots.
Since that time the only major change I've made to the system is to rollback my version of gcc to 4.3.0 from 4.4.3. This was done in hopes that the older version of gcc would read a header file in some software I need to get installed (apparently ubuntu doesn't like locale.h). However, doing so did help.
Today when I got into work I thought I would see if I couldn't finish the update before trying some different versions of gcc, so I ran the update manager again. This time it downloaded the remaining ~30 packages and installed them, no problem. It wasn't until I ran apt-get that I noticed that all the icons on my desktop had disappeared.
below is the error I get from running apt-get
Code:
chris@chris-laptop:~$ sudo apt-get install build-essential
apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libapt-pkg-libc6.10-6.so.4.8)
View 7 Replies
View Related
Sep 26, 2010
does the assignment operator copy all the members also for structures containing STL objects strings,vectors,vectors of vectors...)? I did try it on my platform,and it works that way (copying all the fields),but i was wondering if it is a standard behavior or not.
View 2 Replies
View Related
Sep 27, 2009
after update to kernel-2.6.18-164.el5 one of the 2 NIC's of my machine are only found at 1 of 4 reboots. Using the old one kernel-2.6.18-128.7.1.el5 all is fine. This are the to NIC's:
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 0c)
And the Intel one, makes the problems with the new kernel.
View 8 Replies
View Related
Nov 6, 2009
I compiled my kernel, compiled scsi support into kernel, used the new kernel and initrd, the boot failed.Then ,i unzip my initrd, found that sd_mod.ko can't be insert, i added it manual, and reboot OK.so, why! in the kernel configure , the sd_mod.ko is set to <M> , but why it can't be found in initrd?
View 1 Replies
View Related
May 29, 2010
The server runs# uname -r2.6.18-128.4.1.el5However, today I executed yum update kernel*due to security advisory. I was just about to reboot the system when I realized that it runs VMWare Server Instance that will most likely fail to restart after kernel upgrade (I had a hard time fixing it after previous kernel update). Now I want to keep 2.6.18-128.4.1.el5 after reboot.I see that new kernel is scheduled for booting:
# cat /etc/grub.conf
default=0
timeout=20
[code]....
View 10 Replies
View Related
Oct 31, 2009
I'm running CentOS 5.3 and would like to know what the "best" or "proper" method is to build a custom kernel using the generic kernel sources from kernel.org. Most of the references I've found talk about modifying the current CentOS kernel using the RPM way. I really want to have the latest kernel due to some important security issues that haven't been addressed in the current CentOS 5.3 kernel.
View 6 Replies
View Related
Jul 9, 2009
The first server I installed installed fine. The second server, installed with the same config, went to "kernel panic not syncing no init found try passing init= option in kernel" error. I tried reinstalling but it keeps going to that error after install reboot. The storage is ISCSI connected via Intel Server Adapter, which allows it to boot from ISCSI. Not sure if that's the cause for the problem, but the first server is connected to the same ISCSI and installed just fine.
Is there a way that I can make sure ISCSI module installs during installation? Although I think it is installed since it's able to copy the files and setup /dev/sda. I just wana make sure that it installs during setup.
View 1 Replies
View Related
Feb 28, 2010
I built a home server (NAS/WWW/SSH/media server etc) and chose CentOS 5 as the OS (stability, easy of configuration).I was just about to start tuning the power consumption when I realised that the kernel CentOS uses is so "old" that it does not support the latest reduced power consumption enhancements that Linux has achieved in big strides in the recent past (we are probably still talking 6-12+ months ago e.g. tickless kernel)..
So my questions; 1) I know CentOS was maybe not meant for home servers (certainly its not its primary purpose), but if it is, any ideas of what kind of power consumption it takes (I know its relative) and if there are particular power consumptions that are worthwhile?
2) Do you recommend me compiling my own 2.6.21+ kernel from kernel.org or am I just likely to have compatibility issues (I really did not want to do that) or when is CentOS 5.4 supposed to have a newer 2.6.21+ version kernel?
Was it wrong of me in principle to choose CentOS for a home server when I am power conscious? (I don't have a low-power VIA processor either but a P4 so I am really just hoping to make do with software changes).
View 4 Replies
View Related
Mar 17, 2010
I am an old days RH release user(from 6.x) and just switching back from Debian/Ubuntu to CentOS on some servers, but I can not understand the kernel update strategy currently enabled in CentOS.There are two boxes, with almost identical installation, but recently there was an auto update of kernel on one box. This auto update also seems to issue an auto reboot on the machine, which is unacceptable on server machines.
View 2 Replies
View Related
Oct 16, 2010
I'm setting up a raid 5 on several hard disks with a layer of lvm on top for good measure.I know the recent kernels support growing software raid, but since centos runs 2.6.18, I wanted to make sure it'll work. Does the centos kernel support growing raid devices?
View 1 Replies
View Related
Feb 24, 2011
Is it possible to debug a makefile? In a bash script I can use "set -x" so that all variables are shown with their values. I am looking for such feature in makefile to see the variables and their values.
View 2 Replies
View Related
Feb 28, 2011
I tried to debug a C++ project in Eclipse Helios, last release. I set breakpoints in some non-main functions, but the debug function never stops there, and I get a warning message which says
"breakpoint attribute problem installation failed" What could be the reason?
PS: The same problem also happens with Eclipse Galileo, last release PS2: I found here info about the bug but no solution:[URL]..
View 1 Replies
View Related
May 21, 2009
I have centos 5.3 workin on mini itx atom 330. i have some problem with the network when i use Samba. when i move big files the network goes down. i wanna to install the new kernel on my centos to try to fix the network problem with the new drivers includes on the new kernel.
View 2 Replies
View Related
Sep 10, 2011
I applied the Kernel update that showed in the updater via the GUI.It now won't boot anymore.Memory for crash kernel (0x0 to 0x0) notwithin permissible range.WARNING calibrate_APIC_clock: the APIC timer calibration may be wrong.
View 2 Replies
View Related
Sep 14, 2011
I'm preparing for an interview and came across this question in a forum:
If your browser crashes, how would you debug it only using the command line?
For simplicity, let's assume it's a Firefox browser on a *nix environment.
View 2 Replies
View Related