Questions tagged [gdb]

26 questions
24
votes
1 answer

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 debugging. For a big core dump that might mean…
Craig Ringer
  • 10,553
  • 9
  • 38
  • 59
5
votes
1 answer

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 this .gdbinit file from php's github repo, typing…
4
votes
0 answers

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 a MemoryError instead. Steps to…
sbrandt
  • 41
  • 3
4
votes
1 answer

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 should I do? > [root@buildbox-rhel6 ~]#…
Zippy Zeppoli
  • 200
  • 1
  • 8
4
votes
4 answers

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 a different version of the package I should be…
AJ.
  • 332
  • 3
  • 14
3
votes
1 answer

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 by ps j on the PIDs of gdb and your program…
locale
  • 373
  • 2
  • 4
  • 10
2
votes
1 answer

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. Is there any way we can use Selinux to create a…
2
votes
1 answer

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 want to preserve the backtrace. Also, I was…
James Gan
  • 376
  • 1
  • 5
  • 10
2
votes
0 answers

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 fine. [Fri Nov 29 20:44:41.318847 2013]…
Dan
  • 113
  • 1
  • 2
  • 10
2
votes
0 answers

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?
Robin Green
  • 451
  • 3
  • 11
2
votes
2 answers

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 2011] [notice] child pid 5558 exit signal…
Jack
  • 131
  • 1
  • 6
1
vote
0 answers

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 thread. Thanks for your help. (gdb) thread apply all…
Freddie
  • 173
  • 5
1
vote
1 answer

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 log. [notice] child pid 29281 exit signal…
1
vote
0 answers

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 production server, apache or the loaded modules are not…
Joyce Babu
  • 221
  • 2
  • 11
1
vote
0 answers

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 (Final) [root@dedicated]# php -v PHP 5.3.3 (cli)…
Andrew
  • 1,044
  • 6
  • 21
  • 36
1
2