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
0 votes
0 answers
30 views

How to install delve(debugger for golang) on ubuntu?

The problem is that according to the instructions in the repository(https://github.com/go-delve/delve/blob/master/Documentation/installation/README.md) I can not install delve, but through "sudo ...
Edgar2000's user avatar
-1 votes
0 answers
20 views

Boot into Ubuntu takes forever when HDD is connected

Have a dual-boot system (Ubuntu 22.04 and Win10) running on a Lenovo Thinkpad. No issues with either until last week when booting into Ubuntu partition started to take ~10-15mins from typical 60s. Was ...
Chris's user avatar
  • 163
1 vote
0 answers
66 views

'Unable to open FTDI Deivce tried: 'Quad RS232-HS' and 'Quad RS232-HS A''

I have used ftdi drivers to connect to our test boards many times, using the same README file that was written by my colleague years ago. I have applied the same procedure for ubuntu 16.04, 18.04, 20....
Chan Kim's user avatar
  • 1,981
0 votes
1 answer
414 views

Mount error(22): Invalid argument

I'm new to Ubuntu and I'm having some problems mounting a NAS with CIFS I've been searching the forums for 3 days now to find a solution that could help me. Here is what I tested : The command I am ...
Nekop's user avatar
  • 3
0 votes
0 answers
37 views

Can I find out what's wrong with my boot if I can't boot properly?

Unfortunately the issue I'm facing has not yet been answered, in regards to this, I would like to know if I can find some logs somewhere or add any parameters to any configs to see what went wrong ...
lalalananana's user avatar
1 vote
0 answers
320 views

My External hard drive keeps unmounting on USB 3.0 using exfat

I recently switched to Ubuntu from windows. I'm trying to move files from my external hard drive to my new Ubuntu installation but each time I try to copy over the files a few copy and then the drive ...
Chase Simmons's user avatar
0 votes
1 answer
77 views

Debugging bash script libraries

I have a list of files that I source in some particular order Here is an example source "${edvart_trkrc}/marinex.rc" source "${edvart_trkrc}/firefly.rc" source "${edvart_trkrc}...
Fatipati's user avatar
  • 379
-1 votes
1 answer
452 views

Retrieve an assertion failure from a .crash file

Apport has recorded a crash of /usr/bin/gnome-shell on my system. I can unpack the .crash file that I found in /var/crash/ and I can take a look at the core dump with gdb, which gives me: (gdb) where #...
Bram's user avatar
  • 2,505
1 vote
0 answers
299 views

PTRACE_TRACEME error "Operation not permmited"

I am trying to use PTRACE_TRACEME to trace the child process: if (ptrace(PTRACE_TRACEME, 0, NULL, NULL) == -1) { perror("ptrace_traceme"); exit(EXIT_FAILURE); } And I got the error: ...
Aviel15's user avatar
  • 11
2 votes
0 answers
302 views

Firefox right-click opens context menu, but selects tabs instead

At first when I installed Ubuntu 20.04 LTS, firefox was working normally. There had been some issues with the on-screen touchboard keyboard opening up when unwanted and so I installed caribou 36 to ...
Hoffenstein's user avatar
0 votes
1 answer
588 views

How to trace API calls on Ubuntu?

I have an application installed on Ubuntu 22.04. The application connects to an API and when I run a command in the application input space, it starts communication with the API and retrieves the ...
plpm's user avatar
  • 109
0 votes
0 answers
184 views

How to simulate faulty disks in Ubuntu 20?

For debugging purposes, I'd like to simulate the following states regarding disk drives on my VM with Ubuntu 20: disk is missing/offline disk is faulty disk is not responding While I could quickly ...
ChrisTG74's user avatar
  • 311
0 votes
1 answer
641 views

Getting mutter debug logs

Mutter has these debug topics: META_DEBUG_FOCUS = 1 << 0, META_DEBUG_WORKAREA = 1 << 1, META_DEBUG_STACK = 1 << 2, META_DEBUG_SM = 1 &...
Bram's user avatar
  • 2,505
0 votes
0 answers
431 views

How to debug Apache when server is not reachable and no error is thrown?

I'm trying to use a new server (VPS) for my website. I bought a new server and installed Ubuntu 20.04 on it. After that, I logged in as root and start Installing Apache, PHP, MySQL Pulling the code ...
Martin AJ's user avatar
  • 191
0 votes
0 answers
62 views

GDB in DDD produces a return character when I attempt to lookup value of variable

I've been trying to look up a value using gdb in ddd, in a .asm file as I am programming x86 assembly but when I type (into gdb) x/uw &min in the gdb shell, I just get a return character that ...
Furyan's user avatar
  • 1
1 vote
0 answers
189 views

Debugging a binary inside a snap

I am trying to run a binary that's from a snap through strace to debug its workings. Because the executable is accessed via /snap/bin/prog which is symlinked to /usr/bin/snap I will only see snap's ...
Bram's user avatar
  • 2,505
8 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
3 votes
2 answers
6k views

How would i enable the Firefox apparmor profile in 22.04

Ok so I found this on the "How can I enable AppArmor for Firefox?" line on the Ubuntu wiki which is out of date because Firefox is now a snap. I think the profile is enabled but first where ...
lnee's user avatar
  • 806
1 vote
1 answer
3k views

How do I find core files for my own code in Ubuntu 20.04?

in this question The following things are suggested: ulimit -c unlimited ulimit -a to set the limit to something other than zero. It was previously 0 on my system. No core files after segfault. So, ...
Josh Vander Hook's user avatar
0 votes
0 answers
442 views

Out of memory, "shared" and "buff/cache" consume entire memory

The oom_reaper always kills our application although the memory is not used by the process itself. free -m, just before the OOM killer terminated the process, indicates that "shared" and &...
domsch's user avatar
  • 1
1 vote
0 answers
1k views

Mouse movement wakes system up from sleep if the USB adapter is not reconnected

I have /etc/udev/rules.d/99-wakeup.rules to disable wakeup from sleep when using a keyboard or mouse connected to the device: ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb&...
jarno's user avatar
  • 5,610
-1 votes
1 answer
244 views

Linux alternative to fiddler for windows auroresponder function

I got debugg an website with its assets in production easily, but i don`t seem to find any good alternative to it on ubuntu. the only feature i am looking for is: I need something that decript the ...
oliveira47's user avatar
0 votes
1 answer
223 views

How do you add debugging information to an executable .out file?

In a Linux system, I used the terminal to create an executable file of a .c file. However, I now require to add debugging information to said executable file. Any way to help me out here? Thanks.
Akbar Ali's user avatar
0 votes
0 answers
54 views

How to diagnose strange intermittent kernel misbehaviors

See the Event Logs heading farther down. I'm on Ubuntu Server 21.04 running kernel 5.11.0-1015-raspi on aarch64. What are the most effective things to prepare to move forward on diagnosing this next ...
fuzzyTew's user avatar
  • 139
46 votes
3 answers
94k 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
0 votes
0 answers
230 views

XFCE4.16 - Ubuntu Studio 20.04.2 LTS unusable after critical bug manifested - troubleshooting req

I put desc and a placeholder for this critical bug and solution making is here and https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/502 for anyone experiencing a rough XFCE 4.14 -> 4.16 upgrade ...
dMario's user avatar
  • 11
0 votes
0 answers
56 views

How to debug the GUI locking up?

At seemingly random time, my GUI locks up. I can generally recover from this (sort of) by getting another session via ssh and running sudo init 3 ; sudo init 5 but I lose any work in progress in all ...
BCS's user avatar
  • 101
2 votes
0 answers
2k views

How to fix bug "Authentication is needed to run '/usr/share/-apport/dump_acpi_tables.py' as the super user"?

I get an internal error (involving xorg), logging me out and then I have to log back in (restarting any apps, since they were all closed), then I get this error, which I've seen is a bug, but I'm not ...
user14094230's user avatar
0 votes
1 answer
61 views

Finding a specific text phrase in all system files

Trying to find a specific text phrase in all system files. A terrible way to debug but I have no clue where the mistake is and at this point I do not care whether it takes a day to debug. I ran grep -...
Avyansh Katiyar's user avatar
1 vote
1 answer
771 views

how to Get kernel debug messages

I have installed the kernel debug symbols for my system sudo apt install linux-image-5.11.0-17-generic-dbgsym Also $ sysctl kernel.printk kernel.printk = 7 4 1 7 But when typing sudo dmesg -wH ...
user63726's user avatar
  • 714
-1 votes
1 answer
276 views

New issue encountered installing ubuntu. same bug different problem

was attempting to dual boot Ubuntu on an 2006 macbook pro intel core-duo. opted instead for full metal install and completely erased Mac OS. assuming it might clear the bug. i was wrong. i was ...
Atom's user avatar
  • 9
0 votes
0 answers
27 views

Unable to install qemu? [duplicate]

I used the following command: sudo apt install libexpect-perl qemu-system-x86 qemu-utils But, I received the following errors: Err:1 http://deb.debian.org/debian buster/main amd64 ovmf all 0~20181115....
ZisIzHell's user avatar
0 votes
1 answer
286 views

Perf sched_stat_sleep issues after reboot

I'm using perf's sched:sched_stat_sleep on Ubuntu 20.04, and have added the following to the /etc/fstab: debugfs /sys/kernel/debug debugfs defaults 0 0 tracefs /sys/kernel/tracing tracefs defaults ...
Rekovni's user avatar
  • 223
0 votes
0 answers
87 views

ubuntu is freezing very much, there is a need to fix this!

ubuntu is a great operating system and it has everything which we want for our use. but it has a problem, it is freezing very much. everything just stops, no keyboard keys work and not the mouse and ...
Kabir Ycreator's user avatar
3 votes
2 answers
14k views

BIOS ACPI bug AE_AML_PACKAGE_LIMIT

I've been getting this persistant bug, ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x0000000FF) is beyond end of object (length 0xF) (20200528/exoparg2-393) I've played around with the grub ...
J Nos's user avatar
  • 31
2 votes
0 answers
89 views

Strange caps-lock behavior on Ubuntu laptops

So two weeks ago I got a new laptop and put Ubuntu on it to replace Windows 10 it came with. I was previously a MacOS user, and have also run Windows in the past. I am on my second laptop running ...
cwille97's user avatar
  • 121
0 votes
0 answers
138 views

Ubuntu 16.04 | Teamviewer not installed but working

First sorry for my mispell i'm French, here's my problem, i'm on Ubuntu 16.04 and a version of Teamviewer (15.0.14842) is installed on my computer. I didn't install it and after a few searches with ...
M M's user avatar
  • 1
1 vote
4 answers
5k views

Fixing GPU hang caused by i915 driver

Ran updates on my laptop recently, and after rebooting, my laptop started behaving weirdly. After I logged in, the screen started flickering, and as soon as I opened a window (the application menu ...
Vincent Guttmann's user avatar
2 votes
0 answers
802 views

Super key stuck on 20.04

I was recently editing a gnome extension when my computer started acting like the super key is constantly pressed. I can only execute super shortcuts with the keyboard. In addition, all shortcut ...
Daniel's user avatar
  • 21
0 votes
0 answers
195 views

I can not find coredump

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic ***** Source ****** // This is a disposable program for ...
D. Grant's user avatar
1 vote
0 answers
542 views

How to debug slow login

NOTE: Login, not boot. On Ubuntu 20.04. After entering my password, my wallpaper appears, and some version of the bars (when using Gnome). Everything is frozen for a minute before waking up. Same ...
Gauthier's user avatar
  • 2,697
0 votes
1 answer
3k views

what is the difference between gdb and gdb-peda?

I have tried to search on google but still could not find anything that i understand. Can anyone tell me the difference between them? And which one is better to debug c++?
Zozzizzez's user avatar
  • 475
1 vote
0 answers
51 views

How can I contribute to an Ubuntu package on Launchpad with an upstream on Github?

I recently reported a bug for which a fix already exists on GitHub (upstream), and I would like to cherry-pick such fix and submit it on Launchpad for review for focal 20.04. However, I couldn't find ...
fcole90's user avatar
  • 170
0 votes
1 answer
154 views

Can we safely uninstall the *.dbg packages

I use Ubuntu Studio 20.04 LTS. I've found some *.dbg packages installed into my system. I can see them when I use Synaptic Package Manager. I wonder if those packages are absolutely necessary and if ...
Juan's user avatar
  • 1,797
3 votes
1 answer
1k views

How can I view a core dump on Ubuntu 18.04?

I have a program which is aborting and I want to view a core dump. I am using addresssanitizer which is causing the abort when it hits a heap overflow. I have done the following: sudo sysctl -w ...
the_endian's user avatar
4 votes
2 answers
5k 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
1 vote
0 answers
140 views

19.10: `curecoin-qt` wallet installation fails on the last two steps

In order to make the most of the Folding@Home project (https://foldingathome.org/covid19/) and fight COVID-19 from our homelabs — tokenwise — I've tried to install the curecoin-qt wallet (https://...
Jayaguru-Shishya's user avatar
0 votes
0 answers
1k views

FAHClient cannot connect on Ubuntu 19.10

I've been running FAHClient successfully for one day now, and hence been contributing to the protein folding project. ... Well, I was until I recently booted my system. Now, the client won't connect, ...
Jayaguru-Shishya's user avatar
0 votes
1 answer
169 views

graphics noisey, trails, slow refresh?

Please help me figure this out. Noisy graphics, like it takes time to refresh, when there is any movement on the screen. It leaves trails of static-like noise during video play (see image), if I ...
PaulM's user avatar
  • 11
0 votes
1 answer
195 views

PyCharm Debug Tool Window simply desapear

My PyCharm debug tool window isn't available anymore. I was using it without problem yesterday, however after turn the computer on and open the application it has disappeared from the side bar and ...
artu-hnrq's user avatar
  • 705

1
2 3 4 5