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)

0
votes
0answers
11 views

Unable to Debug on FreeBSD 11.0

I have written a c++ program. But when I try to debug using gdb, it is not able to do so and throws this output. This GDB was configured as "amd64-marcel-freebsd"... (gdb) b main Breakpoint 1 at ...
0
votes
0answers
7 views

Getting vmlinux / debuginfo for an ElRepo Kernel

I recently needed to upgrade my CentOS 7 kernel to something more modern for doing some driver development work. I am using oprofile to measure a custom kernel module I am developing, so I believe I ...
0
votes
0answers
17 views

asix 3-1:1.0 eth1: kevent 4 may have been dropped

I am using Linux version 3.17.8 with a gumstix. Linux version 3.17.8 ([email protected]) (gcc version 4.9.1 (GCC) ) #1 SMP Fri Nov 4 18:42:12 EDT6 CPU: ARMv7 Processor [411fc093] revision 3 (...
2
votes
1answer
22 views

Fedora 15 updates

I have a dual booted system, and its been years since I have used the linux side. I am running Fedora15 and am trying to upgrade. I have tried yum install preupgrade and I get the error message ...
1
vote
1answer
38 views

Can I track down where a SIGINT came from if it's not from a user?

I have a long running (3 hours) shell script running on a CentOS 7 machine. The script runs a loop with an inner loop and calls curl in each iteration. I'm starting the script with PM2 because it's ...
0
votes
0answers
10 views

Lightdm spazzing with MATE desktop

After deleting gnome (and gdm3) I needed a new display manager since MATE doesn't have its own stand-alone one. I chose lightdm. It works but not without an extremely annoying graphical bug- when the ...
0
votes
0answers
21 views

How to enable rsyslog debug immediately after bootup

I want to get rsyslog debug logs immediately after bootup. I have RSYSLOG_DEBUG and RSYSLOG_DEBUGLOGS environment variables set, but debugging needs to be turn on with USR1 signal so I need to manualy ...
2
votes
1answer
29 views

why does ltrace produce no output

For several days I have left this command running in a terminal emulator ltrace -p `pgrep xfwm4` while using the system normally, and I'm yet to see any output from ltrace. Note: xfwm4 is Xfce's ...
0
votes
0answers
13 views

Change memory allocator behaviour to assist memory corruption debugging / gflags.exe analogue for linux

I'm debugging a memory corruption issue in closed-sourced linux application and, due to it's specifics, nor gdb nor valgrind could help me to trace the root cause - overrun corrupts some thread and ...
1
vote
1answer
72 views

Java equivalent of strace

When I have an issue with a C application, one of the first tools I reach for is strace, I can easily see e.g. if it is blocking on a read from a socket, or for some file I/O or whatever else. But ...
1
vote
0answers
29 views

Debugging a suspend to ram issue with PM_TRACE

So I've been debugging a hairy suspend-to-ram issue, where I get Oct 12 15:41:23 arjundesktop dbus[2863]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org....
0
votes
0answers
27 views

Linux dynamic kernel debug

Have been working on getting dynamic debug to work on my embedded linux distro by following this guide https://github.com/tinganho/linux-kernel/blob/master/Documentation/dynamic-debug-howto.txt But ...
3
votes
1answer
102 views

Record time of every process or thread context switch

I'm trying to get the nearest to real-time processing I can with a Raspbian distribution on a Raspberry Pi for manipulating its GPIO pins. I want to get a "feel" for the kind of performance I can ...
0
votes
1answer
47 views

Run GDB command line multiple times

Due to my mother language is not English. So, excuse me for this bad introduction of my question. I would explain what I need through figure shown below. As you can see, we have a folder which ...
0
votes
0answers
21 views

good options, arguments to put when using gdb debugger to debug a program?

I am running Debian. Sometimes whenever a program is mis-behaving i.e. crashing I use the following arguments to run gdb on the program. I do have either -dbg or -dbgsym packages installed of the ...
1
vote
0answers
62 views

Is this missing dependency-bug of Python3 in Kazam of Debian 8.5?

I tried to record the bug related to my typing but could not get Kazam work as root and as non-root, see following; I installed it by apt-get install kazam ffmpeg successfully but not properly because ...
1
vote
0answers
73 views

