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)

41
votes
3answers
967 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 ...
2
votes
1answer
874 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 ...
6
votes
3answers
602 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
17 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
28 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
29 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
16 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
81 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
51 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? ...
1
vote
1answer
47 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
307 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
121 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 ...
34
votes
7answers
12k 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 ...
2
votes
0answers
25 views

Significance of Linux kernel's default_console_loglevel

What is the significance of default_console_loglevel in Linux? Commonly I see it described as the default value of console_loglevel. However, what that means I haven't seen explained anywhere. ...
0
votes
0answers
36 views

How to change the console_loglevel in linux?

I read at multiple places (e.g. here http://elinux.org/Debugging_by_printing), that you can change the console log level by echoing an integer to /proc/sys/kernel/printk. If that worked shouldn't the ...
0
votes
1answer
25 views

Linux server as a target for my C code [closed]

How to use a linux server as a target for my C code written on a different (Windows) machine. Including step by step debugging and etc... All that with Eclipse Env.
0
votes
2answers
73 views

viewing printf after pipe (or subshell?)

Ok, this is hard to distill to a single question because it really depends on how I'm going to troubleshoot it. The following script is meant to pipe mount.cifs commands to a while loop that enters ...
13
votes
2answers
13k 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
1answer
156 views

“Debugging” with bashdb: why do I lose command echo after stepping into a simple script?

I heard about the bash debugger ( bashdb ) after reading a comment so I thought I should try it out and see if it can help me analyze bash scripts or more generally the execution of commands. There ...
1
vote
0answers
62 views

ath0 wi-fi connection breaks

Can't hold wi-fi connection in hostapd mode. Sometimes it's good, sometimes not, yesterday all day wi-fi works, today no chance even to connect. % more /etc/rc.conf wlans_ath0="wlan0" ...
0
votes
1answer
63 views

What is the impact on system performance when kernel debug info is enabled?

In order to debug kernel or use tools like stap (https://en.wikipedia.org/wiki/SystemTap) kernel must be compiled with full debugging information included - namely option CONFIG_DEBUG_INFO has to be ...
0
votes
2answers
278 views

Error - Segmentation Fault

I am trying to run DQN, which is some AI for Atari. Upon launching the program (sudo bash run_cpu < the_name_of_the_game >), I get the following error: run_cpu: line 46: 9377 Segmentation ...
0
votes
1answer
51 views

Linux Mint 17.1 Mate stops responding

I was using LM 17.1 Mate version quite smoothly until one day I found my desktop wallpaper had changed to the original. Then after refreshing for 2nd time it keeps on refreshing and it seems that my ...
0
votes
0answers
27 views

How to debug freeze at start, output of syslog

Every now and then, my computer freezes while starting. I can see some "Oops" in /var/log/syslog, but from there I am not sure what to do to try and fix the problem. Jun 5 12:47:40 fulla kernel: [ ...
18
votes
6answers
15k 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 ...
5
votes
3answers
343 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 `'' ...
0
votes
1answer
41 views

gdb displays not all variables in KDevelop [closed]

Hoping, the image describes the issue much better than I can do. Generally, I'm debugging a multithreaded application in KDevelop with gdb. I'm debugging the app step by step (F11 shortcut) and have ...
1
vote
1answer
91 views

USB not working : USB Ports Hijacked/Reserved Permanently by VirtualBox

This scary incident happened today morning. I started a virtual machine inside my Linux Mint host and shared my USB Wireless device with the machine. The virtual machine's image resided in an ...
0
votes
0answers
36 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 ; ...
2
votes
0answers
168 views

What is the correct way to fix the configure error: “Requested 'libdrm_nouveau >= 2.4.33' but version of libdrm_nouveau is 0.6”?

This issue came up when trying to assist a user with the questions: What are the required build dependencies of mesa for Debian-based distros? and How do I backport Mesa on Debian Wheezy?. Mesa on ...
0
votes
0answers
45 views

How to debug : Screen starts blanking after running wget

My system is currently running Cubieez 2.2, a Debian image for CubieTruck. My bash script is tasked with downloading driver files from a server to a specific folder through wget. I've tested this bash ...
8
votes
5answers
16k 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
1answer
198 views

How to debug an installed Qt5 library with GDB?

Background: I am programming with Qt5 and want to debug the core Qt5 libraries on Debian using GDB. I have installed all the necessary -dev and -dbg packages. When I try to debug, GDB complains that ...
4
votes
1answer
60 views

Print out unicode values of stdin?

I use od to print me the octal or hex of a file/stdin/string. This lets me see the ASCII, or UTF-8 encoded, values of my stdin. But we don't live in ASCIIland anymore. Is there any command that will ...
1
vote
0answers
125 views

Transfer file to pc from embedded linux device via serial communications

I'm working on an AT91SAM9G20. I'm connected to AT91SAM9G20 via the debug port using rs232 serial communications. It has Linux version 3.4.8 but does not appear to have any of the common file ...
1
vote
1answer
52 views

How to generate a list of configuration files accessed by a tool (eg bash or vi)?

Many times, there are slight inconsistencies between two similar linux machines, where (for example) tmux supports colours on Machine M1, and does not support colours on Machine M2, or vi adds ...
2
votes
0answers
73 views

How can I monitor the interactions of an application with dbus?

I think the title says it all. I have a set of applications, I want to montior any and all interactions of the applications with dbus. The things I've played with don't seem to have a way of focusing ...
7
votes
2answers
1k views

Is it possible to strace the builtin commands to Bash?

Inspired by this question, titled: When are the built-in commands loaded to memory, while attempting to answer this I tried the following command and was a bit surprised that I couldn't run it: $ ...
0
votes
2answers
144 views

Tools for Debugging Routing Tables on a Linux Machine?

Is there a tool that debugs routing tables on a Linux machine? I mean one that I can use by inputting an ip address into it, it'll take the existing routing table into account and output the ...
0
votes
1answer
54 views

How to find out what the Cinnamon process does

I would like to identify what draws power in Cinnamon (the process not the entire desktop) aka what eats the cpu and causes the context switches. It is not about finding out what draws power overall ...
3
votes
1answer
98 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
120 views

Which log files do I look at to debug copy/paste and Klipper?

Short Version What log files do I look at to monitor copy/paste actions? And what logs do I look at to monitor all Klipper actions? Long Version After using my desktop for a while (could be a few ...
6
votes
2answers
4k 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 ...
1
vote
1answer
145 views

Debugging multiseat: How to run two X server layouts together without display manager?

How to run two X servers together, each with its own layout, directly from command line, without any display manager (e.g. GDB, KDM or LightDM)? Lets say there are two ServerLayout sections in ...
0
votes
1answer
411 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 ...
2
votes
0answers
45 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 ...
0
votes
1answer
2k views

“Failed to complete SSL handshake: NSS error -5938.” while connecting with the retrace server

Having installed Fedora 21 and found that it works very nicely (unless you want dropbox, hardware acceleration in some things, decent video drivers & codecs etc), I have recently turned to ...
21
votes
2answers
24k views

Running application ends with “Segmentation Fault”

I have a command line application that when run does not do what it is supposed to do and at a certain point leaves the message: Segmentation fault What does this mean? What should I do?
2
votes
3answers
85 views

Is there a simple way to find out the last line executed in a bash script?

In answering this question please bear in mind that I am a beginner and a bit out of my depth. I'm running a bash script which contains a for loop which will run thousands of times. Somewhere in this ...
4
votes
2answers
3k views

Is there a GUI debugger for shell scripts

Debugging bash scripts on command line is complicated. Is there a good GUI based debugger available for debugging bash scripts?