The debugging tag has no wiki summary.
1
vote
2answers
26 views
whats a good tool to search tail -f output
I am dumping some debug info into a text file that I am using tail -f to monitor.
Is there a tool that I can then pipe that tail -f data into to be able to search the text on screen using regular ...
9
votes
1answer
171 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 ...
2
votes
1answer
127 views
How to increase ftrace precision to microseconds?
I'm trying to generate FTrace files inside an Android environment, using:
root@adroid:# echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable
root@adroid:# echo 1 > ...
1
vote
1answer
44 views
How can I force my wifi to connect to a G-band channel?
I'm trying to debug a buggy wireless card and would like to force my Linux computer to connect using one of the g-band channels. How can I achieve this?
1
vote
2answers
301 views
How to detect a possible hardware error?
I'm running Debian Wheezy on a HP Pavilion dv7 laptop and it freezes every now and then, requiring a reboot. One time it didn't even load the operating system, but it wasn't I who was using it so I ...
0
votes
1answer
120 views
Best practices for attaching debug symbols to system libraries during development?
I'm at a stage in a project where it would be really handy to have a debug version of a system package installed. On Ubuntu at least, adding the debug symbols to a library is a piece of cake. ...
5
votes
1answer
118 views
Debugging lock-up - systemd loses my logs
Ever since I have "upgraded" to systemd on Arch Linux, I keep losing logs when an unexpected lockup happens. I hit the same log-losing issue one month ago and just hit the issue again. There are also ...
1
vote
1answer
131 views
Killed `rm` and `cp` on nfs share
I am just testing an rsnapshot installation on my laptop which should backup to a NAS mounted via nfs on my laptop.
On one test rsnapshot died with a cp -al problem (i.e. a problem with hard links) ...
1
vote
1answer
220 views
How to avoid overflowing the kernel printk ring buffer?
I'm trying to debug a linux driver and a particular piece of code is behaving very strangely. In order to see what's going on I've filled the code with printk statements so I can see exactly what the ...
2
votes
0answers
42 views
kgdb not returning control to gdb
I've compiled a kernel with kgdb support and I'm trying to debug it. I have two machines running, a debug machine (running the kgdb kernel) and the machine I'm using to debug it. They are connected ...
2
votes
1answer
468 views
Kernel and QEMU : Unable to mount root fs error
I am trying to run a distro in the virtual disk image with a custom kernel,so that I can experiment and debug the kernel. I followed this to make a disk image and then install Debian to it. Now I ...
2
votes
1answer
485 views
Debugging Linux Kernel with QEMU
I was trying to study the debugging of kernel using QEMU. I tried initially and failed due to the fact that there was no virtual file system. The answers to this post suggests that there should be a ...
0
votes
0answers
44 views
Cannot set breakpoints on idlwave (emacs)
I am using idlwave on emacs. I can't set breakpoints, the message is
Wrong type argument: consp, nil.
I am using Emacs 23.1.1, idlwave v6.1_em22 and IDL 8.0.1
Does anybody have a clue?
0
votes
0answers
73 views
Linux, Debugger program development
We are trying to implement the debugger program which will takes either PID or Program name as input and Invoke the gdb by using PID. Below is two small programs are written, Not able to figure out ...
6
votes
2answers
179 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 ...
3
votes
2answers
210 views
Shell script debugging
I was wondering if there is an IDE that would allow me to define an ssh connection to a remote host, connect, and locally debug a script running remotely (kind of like you can debug a remote Java app ...
1
vote
1answer
445 views
How do I fix a noisy input device (Internal Mic)? snd_hda_intel - debug included
As the title says, I'm having trouble with a very noisy audio input device - the internal mic or any plugged in mics.
So far I've narrowed it down to an problem in ALSA since my debug info is showing ...
1
vote
1answer
80 views
Is there any way to attach latrace to an already-running process?
I want to trace a running multi-threaded process's library calls. As of 5 November 2012, there's only one way to get ltrace to fully support tracing multi-threaded processes: you must check out and ...
2
votes
1answer
801 views
How to debug csh scripts?
My lab uses csh scripts to run jobs. It is usually difficult for me to debug a shell script, so I'm wondering if there is a csh debugger I can use.
I know there are some flags like -x or -v that can ...
5
votes
3answers
2k 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 ...
3
votes
2answers
977 views
Missing separate debuginfo for - GDB
I have mentioned -g option along with -Wall in the Makefile.
When I run gdb onlineSunday, I get:
Missing separate debuginfo for /usr/lib64/kde4/plugins/imageformats/kimg_dds.so
Try: zypper install ...
2
votes
1answer
199 views
Installing slime and emacs
I'm trying to install SLIME on Fedora 17 so that I can do some lisp.
Here is what I downloaded:
http://www.common-lisp.net/project/slime/#downloading
The CVS Snapshot link.
I have a .emacs file:
...
3
votes
1answer
122 views
How to debug a buggy running GUI application?
Suppose the GUI applications are not given names in its GUI, so you don't know what to check in 'ps -A', i.e. the nameless applications in the task bar. How do I know which GUI application belong to ...
2
votes
0answers
83 views
How to find where driver.mod.c links to?
I'm trying to port the webcam composite gadget from kernel 2.6.37 to 2.6.32. I don't have a choice on this since I depend on other drivers and a SDK which only compile for this version.
My train of ...
4
votes
1answer
2k 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?
3
votes
2answers
457 views
Unix/Linux C++ debugger that supports STL containers?
Currently I am using gcc-4.3.6 and Eclipse IDE for c++ development. I want to debug my project in Eclipse with gdb. I am having a hard time debugging code when it contains STL containers. Also I am ...
6
votes
1answer
748 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) ...
4
votes
2answers
1k views
How to enable crash reports/core dumps/stack trace logging globally?
Crashing bugs can be the most annoying ones, leading to data loss, downtime and frustrated users. It would be good if applications crashed less.
Because of the complexity of the machine context, ...
1
vote
1answer
1k views
Unprettyfied SSL error message?
I am trying to authenticate using my USB smartcard reader to a website.
I am running Ubuntu 10.04 LTS, with its most up to date Firefox browser 3.6.24.
I get the following error message:
Secure ...
6
votes
2answers
703 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 ...
8
votes
2answers
708 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 ...
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?
2
votes
1answer
79 views
Submitting bug reports for Arch Linux
I come from Ubuntu and when things crashed I could collect the relevant information and submit a bug report. Is there an easy or preferred way to do this in Arch Linux after an application crashes?
4
votes
1answer
796 views
What is the difference between /proc/self/stack and output from pstack?
I have been looking through the documentation for /proc and the "stack" object being a new'ish object in proc, I have also looked through the kernel commit to create it -- however the documentation ...
2
votes
1answer
70 views
Start and stop multiple executable for easy debugging
I'm debugging a networking project, which involves interacting of 3 programs, ie a server, two different clients. However I find it difficult to start and stop them for debugging. Some methods I have ...
1
vote
2answers
1k views
How to proceed solving ppp connection problems?
I got an embedded system trying to create a ppp connection using a GSM modem. However the connection is never established and all I get is this error message in syslog:
Oct 12 08:38:48 pppd[451]: ...
2
votes
1answer
308 views
Disable browser logging output to console
I'm currently using Ubuntu 11.04 and I'm running into a really annoying issue while developing for web. I'm rather new to Ubuntu, coming from FreeBSD where I never encountered an issue like this, so ...
4
votes
2answers
1k views
Can gdb debug suid root programs?
I wrote a program that calls setuid(0) and execve("/bin/bash",NULL,NULL).
Then I did chown root:root a.out && chmod +s a.out
When I execute ./a.out I get a root shell. However when I do gdb ...
2
votes
0answers
427 views
Linux kernel slab usage growing on embedded system
I'm in the process of QA/debugging a project on a custom embedded linux system. The problem we're VERY tight on memory, and even a couple megs can cause issues with our software.
What I'm seeing ...
6
votes
1answer
131 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 ...
4
votes
5answers
330 views
Unpredictable memory explosions
The main server at my company has recently been having a lot of downtime. For reasons that neither I nor the other admins can determine, it has random (VERY sudden) explosions in memory. It becomes ...
5
votes
2answers
273 views
Unclaim a device
So I am using Ubuntu and trying to use some hardware which I had some problems with before.
The problem before was that the company who made my hardware sold their internal parts to another company ...
5
votes
2answers
848 views
Dump process core without killing the process
Is there a way to get a core dump (or something similar) for a process without actually killing the processes? I have a multithreaded python process running on an embedded system. And I want to be ...
3
votes
1answer
346 views
Capture and log GDB backtraces without stopping the process
First, a brief description of the situation: a computer sits hidden near a display in a gallery of some sort, acting as the silent workhorse for a piece. Despite its programmer's best intentions the ...
2
votes
1answer
453 views
Dump Page table layout (KERNEL CONFIG)
While configuring kernel for debugging found this option:
CONFIG_X86_PTDUMP: Export kernel
pagetable layout to userspace via
debugfs
Does this mean RAM page-table layouts ? any guides on how ...
2
votes
2answers
182 views
Is there a way to find out which program is segfault-ing?
I have a Busybox/Linux system where a mystery program is segfaulting rarely. Is there a way to find which program is doing this?
16
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 ...
4
votes
4answers
1k views
Debugging Linux machine freezes
I have 15 identical Linux RH 4.7 64-bit severs. They run cluster database (cluster is application level). On occasion (every month or so) a random box (never the same though) freezes.
I can ping the ...
2
votes
1answer
506 views
How does a debugger work in Linux?
How does a debugger work in Linux? How does it gets 'attached' to an already running executable or process. I understand that compiler translates code to machine language, but then how does debugger ...
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 ...