From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076340321498.tru64-unix-managers.marc@archive.invalid> From: "JARNTH" Date: Fri, 11 Oct 1996 13:10:37 +0000 To: tru64-unix-managers Subject: [SUMMARY] How to force a panic? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076340321498 My original question was: >How can a panic with saving of the crash dump be forced on DU 3.2c >from a program or shell command? >I know that the halt button on Alpha1000/2100 gives the option of >saving with the crash command, but I am looking for a method that can >be performed from a program on a running system. >I know that on Solaris You can set the rootdir pointer to 0x0 with >adb, is there a similar method that will work from kdbx? The answers of which I have successfully used the first are: iwm@uvo.dec.com: >Mmmmm.... unusual request! >I believe setting the hz variable to 0 ought to do it. >dbx -k /vmunix >dbx> assign hz=0 >This is a sure fire way to push it over! >Do this at your own risk though! Lucien_HERCAUD@paribas.com (Lucien HERCAUD): >A method I used: >as root ># dbx -k /vmunix << xxEND >a proc_root = 0 >quit >xxEND ># umount /proc >or ># mount /proc >Suppose you have /proc mounted in fstab. Larry Scott USG : >The following script should do the trick: >#!/bin/sh >dbx -k /`/usr/sbin/sizer -b` << end >a ((struct super_task *)thread->task)->proc->p_pid=1 quit >end Dave Cherkus : >Yes, that same variable exists and works the same way. ># dbx -k /vmunix >(dbx) a rootdir=0 >(dbx) quit ># ls / >[ boom! ] Thank You All!!. Sincerely Jens Arnth Jensen, DSC Communications A/S Lautrupbjerg 7-11 DK-2750 Ballerup Denmark email: jarnth@dscc.dk