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)

1
vote
1answer
26 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
11 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
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 ...
0
votes
1answer
24 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
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
36 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 ...
2
votes
0answers
42 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 ...
1
vote
1answer
51 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 ...
0
votes
2answers
40 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
142 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 ...
3
votes
1answer
49 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
56 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
1answer
72 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 ...
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 ...
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 ...
1
vote
1answer
194 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 ...
0
votes
1answer
96 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 ...
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 ...
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 ...
0
votes
0answers
153 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 ...
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
123 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
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
56 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 ...
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
70 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 ...
2
votes
0answers
135 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 ...
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" ...
2
votes
1answer
284 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
369 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: ...
0
votes
0answers
211 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 ...
2
votes
1answer
52 views

Why is my Compose key not being passed to Synergy?

The key that I assign to the compose key (right Alt) is not passed to the remote computer by Synergy. I don't know if it's a problem with Synergy or with X, but my guess is that the compose key is ...
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 ...
5
votes
1answer
400 views

Can anything useful be done with a truncated core?

We have processes written in a mix of Python, Java and C++ that core dump from time to time. They allocate more memory in chunks as needed during runtime, and are known to crash when their allocation ...
0
votes
1answer
204 views

GNOME 3 - bottom panel is hiding - how to unhide it or change behaviour

After upgrading Debian Wheezy to Jessie, I experience some random unhiding behaviour of the bottom panel. It does not appear - as before - by moving the mouse into lower right corner. It seems it is ...
1
vote
2answers
291 views

Double click Linux Bash Script and debug with pause commands

I'm fairly good with windows .bat scripts and normally use the pause command while developing them so I can see things step by step as the script runs in the command prompt. I am trying to do ...
1
vote
3answers
134 views

Bash script in ( set -x ) mode does not display what “cat” command does. ( contents of it )

in this bash script.. it simply shows.. +cat as it runs. #!/bin/bash set -x cat > /test << "EOF" a b c d EOF but i rather show everything that it does . including the a b c d ...
1
vote
0answers
1k views

What does “Cannot make/remove an entry for the specified session” mean?

Instead of logging me in, PAM greets me with the message "Cannot make/remove an entry for the specified session" after I enter the password. What entry is it talking about (and what session)? The ...
3
votes
1answer
94 views

How to save the result of printf to a variable in GDB?

(gdb)printf "Hello %d", 7 Hello 7 (gdb)set $MyVar = printf "Hello %d", 7 // ??? How to save the result of printf "Hello %d", 7 to $MyVar?
3
votes
1answer
110 views

How to make gdb not ask me “y or n”?

When I use GDB command add-symbol-file to load the symbol, GDB always asks me 'y or n', like this: gdb> add-symbol-file mydrv.ko 0xa0070000 add symbol table from file "mydrv.ko" at ...
3
votes
1answer
52 views

Methods to find out which (configuration) files are read by executable when started

What are the clever ways to find out which (configuration) files are read by executable if started? For example snmpd or sshd. One option is probably to check the CONFIGURATION FILES or FILES section ...
5
votes
2answers
347 views

How to determine what instructions a process is executing?

I know about strace and ltrace, but that only tells me what system calls and library calls a process is executing, respectively. I would like to know exactly what instructions a process is executing. ...
2
votes
2answers
132 views

How can I remotely debug a broken initrd?

Background I have a system that runs Linux. It's a NAS, and does not have any monitor, keyboard, or serial port. It does have a network port. I'm not happy with the software running on it, and am ...
40
votes
2answers
859 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 ...
3
votes
0answers
42 views

Kernel bisect: when a patch is failing for a reason other than original bisect purpose, what do you do? [closed]

Let's say you're trying to find the cause of a bug between 3.11.0 and 3.12.0. The bug is really difficult to catch, because it may or may not manifest itself over several days of regular workload ...
9
votes
4answers
378 views

How can I tell if the currently executing bash script has been invoked with -x for debugging?

I have a script launch.sh that executes itself as another user so as to create files with the correct owner. I want to pass -x to this invocation if it was originally passed to the script if [ ...
4
votes
3answers
215 views

Adding comments using 'set -x'

Sometimes it is really handy to just add set -x to the top of your script to show all commands before they are executed. There is only one drawback creating scripts with a decent output: I don't ...