Follow-up Comment #3, bug #17319 (project hurd):

I tried the patched crash server, and it didn't quite work as expected.

I retried Thomas' example:

#v+
[EMAIL PROTECTED]:/var/tmp $ cat > crash.c
int main (void) { return *(int *) 0; }
[EMAIL PROTECTED]:/var/tmp $ gcc crash.c
[EMAIL PROTECTED]:/var/tmp $ ./a.out
Segmentation fault (core dumped)
[EMAIL PROTECTED]:/var/tmp $ ls -l core
-rw------- 1 thomas root 16912384 Jun 15 20:43 core
[EMAIL PROTECTED]:/var/tmp $ ls -l /servers/crash
lrwxr-xr-x 1 root root 13 Jun 15 20:42 /servers/crash -> crash-suspend
[EMAIL PROTECTED]:/var/tmp $ showtrans /servers/crash-suspend
/hurd/crash --suspend
#v-

But I added:

$ fsysopts /servers/crash-suspend  --suspend --orphan-action=suspend

It didn't change the behaviour -- it still dumped core.  but,

$ fsysopts /servers/crash-suspend  --suspend --orphan-action=kill

did.  It suspended the task.

I then tried to attach to the crash server using gdb, but it said that the
pid didn't have any children.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17319>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to