Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

is a process of finding and reducing the number of bugs, or defects, in a computer program, thus making it behave as expected

0
votes
0answers
5 views

Intermittent System Lockup with Tensorflow / GPU

I've been experiencing an intermittent system lockup when using tensorflow-gpu. Unfortunately I'm not seeing anything in the syslog that tells me what's failing. I'm looking for some ideas on where ...
0
votes
0answers
4 views

Using `ipdb` to debug Python scripts run as Slurm jobs

I sometimes use import ipdb; ipdb.set_trace() in order to debug Python code with iPython (as described here: Step-by-step debugging with IPython). I also sometimes submit jobs to a computing cluster ...
2
votes
1answer
18 views

Debian: Find binary and debug files by build-id

Assuming I have a core dump from a Debian system, where I know the build-ids of the libraries used in the dump, but don't know the exact versions, is there a way to find those files? For example, the ...
3
votes
1answer
51 views

Why some libraries and other parts get repeated in the linux virtual memory with gdb?

This is the result of looking at virtual memory of a process in gdb; I have some questions regarding this: Why are some parts of the virtual memory are repeated? For example, our program (stack6) and ...
0
votes
2answers
49 views

bash & using a variable to decide when to use 'set'? [closed]

Looking to ascertain why when I do something like; [ ${debug:=0} -gt 0 ] && set -x || set +x regardless of the conditional set -x is enabled. The issue is that I am unable to use ${debug} to ...
1
vote
2answers
24 views

List/find the programm(s) that has accessed (in the past! No fuser!) a specific given file (IOW: from a specific file 2 an unknown tool)

