Questions tagged [gdb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
108 views

minicom into qemu guest os

I need to be able to gdb into guest OS run by qemu. My machine (Ubuntu) doesn't have any serial ports. Essentially what I need to do is to create a virtual serial port on my Ubuntu machine, create a ...
0
votes
0answers
42 views

OSX Apache segmentation fault not appearing in gdb

I'm trying to diagnose why my web application is crashing. In the Apache logs: [Thu Oct 17 15:34:03.576004 2019] [core:notice] [pid 8699] AH00052: child pid 55133 exit signal Segmentation fault (11) ...
2
votes
1answer
299 views

Selinux Policy for CAP_SYS_PTRACE by invoking process name

I have a system in which we have GDB installed and a target binary which needs to be debugged for errors. We do not want the user to be able to debug any other process apart from the target binary. ...
4
votes
0answers
1k views

MemoryError when using gdb's Python extension on Jessie

In the past, I frequently used the possibility to attach gdb to a running Python process and use the py-* extensions for debugging. However, since Debian Jessie, this does not work anymore and throws ...
0
votes
1answer
209 views

PHP5-FPM on Nginx crash Zend/zend_language_scanner.c: no such file or directory

Our current configuration: Debian 8.6 Nginx web server PHP5-FPM v5.6.27-0+deb8u1 Zend Engine v2.6.0 with Zend OPcache v7.0.6-dev We use Phalcon framework v2.0.11 (and v2.0.13 on test environment, ...
0
votes
2answers
101 views

View what file started a process in linux

One of my servers started sending spam in heavy amounts. The server is using ISPConfig 3 and one of the web users most likely has a security breach. I have identified the user and one file somehow ...
1
vote
0answers
263 views

apache segmentation fault interpret gdb core analysis

We had a segmentation fault error on apache and it generated a core file. Below is the result from gdb but I need some help interpreting what it means. The core file was produced by httpd.worker ...
0
votes
0answers
2k views

Debugging apache2 errors: exit signal Bus error

I'm hoping someone can help me debug my apache2 errors. For some reasons I'm getting a lot of errors lately on one of my systems: Sat Oct 10 16:49:24.101959 2015] [core:notice] [pid 18380] AH00051: ...
2
votes
1answer
2k views

What's a good RLIMIT_CORE setting if I only want backtrace?

all My C++ program generates core dump as large as 2GB and it quickly fills up all usable disc space. What I really need is only backtrace. I was wondering what's the safe size of core dump file if I ...
0
votes
2answers
1k views

Apache segmentation fault: how to get more information with gdb?

I'm seeing the following error in apache's error_log. It's completely random but when it happens, it prints 10-20 lines in error_log. Apache: [core:notice] [pid ***] AH00052: child pid *** exit ...
24
votes
1answer
1k views

Non-blocking core dump on Linux?

I'm looking for a way to take a non-intrusive coredump of a running process on Linux. I'm familiar with gdb's gcore, but that can only be run when gdb is attached to the process and it's stopped for ...
1
vote
1answer
843 views

Segmentation fault (11) on PHP website

I have recently moved a clients WordPress site to a new server. His old server was pretty outdated. It is the only site on the server. It's been a few weeks and I randomly get these errors in the php ...
2
votes
0answers
743 views

Internet Explorer SSL use causes segfault - Apache httpd SIGSEGV in apr_uri_parse

Recently I've had quite a large influx of the error below in the error_log. I've found out that it happens when someone browses my site using SSL https: and Internet Explorer, all other browsers are ...
2
votes
0answers
141 views

Obtain backtrace from httpd?

In my /var/log/httpd/error_log in Fedora 19 I have several child segmentation faults recorded. How can I get a backtrace for these when they occur?
4
votes
1answer
4k views

centos 6 debuginfo repository does not have httpd debug version available

I am trying to get the debug version of httpd so I can use it in conjunction with gdb. I am having a hard time getting them, and they don't seem to be in the standard epel-debuginfo repository. What ...
1
vote
0answers
577 views

Debugging apache seg fault with gdb

Apache on a production server of mine is seg faulting intermittently. I have enabled core dump option in apache configuration and have several dumped core files. Unfortunately, since it is a ...
0
votes
2answers
246 views

ssh client disconnected, after relogin, how can I recontrol my process or program?

as show below: Step 1: SSH Login to remote host. Step 2: Use gdb debug proc_a. Step 3: Use gdb subcommand (gdb) shell vi tes.c, edit the file. Step 4: The ssh client have something unknown error ...
1
vote
0answers
363 views

PHPExpress module segfault error

As a part of my server upgrade, I have installed newer versions of OS, PHP, Apache. Also, I have installed PHPExpress on my server: [root@dedicated]# cat /etc/redhat-release CentOS release 6.2 (...
2
votes
2answers
3k views

Apache Segmentation Fault

In my apache error log im getting lines such as [Wed Sep 21 16:51:14 2011] [notice] child pid 5414 exit signal Segmentation fault (11), possible coredump in /tmp/apache-cores/ [Wed Sep 21 17:04:15 ...
5
votes
1answer
3k views

Advice for Debugging Apache with PHP Segmentation Faults

Every hour or so an Apache child process seg. faults on our web server. We are running a non-threaded PHP 5.2.17 Apache module with Apache prefork MPM. I have run httpd with a few core dumps, gdb and ...
2
votes
1answer
1k views

What's pgrp in this context?

Quoted from here. gdb puts the debugged process in its own pgrp and sets the terminal to that pgrp. (Try e.g. ps j on the PIDs of gdb and your program being debugged.) And what does it mean ...
-1
votes
1answer
1k views

Want to install GDB on Fedora 7 machine

I want to install GDB GNU debugger for debugging C Programs, onto my fedora machine.. I installed the gzip file from gnu website, but it gives error during MAKE command.. I am doing all the steps ...
1
vote
4answers
7k views

I need help debugging apache with gdb (no debugging symbols found)

I'm trying to debug a segfault in PHP/Apache running on RHEL4. This is a production server, so I'm trying to install a separate copy of Apache and PHP, and run apache through gdb. When I load httpd ...
4
votes
4answers
2k views

Running gdb on Ubuntu 9.10 Apache2 Install

I am trying to run gdb to debug my Ubuntu 9.10 Apache2 install and having a couple of problems: It seems like the package installed by Ubuntu for Apache2 does not include debugging symbols; is there ...