Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6084881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:34:32+00:00 2026-05-23T11:34:32+00:00

I have an Apache module on Mac OS X that produces random crashes. I

  • 0

I have an Apache module on Mac OS X that produces random crashes. I can reproduce these crashes with certain sequence of actions, and these crashes produce Crash Reporter dialog “httpd quit unexpectedly”. Is there a way to cause Crash Reporter launch debugger (xcode, gdb, anything) instead of just displaying the backtrace?

I’ve tried running httpd under gdb with httpd -X but the crash doesn’t happen then – it happens only if many httpd’s are running at once, and I found no way to attach gdb to all of them at once. So I was hoping maybe I can cause CrashReporter to attach the debugger when specific process crashes – is there a way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:34:32+00:00Added an answer on May 23, 2026 at 11:34 am

    Unfortunately, the type of bug you describe has a tendency to disappear when perturbed by examination.

    That said, an option to try is launching a GDB session from inside your module. QA1573 has an example using DTrace, which would seem a bit cleaner, but after some experimentation this doesn’t seem to work terribly well with multiple processes. (I could not see a way to get DTrace to attach gdb at the time the process crashes; you only get a proc::postsig:signal-handle probe triggered after the process has already crashed.)

    You could do something like this from your module:

    % echo 'c' > continue.txt
    % osascript -e 'tell app "Terminal" to do script "gdb -x continue.txt attach <pid>"'
    

    which would open a separate Terminal window for each httpd process.

    You could also start gdb from outside instead, with a script (DTrace or otherwise) watching for httpd processes, and use the SIGSTOP method from QA1573 in your module’s code to wait until the script noticed the new httpd.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the DAV SVN Apache module running so that I can serve a
I have a Delphi Apache Shared Module. The base class is TWebModule. I can
I have a site using Apache rewrite module. The problem is that I'm using
My objective is create an apache module that will provide RESTful services (i.e., we
We're running CentOS 6 and PHP 5.3.8 (as an apache module) which should have
I'm using dlopen() in an Apache module that I am writing so that I
I am currently working on an Apache module that uses a large mmap file
I have an idea for a project based on the Apache module API. So,
I have very specific problem running PHP as Apache 2.2 module. When running PHP
Summary: I have PHP(5.3.8) installed as an Apache Module, and installed APC via PECL.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.