is a process of finding and reducing the number of bugs, or defects, in a computer program, thus making it behave as expected

learn more… | top users | synonyms (1)

9
votes
5answers
23k views

How to view core files for debugging purposes in Linux?

I want to view the contents of a core file while debugging a program. How can I view the contents of a core file?
0
votes
0answers
8 views

Stracing a kernel shut down?

I'm on Linux 4.2.0, the Ubuntu Wily HWE kernel for Ubuntu 14.04 (which is what I'm running). There's a nasty bug on MacBook 11,4 and 11,5 models where the laptops won't actually ever shut off, they ...
0
votes
0answers
9 views

How to debug a bash script in a qemu-arm chroot

I'm running a debian debootstrap script which creates an arm system. However, the script fails at some point and the error message does not really help. So I'll have to do some more debugging which is ...
0
votes
1answer
1k views

How do I get debug information from rsyslog?

I followed the directions from: http://www.rsyslog.com/doc/debug.html I put the following in /etc/rsyslog.conf: $DebugLevel 2 $DebugFile /root/RSYSLOG.txt then I try: kill -USR1 `cat ...
0
votes
1answer
23 views

Why is echo not working for mt valgrind command?

So I have my makefile working great, except that It doesn't create the valgrind.out file and I don't know why. So the console succesfully prints out that my executable file line is created but not ...
37
votes
8answers
21k views

How to debug a bash script?

I'm having some problems with some scripts in bash, about errors and unexpected behaviors. I would like to investigate the causes of the problems so I can apply fixes. Is there a way I can turn some ...
5
votes
1answer
1k 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 ...
4
votes
1answer
1k views

My Debian freezes

I installed a fresh Debian 7 install, but it freezes from time to time, and when it happens (quite often indeed) only the mouse can move around but everything is blocked. All I can do is restart. I ...
3
votes
1answer
214 views

Source code location for debugging on Debian?

From Debian's DebugPackage, I know the debug information file for an executable goes in /usr/lib/debug when creating two part executables (i.e., stripping the executable of its symbols and placing ...
1
vote
1answer
91 views

“rcu_preempt detected stalls on CPUs / tasks” message appears to continue

My board continues to display the message below. The terminal does not have any input. What is it with the following message, which I know? (T, g, c, q ...) What is the cause of this phenomenon? ...
2
votes
1answer
36 views

Inline debug (xtrace) in scripts

Is there a way to force enable or disable debug (xtrace) per command line in scripts ? In Windows Shell ("ms-dos") is an "@" which can prefix a command line, disabling that line to be showed if the ...
0
votes
0answers
10 views

Does Manjaro Linux have a debug packages

One of my biggest frustrations with Arch Linux is the need to recompile half my OS every few weeks in order to provide meaningful bug reports to upstream projects. Most other distributions provide ...
1
vote
0answers
68 views

Linux Kernel module Remote Debugging with GDB + KGDB, Remote 'g' packet reply is too long

I am trying to remotely debug Linux Kernel and I am having issues. My setup: Target machine with Ubnutu Linux with my custom kernel 4.3 which I built with debugging information and KGDB. ...
0
votes
1answer
35 views

Debugging: OwnCloud horribly slow

I am trying to figure out why my OwnCloud installation stalls of 10s of seconds before it runs again for 10s of seconds normally. What kind of debugging can I enable on OwnCloud (server+client), so I ...
6
votes
2answers
297 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 ...
5
votes
1answer
218 views

linux mint hangs - how to find a reason?

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It usually looks like a white or black screen (or off if the lid was closed). CPU seems to be a ...
0
votes
0answers
31 views

printk does not prints in terminal

I inserted some printk in kernel 3.15.1 functions such as theese: in fs/read_write.c in function read(): printk("Ata: Im in fs/read_write.c and in function read"); in same file in function ...
1
vote
1answer
164 views

Where is vagrant's log file?

