Questions tagged [debug]

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program

it involves numerous aspects, including: interactive debugging, control flow, integration testing, log files, monitoring (application, system), memory dumps, profiling, Statistical Process Control, and special design tactics to improve detection while simplifying changes.

127 questions
73
votes
3 answers

after upgrade gdb won't attach to process

I just recently upgraded from 10.04 to 11.04 and gdb won't allow me to attach to processes anymore I get the error Attaching to process 10144 Could not attach to process. If your uid matches the uid of the target process, check the setting…
Andrew Redd
  • 2,157
45
votes
7 answers

How can I diagnose/debug "maximum number of clients reached" X errors?

I'm hitting a problem whereby X prevents processes from creating windows, uttering something like the following into ~/.xsession-errors: cannot open display: :0.0 Maximum number of clients reached Searching around there are lots of examples of…
jmtd
  • 926
41
votes
3 answers

How do I make cron email my @gmail account

I have a couple of cron jobs that sometimes produce error output and would like to get a notification in my "real" email account, since I don't use my user's mailbox in my Ubuntu laptop, but cron (or is it postfix maybe) keeps trying to email the…
31
votes
4 answers

bash: set -x logs to file

I have a shell script with set -x to have verbose/debug output: #!/bin/bash set -x command1 command2 ... The output looks like this: + command1 whatever output from command1 + command2 whatever output from command2 My problem is, the shell output…
redseven
  • 842
  • 1
  • 8
  • 14
22
votes
2 answers

How do I debug when the system freezes or when it crashes back to login?

I am fairly new to Ubuntu and I was wonder what a good way is to debug when something crashes? For example: I installed 11.04 and the default media player banshee makes my laptop crash after a few minutes of playing music. Since the system…
Pickels
  • 505
16
votes
3 answers

Debugging: Console Output and Upstart Scripts

How do you send the output of an upstart script to a terminal so to find tracebacks in python code? It's taking me for ever to do things without trace-backs that used to take just a second. I'm having to place several file write calls to track…
bambuntu
  • 1,001
15
votes
1 answer

How can I debug my wireless problem?

How can I get started with debugging my wireless problem? How can I tell whether or not Linux has recognized my wireless hardware at all? What are the main programs/daemons associated with wireless connectivity? Where are the log files for those…
fouric
  • 4,698
13
votes
6 answers

Debug Qt application on ubuntu with root permission using qt creator

It is possible to run my application with root priviliges using sudo, like this: sudo ./MyApp Is it possible to debug my Qt application using root priviliges using QtCreator? How can I do this on an Ubuntu system?
9
votes
2 answers

How to use Moonlight to play videos on rtlmost.hu?

In Hungary, the biggest TV channel is RTL Klub, they has a video archive site. They use Silverlight instead of Flash :( What is annoying, they use the lastest version of Silverlight, about 4.x. But Moonlight doesn't support it yet. I've been tried…
antivirtel
  • 3,685
9
votes
3 answers

How do I get the bash debugger to work with ddd?

ddd script.bsh does not open the script. It shows an our glass and if I want to close ddd, it says "bash is busy"... I found an old message, but it didn't help. https://lists.gnu.org/archive/html/ddd/2008-10/msg00006.html I couldn't find…
8
votes
1 answer

What are -dbg packages for?

1- What are -dbg packages really for? 2- Is it a good/bad idea to install them for, at least, my preferred applications/packages? 3- Does installing them for my preferred applications/packages helps developers on debugging bugs I may encounter?
8
votes
3 answers

Accessing a specific URL with firefox 3.6 on Ubuntu 10.4 crashed the OS, how should I debug this?

The system is a spare Dell 2400 I wiped clean, with Ubuntu 10.4 installed. Update manager has everything current, and I haven't been mucking with drivers or tricky system settings. In fact, it has been a stable and friendly system to install and…
RBerteig
  • 193
6
votes
3 answers

How can I find out what is causing my gnome-panel to freeze?

About once a day my gnome-panel freezes. How can I produce some sort of debug information to: Figure out what is causing the freeze or File a bug or see if its an existing bug When gdb is attached to gnome-panel and the bug occurs I cannot get a…
6
votes
1 answer

Debugging php with gdb

I am attempting to debug a SIGSEGV on PHP on my Ubuntu 9.10. I've installed php5-dbg to have the debug symbols available, however, when I start gdb, it shows the following output: Reading symbols from /usr/bin/php... Reading symbols from…
Johnco
  • 215
6
votes
1 answer

Missing fonts cause LibreOffice Impress to mess up the layout of the slides

I have reported a LibreOffice Impress bug here. In that bug, the text of a slide went beyond the page margin Although it looked fine in Microsoft PowerPoint Now I cannot reproduce the bug anymore. LibreOffice Impress, the same version used to…
1
2 3
8 9