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)

0
votes
0answers
7 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 ...
5
votes
3answers
181 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
15 views

gdb displays not all variables in KDevelop [on hold]

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
28 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
12 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
136 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
24 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 ...
7
votes
5answers
12k 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
27 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 ...
2
votes
1answer
729 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 ...
2
votes
1answer
133 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 ...
4
votes
1answer
39 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
39 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
43 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
41 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
2answers
146 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
38 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 ...
1
vote
1answer
60 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 ...
3
votes
1answer
50 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
75 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 ...
4
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
111 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
131 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 ...
1
vote
0answers
35 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
1k 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 ...
20
votes
2answers
15k 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
72 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 ...
3
votes
2answers
2k 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?
1
vote
0answers
126 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 ...
5
votes
2answers
272 views

How do I view executables run by a program?

Is there a way to view or get a list of executables that a program uses? A particular example is file-roller. Is there a way to see which executables it uses, if there is more than one executable it ...
1
vote
1answer
198 views

wpa_supplicant nl80211 hangs linux mint frequently

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It may look different - white screen, black screen, screen freeze. Checking syslog after hangs ...
3
votes
4answers
2k views

Sound Problems with pulseaudio

The overall question that my whole problem is kind of based on is regarding sound in linux. Should I be using alsa or pulse or what? I'm using pulse at the moment and this is my problem: I was in the ...
2
votes
1answer
54 views

m4 macro using variable number of tabs to line up a column

This is the macro I have so far: define(`debug_macro', ` #ifndef $1_DEBUG #define $1_DEBUG'forloop(`i',`1',eval(5-(len($1)/4+ifelse(eval(len($1)%4 == 0)), `0', `1')),` ')dnl`0 #endif ') The goal ...
0
votes
1answer
98 views

frequent linux mint hangs

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It may look different white screen black screen screen freeze Maybe some of these symtoms ...
0
votes
0answers
154 views

Analyze backtrace of kernel panic on Android

I have this problem on my Samsung Galaxy Note 2 LTE with random reboots and kind of clean restarts in the kernel logs (no oops / panic, even though some usb errors) and now I got a kernel panic in the ...
27
votes
6answers
6k 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 ...
0
votes
0answers
60 views

Linux unresponsiveness

I'm using a Packard Bell EasyNote laptop (4GB RAM, 500GB HDD) with Arch Linux and xmonad. My problem is that machine becomes fully unresponsive or obtains a large lag. Sometimes when I only have a ...
0
votes
1answer
58 views

python3-dbg fails to import setproctitle

import setproctitle using python3 works, but using python3-dbg fails. How can I fix this? $ cat test.py from setproctitle import setproctitle setproctitle('test') $ python3 ./test.py $ python3-dbg ...
1
vote
2answers
2k views

Monodevelop doesn't run the project. When I try to run nothing happens

I've been trying to get Monodevelop up and running for almost a week now, first on my redhat and now on my fedora. The debugger doesn't work, when trying to debug I get this error: I tried ...
15
votes
3answers
2k views

How to know where a program is stuck in linux?

I am running the following command on my ubuntu server root@slot13:~# lxc-stop --name pavan --logfile=test1.txt --logpriority=trace It seems to hang indefinitely. Whenever this happened on AIX, I ...
0
votes
2answers
73 views

How to launch «gdbserver» in background?

I am communicating with a device via a serial port, and for I am launched «gdbserver» (like gdbserver :2345 myapp) it completely blocks the terminal. Neither an ampersand & symbol, nor ^z ...
3
votes
1answer
108 views

Echo out lines of script before running them

Is there a way to run scripts in bash that makes it so that it prints each line of the script before executing it? This would be really useful to me for debugging... $./myscript.sh echo "Hello" ...
1
vote
1answer
205 views

SystemTap simple demo fails

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
1answer
286 views

set -xv behavior in ksh vs bash

Normally I like to have all of the debug output of a script go to a file, so I will have something like: exec 2> somefile set -xv This work very will in bash, but I have noticed in ksh it ...
6
votes
1answer
372 views

Is there a way to see if process listening on TCP port receives a message?

According to tcpdump, my server receives the following TCP packet: 12:52:29.603233 00:19:e2:9e:df:f0 00:16:3e:6a:25:3f, ethertype IPv4 (0x0800), length 74: 10.10.10.65.38869 192.168.215.82.22: ...
7
votes
3answers
2k 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 ...
0
votes
0answers
214 views

How to display printk messages filtered by level as they come?

I wrote a hello word module that performs a printk when it is loaded in level ALERT and another printk when it is released with level INFO: #include <linux/module.h> #include ...
24
votes
3answers
2k views

How can I see the exact command line being executed inside some bash instance?

I have a long running bash instance (inside a screen session) that is executing a complex set of commands inside a loop (with each loop doing pipes, redirects, etc). The long command line was ...