Find the cause of a permanently-blocked I/O (process in uninterruptible sleep)

Under Linux, I have a process that is blocked in uninterruptible sleep (state D). How can I investigate what's causing this? I am running an “ordinary” kernel (a Debian build), without any special ...
0
votes
1answer
172 views

How can I debug Nautilus crashes?

Is there a log file I can peruse, or settings somewhere that might give me a clue? I'm running GNOME nautilus 3.14.3 ("Files") in Ubuntu 16.04.
2
votes
1answer
98 views

AppArmor is causing Firefox segfaults

I realise this is probably a bad question but I'm stuck. After a lot of googling I'm struggling to fix the problem. I've been trying to get AppArmor to work on Debian. I've been following the ...
0
votes
1answer
253 views

How to step-into, step-over and step-out with GDB?

I typed help while I was in the GDB but didn't find anything about step-into, step-over and step-out. I put a breakpoint in an Assembly program in _start (break _start). Afterwards I typed next and it ...
13
votes
2answers
569 views

Is there a way for shell script to know which program has executed it?

In *nix world, is there a way for shell script to have information about which program has executed it? Example: /path/to/script1 /path/to/script_xyz in this imaginary scenario, script_xyz would ...
0
votes
1answer
15 views

Debug CalDAVs sync failures with network sniffer, how to be display prettyprinted traffic in terminal

I need to debug some unsuccessful CalDAV synchronization requests. I have functioning clients, so I can compare working vs broken. The traffic is SSL-encrypted, but I have the key. I have root on a ...
2
votes
0answers
31 views

separate debug-info files in FreeBSD

In GNU/Linux, there are debug-link and build-id sections in ELF files which shows separate debug-info files name or CRC32 [https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html]. There ...
1
vote
0answers
44 views

list of wpa_supplicant error messages

I'm trying to write a test to debug a network manager that utilises wpa_supplicant but I'm having a hard time finding a list of error messages that I can expect for CTRL-EVENT-SSID-TEMP-DISABLED ...
2
votes
1answer
326 views

wpa_cli level command always fails

I'm trying to set the debug level of wpa_cli using the level command. It doesn't matter if I use interactive mode or direct commands the level command always fails. wpa_cli -i wlan0 level 1 => ...
0
votes
0answers
105 views

Process crashed on the first several times when launching

I use OpenWrt and build OpenWrt provided Python 2.7.9 as modules which are standalone .ipk files. I simply copy those ipk files to our MIPSel platform and install it to a mounted file system on eMMC. ...
1
vote
1answer
66 views

2 different libelf.h and libdwarf.h in FreeBSD?

In FreeBSD 10.3 there are 2 libelf.h, /usr/include/libelf.h and /usr/local/include/libelf/libelf.h. And they have different defines, such as enum Elf_Cmd. Also there are 2 libdwarf.h, /usr/include/...
3
votes
1answer
66 views

bash: Cancelling the execution of 'trap handler DEBUG'

I can get a function myHandler() to execute before a bash command by doing the following: function myHandler() { ... } trap 'myHandler' DEBUG However, I'd like to be able to proceed with or abort ...
1
vote
1answer
82 views

Files system become suddently read only; how to debug this?

My ext-4 root and home filesystem became suddently read-only. How can I find out what was the reason for this? The system is ubuntu 16.04 with systemd (installed on an ssd), where root and home ...
0
votes
0answers
66 views

controlling wpa_supplicant using node.js

I would like to control wpa_supplicant using a node.js module. Most importantly I want to be able to detect connection failures so I can write a program that can act upon them. So far setting up a ...
0
votes
1answer
83 views

Generic debugging / logging / tracing filesystem directory & file access? [duplicate]

This is my particular problem: I'm trying to set up git on a server, for which I'm doing a test on a locally installed apache on Ubuntu 14.04; for instance, I can do git clone fine over HTTP, but git ...
1
vote
2answers
45 views

Who is stealing my pids?

I noticed that my Debian Jessie system is using many pids, even when the system is (should be) largely idle. The following shows that more or less 270 pids are used per 10s, while the number of active ...
1
vote
0answers
381 views

How to enable kernel pstore?

I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so. My kernel (4.1.20)...
1
vote
0answers
98 views

How to let kernel not run the printk with KERN_DEBUG