I am trying to debug a vagrant- or VirtualBox related problem (see taiga-vagrant fails to provide a working taiga environment #21). The command VAGRANT_LOG=debug vagrant up --debug prints out plenty ...
8
votes
1answer
80 views

Tool to trace library calls in Linux/ARM

I am searching for a tool that allows to trace calls to functions in shared libraries in Linux/ARM. Basically, I want to be able to specify a command line and let this tool produce a record of called ...
0
votes
1answer
40 views

Syntax error: Unterminated quoted string. Cannot find error

I'm writing a script to parse a larger file into usable data. I will attach the script below. The script was not running as I wanted and I thought it might have been the if/then statement I used, but ...
0
votes
0answers
20 views

OpenVPN Connection without disabling Internet debugging

I've recently configured OpenVPN on my server (CentOS 7) and been configuring it for hours now and everything seems to work fine except that when I connect using a client machine I cannot access the ...
2
votes
1answer
33 views

After my system crashed and I run crash, but I get the following error: not a supported file format

My system crashed and even though I haven't been able to know what caused the crash after going through the usual logs: messages, dmesg, secure, etc. There's nothing valuable I have seen on them so I ...
14
votes
3answers
18k 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?
2
votes
2answers
717 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: ...
6
votes
2answers
56 views

xtrace equivalent in the fish shell

Is there an equivalent of POSIX shells' set -x or set -o xtrace that cause the shell to display the commands being run in the fish shell?
0
votes
0answers
12 views

Breakpoint in dynamically-linked libraries in Linux

Suppose you debug a Linux application and put a break-point into a function defined by a dynamically-linked library used by the application. Will that break-point stop any other application that makes ...
0
votes
0answers
26 views

Cannot telnet to Postgresql Forwarded Port

I'm trying to portforward a PostgreSQL port using my DLINK ADSL Router. I have the following IP addresses. Public Internet IP 197.321.321.32 PostgreSQL 192.123.123.12:5432 (Port To ...
0
votes
0answers
27 views

How can I display \n as new lines in multitail?

I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters \n are not processed. ...
-1
votes
1answer
89 views

Debug an open-source and be confronted with some troubles [closed]

Here is main script . I run it and get some errors like this : ╭─frankwang@ubuntu ~/ion-open-source ╰─➤ ./ionadmin ...
0
votes
1answer
25 views

SystemTap simple demo fails - Ubuntu 14.04

Started learning SystemTap using RedHat's manual. Here is the example I'm trying to run. While executing stap open.stp I got the error: [root@ror6ax ~]# stap open.stp semantic error: while resolving ...
2
votes
2answers
114 views

shell script with interesting bug

I've found such behavior of bash GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu) and even latest ( How to get version of dash? ) dash on Debian. Bug as is: /bin/echo "Silent Err ...
2
votes
2answers
63 views

Why does df on a specific mount iterate over all mounts?

When running df /nfs/mount/point, I expect that it will be faster than df | grep /nfs/mount/point, because it will not stat all other mount points. But strace shows that stat is executed all NFS ...
0
votes
0answers
651 views

Kernel panic : Kernel offset disabled

I was trying to install the linux-next kernel in my system with the following steps. Copied the existing configuration file from /boot to the root of source directory Updated the .config file with ...
0
votes
1answer
95 views

Trying to use KDBG, but it produces error 11

I am trying to start kdbg on Ubuntu, but it produces this error message: MNG error 11: function is invalid at this point ; chunk MHDR; subcode 0:0 MNG error 11: function is invalid at this point ; ...
0
votes
0answers
38 views

Attempting to use LogLevel debug to investigate server issue

I am currently running a WordPress Multisite installation with a number of websites active. I have started getting large volumes of the following error message in my error log: Request exceeded the ...
5
votes
4answers
648 views

Easiest way to find missing quote in a bash a script?

I have a bash script which is currently 700+ lines long. After a particularly long round of editing, it now errors like so: ./run_me.sh: line 693: unexpected EOF while looking for matching `'' ...
2
votes
0answers
37 views

Network debugging: Sudden rise in packet loss and latency

My laptop sees a sudden rise in packet loss and latency (from 0.0%, 1ms to 70%, 2000ms). It remains even after resuming from suspend-to-ram. It remains after: sudo killall wpa_supplicant sudo ...
3
votes
1answer
66 views

Debugging info in linux kernel - how does it work?

I have found that I can compile linux kernel with some flags adding debugging support like CONFIG_DEBUG_INFO. These options while useful in debugging are also required by some utilities like ...
1
vote
2answers
50 views

How can I disable xtrace and preserve my exit code

I'm trying to figure out a good way to disable xtrace before leaving a script. These are all being executed by Wercker, a continuous integration and deployment SaaS. A previous script of mine has run ...
41
votes
3answers
1k views

How did `git pull` eat my homework?

I feel like a kid in the principal's office explaining that the dog ate my homework the night before it was due, but I'm staring some crazy data loss bug in the face and I can't figure out how it ...
6
votes
3answers
753 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 ...
0
votes
0answers
120 views

Can't install additional debug infos in the CentOS 6.7

I am attempting to debug coredump of the some application on the latest CentOS 6.7 and gdb gives me hints that some debug infos are missing, for example: Missing separate debuginfo for ...
3
votes
1answer
34 views

Is it possible to compile individual software from the FreeBSD source tree?

I wonder if it is possible to compile individual software packages from FreeBSD source tree without compiling the whole kernel and world....Say,for example ex , which is included in the nvi (new vi) ...
0
votes
1answer
71 views

Uninstalling packages installed by debuginfo-install

How do I delete debug packages that are installed by debuginfo-install? When I search for them via sudo yum list installed none of the installed packages are listed, even when I enabled the debuginfo ...
0
votes
1answer
42 views

Is there a GUI debugger for csh script?

I have read another question in UNIX & LINUX stack exchange. The GUI provided in that question can be used to bebug *.sh file. How about to debug *.csh file? What other plugins for eclipse can I ...
2
votes
1answer
256 views

How to debug a kernel panic on boot with archiso?

I have an iMac mid 2011 running OSX and I am trying to install Arch Linux following this guide. I successfully set up a dual boot last year following a similar procedure but now I can't even start ...
2
votes
1answer
741 views

How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?

TCP/IP and UDP captures can be made using tcpdump/dumpcap and produces a pcap/pcapng file which can be fed to Wireshark for further analysis. Does a similar tool exist for named Unix domain sockets? ...
2
votes
1answer
143 views

What is Linux native debugging symbols format?

GCC documentation says that the -g option produces debugging information in the operating system's native format (stabs, COFF, XCOFF, or DWARF 2). So, what is Linux native debugging symbols format? ...
1
vote
2answers
1k views

How to compile without optimizations -O0 using CMake?

I am using scientific linux. I am trying to compile a project that uses a bunch of cpp files. In the directory user/project/Build, I enter make to compile and link all the cpp files. I then have to ...
1
vote
2answers
387 views

How to call in a kernel level function in user space [closed]

I've developed some helper functions in the kernel. They're called by other functions in the kernel. Currently, they make my custom kernel panic :( For now (i.e. debugging), I made them as a passive ...