The debugging tag has no wiki summary.
18
votes
4answers
2k views
Kernel Hacking Environment
I have been working in embedded OS like uCOS, ThreadX. While I have coded apps in Linux, now I’m planning to start learning Linux Kernel. I have few questions regarding the environment.
Which is ...
11
votes
2answers
292 views
Equivalent of “truss -T” and “truss -U” on Linux?
Is there an equivalent of what the -T and -U option of the truss Solaris utility does on Linux.
Those are to specify a system call (-T) or library function (-U) which when called by the traced ...
10
votes
4answers
2k views
How can I debug a Suspend-to-RAM issue on Linux?
I'm hoping to get experience-based suggestions on how to go about debugging suspend-to-RAM issue. Advice specific to my situation(detailed below) would be great, but I am also interested in general ...
9
votes
2answers
836 views
strace for library calls
I know of strace, which is super handy for watching system calls. Is there an equivalent that can trace calls to external libraries?
For example, I'm trying to debug some SSLeay misbehavior with a ...
8
votes
5answers
4k views
Can we get compiler information from an elf binary?
Is there some chance to know how a binary was built, under Linux? (and or other Unix)
Compiler, version, time, flags etc...
I looked at readelf and couldn't find much, but there might be other ways ...
7
votes
3answers
428 views
Best practise to diagnose problems [closed]
As Linux/Unix users, we run into problems frequently. And after long hours of problem solving, we develop the skill of debugging.
Now, what are good principles, methods or best practises when trying ...
6
votes
2answers
2k views
How to debug a suspend problem?
I used to have Fedora 14 installed on this HP Compaq 610, and the suspend feature worked fine. Now that I've installed Scientific Linux 6.1 suspend doesn't work anymore. How do I debug/fix it?
6
votes
3answers
3k views
Linux network troubleshooting and debugging
From time to time Linux and Unix users faced with various network problems. Many of these problems are presented here and at some others troubleshooting forums, but the are very concrete and contains ...
6
votes
2answers
1k views
How do I debug a kernel module in which a NULL pointer appears?
I have a custom kernel module that I compiled from this patch that adds support for the logitech G19 keyboard among other G series devices. I compiled it just fine against Ubuntu's maverick kernel's ...
6
votes
2answers
213 views
bash: escape individual lines from `-x` echoing
In bash, when running with the -x option, is it possible to exempt individual commands from echoing?
I'm trying to make the output as neat as possible, so I am running certain parts of my script in a ...
6
votes
2answers
840 views
How can I find what is interfering with CTRL+F?
I'm running LinuxMint12 with Gnome with Cario-Dock and I have a logitech G15 keyboard. I set up a bash script with the extra keys to take the active window, resize it, and move it to a specific ...
6
votes
1answer
3k views
how can I make cron run a job right now, for testing/debugging? without changing the schedule!
I have a cron job that is scheduled to run everyday, other than changing the schedule, is there any other way to do a test run of the command right now to see if it works as intended?
6
votes
1answer
819 views
How to debug system freeze?
I'm experiencing strange bug when I close lid of my laptop - system freezes (no reaction on keys, no response form ssh) hard and displays some strange colour effects. The kernel log (after reboot) ...
6
votes
1answer
137 views
Sending commands to dbx from Vim
Using this information, I've been able to debug code using dbx and display the code from within Vim.
What would be really cool is if I could send commands (step, next, print, stop in ... etc) to dbx ...
5
votes
5answers
1k views
How to track/fix a memory-related issue in a large C/C++ code on *nix systems
What strategy you use while tracking a memory-related issue? What tools do you use (open source as well as proprietary) to identify memory leaks, memory corruption etc? How would you track memory ...