I noticed that kernel has different console levels for the printk. I also noticed this post [1]. I understand that we can change the /proc/sys/kernel/printk to change the printk level for the ...
3
votes
2answers
145 views

How can I activate extra-verbose mode (debugging mode) during Debian boot?

How do I activate extra verbosity during boot, on Debian? I removed the quiet parameter and tried to add debug but it didn't help. My problem is that my keyboard takes 2-3 min to activate so it ...
1
vote
2answers
88 views

Making sense of Time in dmesg

I know the time in dmesg is the time since boot. But my specific question is this time is calculated at the start or end of the process mentioned in the line? Why this is important? take this example:...
4
votes
2answers
925 views

Understanding wpa_supplicant

TL;DR. I need help getting to the bottom of: why there are errors related to ioctl when using wext driver, why I'm not able to use nl80211 driver. When running wpa_supplicant I get weird errors (...
0
votes
1answer
49 views

Storing PHP output issued by crontab

I have a PHP file that is suppose to send one email per day scheduled by crontab. Here is my crontab: 45 23 * * * php /var/www/html/linus/class/runnable/dailyStaffReport.php I noticed that it's not ...
1
vote
2answers
68 views

Debugging “unable to connect to sendmail server”

In a corporate environment, we have a mail server which has only ports 25/tcp and 587/tcp available. When we use Perl Scripts (using HTML::Mail) to send hundreds of legitimate mails, it occasional ...
3
votes
1answer
113 views

How to dump the dmesg AKA Kernel logs to a single .txt file from the kernel boot?

I am trying to understand the SATA Host-Device Communication and for that I have put a lot of debug messages in the kernel driver code. Now messages are in such a huge amount that I am not able to see ...
2
votes
2answers
330 views

Debugging a kernel shut down?

I'm on Linux 4.2.0, the Ubuntu Wily HWE kernel for Ubuntu 14.04 (which is what I'm running). There's a nasty bug on MacBook 11,4 and 11,5 models where the laptops won't actually ever shut off, they ...
1
vote
0answers
39 views

How to debug a bash script in a qemu-arm chroot

I'm running a debian debootstrap script which creates an arm system. However, the script fails at some point and the error message does not really help. So I'll have to do some more debugging which is ...
0
votes
1answer
40 views

Why is echo not working for mt valgrind command?

So I have my makefile working great, except that It doesn't create the valgrind.out file and I don't know why. So the console succesfully prints out that my executable file line is created but not ...
2
votes
1answer
500 views

Inline debug (xtrace) in scripts

Is there a way to force enable or disable debug (xtrace) per command line in scripts ? In Windows Shell ("ms-dos") is an "@" which can prefix a command line, disabling that line to be showed if the ...
0
votes
0answers
32 views

Does Manjaro Linux have a debug packages

One of my biggest frustrations with Arch Linux is the need to recompile half my OS every few weeks in order to provide meaningful bug reports to upstream projects. Most other distributions provide ...
2
votes
1answer
3k views

“rcu_preempt detected stalls on CPUs / tasks” message appears to continue

My board continues to display the message below. The terminal does not have any input. What is it with the following message, which I know? (T, g, c, q ...) What is the cause of this phenomenon? ...
1
vote
0answers
509 views

Linux Kernel module Remote Debugging with GDB + KGDB, Remote 'g' packet reply is too long

I am trying to remotely debug Linux Kernel and I am having issues. My setup: Target machine with Ubnutu Linux with my custom kernel 4.3 which I built with debugging information and KGDB. ...
0
votes
1answer
80 views

Debugging: OwnCloud horribly slow

I am trying to figure out why my OwnCloud installation stalls of 10s of seconds before it runs again for 10s of seconds normally. What kind of debugging can I enable on OwnCloud (server+client), so I ...
0
votes
0answers
114 views

printk does not prints in terminal

I inserted some printk in kernel 3.15.1 functions such as theese: in fs/read_write.c in function read(): printk("Ata: Im in fs/read_write.c and in function read"); in same file in function ...
0
votes
1answer
248 views

Syntax error: Unterminated quoted string. Cannot find error

I'm writing a script to parse a larger file into usable data. I will attach the script below. The script was not running as I wanted and I thought it might have been the if/then statement I used, but ...