Weblog

All | General
« Previous month (Jul 2006) | Main | Next month (Sep 2006) »
20060906 Wednesday September 06, 2006

System-wide AppCrash for special processes

As discussed in Easy way to install AppCrash system-wide, AppCrash can be installed as a daemon watching the entire system for crashing processes. This has proven to be the most practical way to use it. Most AppCrash users I know don't modify any of those scripts. They just use the ones supplied with the tool.

(Generally, I've noticed that ready-to-use tools performing specific tasks tend to be used much more than toolkits requiring the users to spend a lot of time and effort to learn and then to build their own tools.)

However, recently I've got a few reports from users of AppCrash saying pstack(1) and other such commands didn't work due to permission problems of the crashing process in some cases, particularly when the crashing processes are more than "user applications."

The original AppCrash design was that app_crash.d or app_crash_global.d executed the runme_on_app_crash script as the user who owned the crashing process. As it turned out, there is a problem with this approach in some cases: certain special processes have complex permission settings that prevent this design from working correctly.

Here are two examples:

To resolve this problem, I've modified (simplified, actually) the system-wide AppCrash setup described in Easy way to install AppCrash system-wide to run the /opt/app_crash/runme_on_app_crash script as root, regardless of who owns the crashing process.

Morgan Herrington and I have discussed the implications of this design change.

On one hand, running the runme_on_app_crash script as root resolves the problem described above: pstack(1) and other such commands produce their output as required for any crashing process. On the other hand, it may create some problems.

Here are the issues we have considered.

The updated tarball with AppCrash is in the same place as before: app_crash.tar.gz. The installation instructions are here: Easy way to install AppCrash system-wide.

If you already have system-wide AppCrash installed, here's how you can update it:

( Sep 06 2006, 11:11:36 AM EDT ) Permalink Comments [1]

Calendar

RSS Feeds

Search

Links

Navigation

Referers