Skip to main content

Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
186 votes
8 answers
81k views

I have a hardware detection problem, what logs do I need to look into?

I am trying to ask a question about getting my hardware to work but I don't know what information to add to my question to get help, what do I need to do? Related if you don't have access to a GUI: ...
Jorge Castro's user avatar
  • 72.2k
116 votes
9 answers
42k views

There's an issue with an Alpha/Beta Release of Ubuntu, what should I do?

I've been running Alpha releases of Ubuntu for some time now. I keep running into issues - how can I get these resolved? What should I do when I encounter these problems? And where can I find other ...
104 votes
8 answers
229k views

Nginx failing to reload - how to track down why?

Hi I've had my Nginx server running great on Ubuntu server 12.04 for a while. I've been gradually bolting on various bits, and got as far as optimising load times on my wordpress page. After making ...
Huw's user avatar
  • 1,603
74 votes
2 answers
89k views

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 ...
Andrew Redd's user avatar
  • 2,157
68 votes
2 answers
103k views

How do I debug Upstart scripts?

For some reason I'm getting an error during apport upgrades, the cause of which is % sudo service apport start start: Job failed to start Under sysvinit, I could debug this kind of problem by ...
poolie's user avatar
  • 9,261
48 votes
3 answers
107k views

Where do I find core dump files, and how do I view and analyze the backtrace (stack trace) in one?

When I run my C program on Ubuntu 20.04, I get this run-time error: Segmentation fault (core dumped) I really need to find and view the core file, but I can't find it anywhere. Where is it, and how ...
Gabriel Staples's user avatar
38 votes
7 answers
30k views

How to debug bash script?

Is there any way to debug bash script without using echo and logging? I'm talking about using breakpoints and stuff like that.
UAdapter's user avatar
  • 17.7k
29 votes
2 answers
55k views

Why won't strace/gdb attach to a process even though I'm root?

I logged in as root but strace gives me this: root@kyznecov-System:/home/kyznecov# ps -e | grep 111 3807 pts/2 00:00:00 111 3810 pts/2 00:00:00 111 root@kyznecov-System:/home/kyznecov# strace ...
andreykyz's user avatar
  • 780
26 votes
4 answers
17k views

Can one pick up a running application from terminal?

Sometime I need to run an application from terminal for debugging. If I am sure the bug will occur short after launching the application, I can run this application from the Terminal. However, bugs ...
neydroydrec's user avatar
  • 4,660
22 votes
2 answers
24k views

How can I find out what ibus-daemon and ibus-ui-gtk3 are doing?

Occasionally my desktop slows down a lot. The mouse pointer moves slowly or not at all, my fan starts whirring, and the end is generally nigh. If I'm very patient normality usually restores itself, ...
lofidevops's user avatar
  • 21.1k
16 votes
1 answer
31k views

Why do xrandr errors "BadMatch", "BadName", "Gamma Failed" happen?

I have not found a single solution to such errors, despite the rather large number of users out there who have them. So I want to try to find a solution myself. However, I have no idea why they occur....
TellMeWhy's user avatar
  • 17.6k
16 votes
1 answer
8k views

How to debug an unmet dependencies problem?

Note about possible duplicate: AFAIK, This is not a duplicate of How do I resolve unmet dependencies after adding a PPA? otherwise please prove it by solving the test problem I mention below using ...
user.dz's user avatar
  • 48.3k
15 votes
1 answer
14k views

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 ...
fouric's user avatar
  • 4,618
14 votes
2 answers
35k views

How to load a module in initrd?

I want to explicitly load a module (say, netconsole) during the initrd stage, similarly to /etc/modules in the main system startup procedure. First, I checked that the initrd in my system already ...
imz -- Ivan Zakharyaschev's user avatar
14 votes
4 answers
12k views

Receiving error while trying to debug in QtProject

I installed the latest version of the QtProject so now I can debug C++ code. While trying to debug for the first time I got this error: ptrace: Operation not permitted. Could not attach to the ...
user124009's user avatar
14 votes
2 answers
21k views

Very slow Chromium browser

On my machine Chromium is very slow, I had to switch to Firefox where everything works fine. Looks like this is a kind of JavaScript problem (eg. slowed down typing on Facebook), pages loading slower, ...
takeshin's user avatar
  • 2,862
14 votes
1 answer
21k views

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most ...
ergysdo's user avatar
  • 1,019
13 votes
4 answers
21k views

How to install debug symbols for installed packages?