I have a javascript file that is used on just one occasion -> if the home folder is deleted and i login the next time. I want to find the mechanism/tool/programm/application which has accessed/used (...
1
vote
1answer
34 views

lldb hangs on Alpine Linux

I'm trying to run lldb on Alpine Linux V3.8, but when trying to debug any program, it hangs. I'm using lldb 5.0.1-r0 from the edge/testing repository, which is the only version available in V3.8 apk ...
1
vote
0answers
17 views

How to figure out why executable crashes (I don't have the source code) [duplicate]

I'm trying to install PowerPanel Business Edition on Apple OS X.13. The server starts and exits (quits) - no log file, no error message. It works fine on my other OS Apple machines but on this High ...
0
votes
1answer
21 views

How to install debug symbols for corosync package on CentOS?

I got a crash in corosync which I would like to view in gdb. However, currently the core dump shows me only this much info Debug logs for core.1385 (Generated on Jul 26 10:17 BST) [Thread debugging ...
2
votes
1answer
74 views

Install a Linux kernel with debug symbols and without optimizations

My system is Ubuntu 18.04. How do I install a Linux kernel with debug symbols and without optimizations? I would like to trace it with SystemTap.
7
votes
2answers
269 views

function's calling context in zsh: equivalent of bash `caller`

In bash, I can write: caller 0 and receive the caller context's: Line number Function Script name This is extremely useful for debugging. Given: yelp () { caller 0; } I can then write yelp to ...
0
votes
0answers
124 views

pstack outputs nothing. What does it mean?

Most of the time, pstack prints the stack nicely. Once in a while, I run pstack 1234 against a process 1234, and it outputs NOTHING. I can run it again, and again it outputs nothing. Once it goes ...
6
votes
1answer
312 views

Defining a state of a failed SD cards by kernel tracing?

I'm having a series of failing/sometimes failing SD cards. They either give one of the following dmesg outputs: The completely dead ones (don't list at /dev/mmcblk0): [ +0,000010] mmc0: error -110 ...
6
votes
1answer
3k views

ACPI BIOS Error / AE_NOT_FOUND

I'm getting these error messages every single time I reboot my desktop (and a couple of more I don't know how to retain when it's shutting down, but those are not relevant to this question so far): [...
3
votes
2answers
100 views

sh is evaluating bash code from parent shell, and breaking down

I have this code in a bash script: r2g(){ echo "executable is: $0" # "/bin/bash" ( set -e; r2g_internal "$@" \ 2> >( while read line; do echo "r2g error: $line"; done ...
0
votes
0answers
18 views

Process memory usage right before executing of its first instruction

How can I get the size of a process right before its execution without executing the program with any particular input? I was thinking maybe a debugger can do so. I have IDA pro if that helps.
0
votes
1answer
27 views

Debug possible SSL/TLS problem?

I'm running into a couple networking issues which I suspect could be related to SSL/TLS, but I'm not sure how to go about confirming that that's the case. The main problem I'm having is I'm unable to ...
1
vote
0answers
129 views

Crashkernel not starting after crash

I am trying to start a crash kernel using Linux's Kernel Crash Dump. Both of the host and crash kernel are compiled linux-4.13.16 kernel. Unfortunately, the crash kernel fails to start after the crash ...
1
vote
0answers
143 views

How to debug a completely stuck kernel?

Running kernel 4.15 here from F27. Since I moved a week ago from 4.13 to 4.15, a highly threaded app I have been developing started to hang the kernel. Not always, but most of the times. I have an i7 ...
1
vote
0answers
199 views

Can’t compile c++ code in CLion

I recently installed CLion on Mint 18.3. I intend to use it to solve programs in single cpp files, hence the need to be able to compile, run and debug. I have added the plugin for Single C++/C file ...
0
votes
0answers
191 views

LLDB Failed to connect port.Under Vmware, CentOS, Android Studio

I trying to debug jni code in android studio which run under VM Workstartion + CentOS 7 the error message is: Failed to connect port com.jetbrains.cidr.execution.debugger.backend.lldb....
0
votes
0answers
166 views

How can I run nvidia nsight profiler in arch linux?

I really need to profile an opengl application and nvidia nsight seems like the best possible solution. It's available for a lot of distributions but not arch (not even in the AUR). Can I somehow run ...
0
votes
0answers
25 views

Can I send signal to wake up gdb inside guest VM

I'm debugging Linux kernel with qemu-kvm & gdb. I want to send signal to wake up gdb, so I can debug kernel from somewhere I like. Something like pdb.set_trace() for Python ( Just to clarify my ...
1
vote
0answers
26 views

Is there a way in which we can notify the tracer (parent process) when the tracee (child process) executes a branch instruction?

As we know, the ptrace system call is one of the most powerful system calls in unix-like systems. All debugging software use ptrace for monitoring and manipulating another process, i.e. tracee. Using ...
3
votes
1answer
122 views

set -x: tab completion results in messy output when working in debug mode

I understand that set -x gets a Bash user into debug mode and I feel that working full time in debug mode will help me handle possible problems better in Bash. I experience a problem when working ...
0
votes
0answers
33 views

Debug Monitor Issues

Situation: Lenovo T450s with Lenovo Ultra Dock connected to 2 monitors via one HDMI and one DP. Running Debian 9, KDE, SDDM. Problem: One Monitor gets black for 2-3 seconds and gets turned on ...
0
votes
3answers
212 views

Why does a UDP client send 1Gbit speed to 100Mbit server?

I've just found out that in a simple UDP client/server application I wrote on Linux userspace, the UDP client (1 Gbit Ethernet interface) sends the data with 1 Gbit speed to a UDP server which has ...
3
votes
1answer
354 views

Toggle bash script between run commands and print commands

I found a script which used this "trick" to achieve a toggle between running and printing commands: echo_prefix="echo" rm_cmd="rm file1 file2" $echo_prefix $rm_cmd This allows the user to dry run ...
0
votes
2answers
37 views

how to selectively silence rsync

When rsyncing a folder with a million files, a million lines are output to stduot/stderr, containing the file names. (I'm using Travis CI, and this trips it up because their log files can be max 4MB)...
0
votes
1answer
22 views

How to debug time dependent issue

I think one of my cronjobs failed when it ran at 00:00:00 2018-01-01. How can I debug that? Changing the system clock is clearly the wrong way to go, since it would disrupt the whole system and also ...
2
votes
1answer
42 views

Use of __rb_rotate_left()

I have a kernel crash on this function: __rb_rotate_left().  Can someone explain what this function is meant for in simple terms? PC is at __rb_rotate_left+0x24/0x78 LR is at rb_insert_color+0x108/...
2
votes
1answer
846 views

What is `bash -x`

A colleague recently introduced me to bash -x for debugging my bash scripts without taking the echo $foo route. $ bash -x hello-world.sh + echo 'Hello World' Hello World Internally -- how does ...
2
votes
1answer
205 views

Analysing crash dump

On the customer unit, I see this crash and after the crash, the unit goes into hung state. Only hard reboot brings it back to the normal state. Below log shows many register values and memory ...
1
vote
0answers
119 views

Trace sequence of scripts/commands executed upon ssh

I am executing ssh myuser@myserver. Is there any way to trace all actions performed and the names of files being sourced? (similarly as with bash -x) PS: I executed bash -x at the command prompt ...
1
vote
1answer
44 views

How to improve linux debugging ability and be proficient in using linux [closed]

I'm new to linux(still feels not proficient at linux although used Ubuntu for several months, writing and debugging some python code), I have had a confusion for a time and hope to get some veteran's ...
0
votes
2answers
27 views

Program to instantly host a mysql database from a dump file [closed]

I'm looking for a utility program which can take a dump of a mysql database and basically host a "fake" or minimal mysql server with that data for testing another program which requires it. Has ...
0
votes
0answers
210 views

(Installing DDD) missingX11 + configure: error: C compiler cannot create executables

I am trying to install DDD V3.3.12. While running (./configure&& make) I am getting following error: **configure: error: The X11 library '-lX11' could not be found. Please ...
0
votes
1answer
184 views

.bashrc cannot be sourced, how can I debug? [closed]

When .bashrc is sourced, my terminal immediately closed - I pinpointed it to ~/.bashrc - what's the best way to debug this? Should echo every line to another file? Is there a log I can look to? It ...
1
vote
1answer
665 views

Unable to use Valgrind on executable file for ARM-Linux

I'm having problem using Valgrind on "arm-linux" executable file. I downloaded Valgrind from the main page here : http://valgrind.org/downloads/. Run the following command to install it: sudo ./...
1
vote
0answers
34 views

How do I debug intermittent System Crashes?

Linux/Xorg crashes intermittently on Debian Stretch with a swap partition - display goes all black or leaves the background image. I have to hard reset the box. No logs (Xorg.0.log or syslog) are ...
0
votes
0answers
187 views

Using bashdb, how do I debug a script that must be run as root?

I'm using bashdb release 4.3-0.9 (from the Arch repos). man page: bashdb - bash debugger script http://bashdb.sourceforge.net/bashdb-man.html I would like to debug a bash script with bashdb, but the ...
0
votes
1answer
234 views

How can I debug X11 missing mouse ButtonRelease events that are present in usbmon?

A few days ago, my mouse button releases began sometimes not being recognised when I release two of the buttons simultaneously. The logical state of one button therefore gets stuck on "down", causing ...
2
votes
0answers
47 views

Locate the .desktop file for a special menu item

There are various reasons why orphaned menu items can remain after package removal and need to be fixed in the package. In order to investigate the bug, it can help to see the exact path of the ....
2
votes
0answers
399 views

Not able to see the Linux kernel debug info after building kernel in debug mode

I tried to build Linux Kernel versions 3.10.107 and 4.13.8 in debug mode. I have used following steps to build the kernel. Host machine with Ubuntu 16.04 OS and trying to update its kernel to latest ...
1
vote
1answer
426 views

Unable to use crash utility due to missing /usr/lib/debug/lib/modules/ folder

A CentOS7 server is experiencing crashes. According to RHEL7's documentation, I should be able to view details using the crash utility: crash /var/crash/<timestamp>/vmcore /usr/lib/debug/lib/...
2
votes
0answers
61 views

Is there anyway to verify validity of dlopen handle?

In my case after my program cas dlclose program is crashing and I am not getting stack trace for dlclose or any function on upper frames. I know handle value of dlclose . Is there anyway to check if ...
0
votes
1answer
243 views

How to quit an application running in gdb gracefully when the application isn't reponding.

This is somewhat related to gdb set overwrite logging on should overwrite gdb.txt correct? . Let's say I'm running a session of some application. For example purposes, let me take the example of ...
1
vote
2answers
2k views

Turning off kASLR to debug linux kernel using qemu and gdb

I'm trying to debug linux kernel using qemu and gdb. The problem is that gdb won't stop at breakpoint. I've searched about it and found that turning kASLR off may help, because kASLR confuses gdb. ...
1
vote
1answer
218 views

How do I find detached debug symbols for decompilation?

I am trying to debug a segfault without code a binary in a nonstandard path (specifically in /frs/alg/alg/bin/) and I was noticing that the decompiled code has fewer symbols than when debugging under ...
3
votes
1answer
111 views

gdb set overwrite logging on should overwrite gdb.txt correct?

I was looking at Logging Output and had been trying this particular command - set logging overwrite on AFAI understood it, that command is supposed to overwrite the contents of gdb.txt but it does ...