I try to watch how programs work by running them by the 'Qt Creator' debugger. For better orientation I'd like to see also the system (core) utilities fully in the call stack window as I am used from ...
Tomáš Pečený's user avatar
10 votes
2 answers
4k views

How do I rebuild a package to include debugging information?

I want to rebuild a package to include debugging symbols, how would I do that? There is no -dbg package available and also no -dbgsym package from the ddebs repository.
htorque's user avatar
  • 65.1k
10 votes
4 answers
15k views

Is there any interactive or more user-friendly version of GDB for debugging?

Is there any interactive or more user-friendly version (or substitution) of GDB for debugging? Some people suggested CGDB, but after a few tests I found it buggy and unstable.
xzhu's user avatar
  • 327
9 votes
1 answer
4k views

Unable to launch Firefox debugger from VSCode "Your Firefox profile cannot be loaded"

I'm using Firefox 100.0.1 without problems on Ubuntu 22 however when I try to launch a debugger from VSCode I get the following errors: Your Firefox profile cannot be loaded. It may be missing or ...
Antonio Santoro's user avatar
9 votes
3 answers
51k views

how to use the geany debugger?

I am new to debugging and I need to how to use the debugger in geany IDE. Is there any documentation or a video available in the internet related to the geany debugger? I have surfed everywhere but I ...
ganezdragon's user avatar
8 votes
1 answer
667 views

Is there a simple, safe way to trigger a GPU lockup on a susceptible computer?

Answers to my previous question, Ubuntu 12.04 froze, requiring powercycle. What should I look / grep for in the logs?, have led me to suspect that my computer is experiencing an intermittent GPU ...
Abe's user avatar
  • 451
8 votes
1 answer
2k views

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 ...
malhobayyeb's user avatar
  • 1,462
8 votes
1 answer
2k views

How to determine what happened and locate the problem when my system freezes?

Hello I had some freezes with my desktop. It is Lucid 10.04 on a Lenovo 3000 N200. System freezes completely. How can I locate the problem?
vrcmr's user avatar
  • 6,327
8 votes
1 answer
10k views

How to get an apache core dump?

I am having problems with my 14.10 Ubuntu Server. Upon performing certain actions my apache2 restarts with a segmentation fault error. In order to debug this issue I would like to create a core dump. ...
Andreas Hartmann's user avatar
8 votes
3 answers
2k views

Ubuntu 12.04 froze, requiring powercycle. What should I look / grep for in the logs?

This is not the first time that Ubuntu has froze. Last time, I checked 'recently updated files' in /var/log/ and /var/crash/ and the cause of the problem appeared to be 'LibreOffice'. Now, it has ...
Abe's user avatar
  • 451
7 votes
4 answers
583 views

Is the number of bugs falling as new Ubuntu releases are released? [closed]

If we could count the number of bugs per Ubuntu release (... 10.04, 10.10, 11.04, ...), would it be a decreasing line? If not, why not? Is not the whole point of new releases to fix previous issues? ...
user avatar
7 votes
1 answer
2k views

How do I install the debug symbols for gcov?

Which package has the debug symbols for gcov from the gcc package? I've tried installing gcc-5-dbgsym, but it didn't have the symbols. Not a duplicate of [1]. As I mentioned I've already enabled the ...
Evan's user avatar
  • 218
6 votes
2 answers
2k views

How to trace/monitor the I/O of a Linux command

I ran find / -name abc.html and a short time after I ran this command again. This time it was very fast, so I know the find must be caching the result somewhere. How can I find out where the cache is ...
lovespring's user avatar
6 votes
1 answer
2k views

What happened to the qtbase5-dbg package in Zesty?

I am attempting to install the debug symbols for the Qt core library using the following command, which worked perfectly fine in 16.10: sudo apt-get install qtbase5-dbg However, this doesn't work in ...
Nathan Osman's user avatar
  • 32.3k
6 votes
3 answers
6k views

How to debug c programs by gedit?

Is it possible to debug our programs written in c by gedit text editor ? If not, how can i do it ?
Artnect's user avatar
  • 143
6 votes
1 answer
1k views

What does shellcheck warning SC2129 “Consider using { cmd1; cmd2; } >> file instead of individual redirects.” mean?

I have this shellcheck warning I can't figure out: In /mnt/e/bin/iconic line 540: printf "FALSE|" >> "$IconsRaw" # Select field number 1 ^-- ...
WinEunuuchs2Unix's user avatar
6 votes
3 answers
7k views

strlen returns incorrect value when called in gdb

So I'm noticing some severely incorrect behavior from calls to standard library functions inside GDB. I have the following program to illustrate: #include <stdio.h> #include <stdlib.h> #...
alesplin's user avatar
  • 217
6 votes
2 answers
8k views

What does "Gtk-ERROR **: GTK+ 2.x symbols detected." mean?

When starting gparted, it crashes with the error: Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported I already opened LP bug #1094354 for this. ...
Kat Amsterdam's user avatar
6 votes
1 answer
24k views

How do I connect using ssh over a direct Ethernet connection? [duplicate]

I have a laptop, a desktop, and a spare 5' Ethernet cable that I can use to directly connect one to the other. The desktop freezes every few days or so, seemingly at random, and when it happens I want ...
Knowledge Cube's user avatar
6 votes
1 answer
11k views

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 ...
Johnco's user avatar
  • 215
6 votes
2 answers
9k views

Asking all remaining processes to terminate... fail

Ubuntu 12.10 64 bits with Unity. When I restart or shutdown the PC, it takes too long to do it. It shows the line Asking all remaining processes to terminate... [fail] and after Killing all remaining ...
Juan Simón's user avatar
  • 1,703
6 votes
3 answers
6k views

How can I install Insight debugger?

I am following along a book in which Insight debugger is required. I didn't find it on my Maverick. I googled and I found that it's not supported in debian anymore but I really need to install it. I ...
DandyWalker's user avatar
6 votes
0 answers
1k views

File corruption issues from a Samba server to Windows and Mac clients [closed]

I'm running Ubuntu 10.04 Server as a file server. It is on the Windows Active Directory Domain (2008 SBS) and has been working well for several years (migrated to new hardware and upgraded from 8.04 a ...
hood's user avatar
  • 61
5 votes
2 answers
4k views

How to see why "snapd.refresh.service" failed to start on startup?

After upgrading to snapd version 2.0.8 I have noticed that I get an error message about snapd.refresh.service failing to start on startup, the error tells me which command to run in order to see why ...
user avatar
5 votes
1 answer
13k views

How to install flash player 11 debug on Ubuntu 12.04?

I had hard time to figure this out, but I did it finally and I'm going to post an answer to my own question for others.
Łukasz Zaroda's user avatar
5 votes
1 answer
10k views

How do I start Firefox with debug output at the command line?

Firefox is freezing now and again, and I want to know why. I thought I could get some debug output by starting Firefox with the -g option, but it just comes to some kind of prompt and then stops. ...
Questioner's user avatar
  • 6,869
5 votes
1 answer
66k views

How can I know the USB port?

I'm working on a project with an ATmega1280 (Atmel) board. I want to take a look at the stack, so I'm trying to do an OCD (On Chip Debugging). In the tutorial it says: Use this AVRDUDE command to ...
DarkCoffee's user avatar
5 votes
1 answer
2k views

Why debug packages don't include sources?

I was expecting that after installing the package libgtk-3-0-dbg I would get DDD to show the source code when stepping into gtk+, however I had to download the source package myself (from here) and ...
knocte's user avatar
  • 1,006
5 votes
1 answer
6k views

Debug faulty hardware

My sister has got a laptop that has always crashed on her during Windows times (Blue screen) (hardware is relatively new and up to date). Back then she sent the dump files from Windows to Dell, who ...
Esokrates's user avatar
  • 920
5 votes
1 answer
327 views

Debugging a crash when keyboard is not responsive

Ubuntu 14.04, Kernel 3.13 crashes very frequently, notably when using Firefox, Eclipse and VLC. The effect of the crash is: all USB devices stop responding if playing a video, it hangs up and sounds ...
Lordbalmon's user avatar
5 votes
0 answers
153 views

Would installing debugging symbols help for reporting bugs?

I'm running a beta version of Ubuntu (12.10) and I've been reporting crashes through apport's automated system. I've glanced at the stacktraces for a couple of the issues and noticed a lot of what ...
Chris's user avatar
  • 151
4 votes
2 answers
6k views

Trying to install KDbg debugger

I'm trying to install KDbg debugger to use while I code in C and have some problems in figuring out what to do. As suggested in this other similar question: How to install software provided in ...
Spyromancer's user avatar
4 votes
2 answers
1k views

How to provide a backtrace?

gnome-shell appears to be crashing with unsavoury results and the developers have asked me to provide a backtrace, what exactly is a backtrace and how do I get them what they need? I am running Ubuntu ...
user avatar

1
2 3 4 5