Stuart Henderson wrote:
> set ddb.console=1 (needs to be done with securelevel<=0; add
> to sysctl.conf and reboot), then you can send a BREAK over the
> serial port and usually it will put you into DDB.
> 
> 

I set the sysctl a while ago.
It hung again today whilst I was trying to SSH an ISO to it, so I used
the ALOM card to send it a break. It didn't work. Is there anything else
I can do? I'm guessing its hardlocking, so I suppose the only thing I
can do is have something writing lots of logging.

Once I had rebooted it again, I decided to test that the ddb.console
thing was working, so I waited to get the login prompt, broke out to the
 ALOM prompt, and sent a break. It worked, and dropped to ddb>

Excellent. Test successful, I figured I should try to reboot cleanly, so
I issued boot sync. Oh dear. This caused "panic: switch wchan"

Everything I have I have enclosed below.


-- 

Si1entDave



OpenBSD/sparc64 (slash.dotslash.org.uk) (console)

login: sc> break -c
Are you sure you want to send a break to the system [y/n]? y
Enter #. to return to ALOM.

SC Alert: SC Request to send Break to host.
kdb breakpoint at 14002c0
Stopped at      Debugger+0x4:   nop
ddb{0}> boot sync
syncing disks... panic: switch wchan
kdb breakpoint at 14002c0
Stopped at      Debugger+0x4:   nop
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS, TOO.
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb{0}> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
 24640      1  24640      0  3   0x2004082  ttyin         getty
 19568      1  19568      0  3   0x2000080  select        cron
 17158      1  17158      0  3   0x2000080  select        sshd
 20330   6946   6946     67  3   0x2000180  netcon        httpd
  5624   6946   6946     67  3   0x2000180  netcon        httpd
 12876   6946   6946     67  3   0x2000180  netcon        httpd
 17194   6946   6946     67  3   0x2000180  netcon        httpd
  3908   6946   6946     67  3   0x2000180  netcon        httpd
 25437      1  25437      0  3   0x2000180  select        inetd
*22743      1  22743      0  3   0x2040180  select        sendmail
  6946      1   6946     67  3   0x2000180  select        httpd
 19349  13288    748     83  3   0x2000180  poll          ntpd
 13288    748    748     83  3   0x2000180  poll          ntpd
   748      1    748      0  3   0x2000080  poll          ntpd
  1234  27316  27316     73  3   0x2000100  ffs_fsync     syslogd
 27316      1  27316      0  3   0x2000088  netio         syslogd
    42      0      0      0  3   0x2100200  bored         crypto
    41      0      0      0  3   0x2100200  aiodoned      aiodoned
    40      0      0      0  3   0x2100200  syncer        update
    39      0      0      0  3   0x2100200  cleaner       cleaner
    38      0      0      0  3    0x100200  reaper        reaper
    37      0      0      0  3   0x2100200  pgdaemon      pagedaemon
    36      0      0      0  3   0x2100200  pftm          pfpurge
    35      0      0      0  7    0x100200                idle31
    34      0      0      0  7    0x100200                idle30
    33      0      0      0  7    0x100200                idle29
    32      0      0      0  7    0x100200                idle28
    31      0      0      0  7    0x100200                idle27
    30      0      0      0  7    0x100200                idle26
    29      0      0      0  7    0x100200                idle25
    28      0      0      0  7    0x100200                idle24
    27      0      0      0  7    0x100200                idle23
    26      0      0      0  7    0x100200                idle22
    25      0      0      0  7    0x100200                idle21
    24      0      0      0  7    0x100200                idle20
    23      0      0      0  7    0x100200                idle19
    22      0      0      0  7    0x100200                idle18
    21      0      0      0  7    0x100200                idle17
    20      0      0      0  7    0x100200                idle16
    19      0      0      0  7    0x100200                idle15
    18      0      0      0  7    0x100200                idle14
    17      0      0      0  7    0x100200                idle13
    16      0      0      0  7    0x100200                idle12
    15      0      0      0  7    0x100200                idle11
    14      0      0      0  7    0x100200                idle10
    13      0      0      0  7    0x100200                idle9
    12      0      0      0  7    0x100200                idle8
    11      0      0      0  7    0x100200                idle7
    10      0      0      0  7    0x100200                idle6
     9      0      0      0  7    0x100200                idle5
     8      0      0      0  7    0x100200                idle4
     7      0      0      0  7    0x100200                idle3
     6      0      0      0  7    0x100200                idle2
     5      0      0      0  7    0x100200                idle1
     4      0      0      0  3   0x2100200  bored         syswq
     3      0      0      0  2    0x100200  getblk        idle0
     2      0      0      0  3   0x2100200  kmalloc       kmthread
     1      0      1      0  3   0x2004080  wait          init
     0     -1      0      0  3   0x2080200  scheduler     swapper
ddb{0}> trace
copyout(4001bbf7470, 4001bc24480, 118, 149b800, 4008501bce0, 4) at
copyout+0x21
0
mi_switch(1400, 118, 4008501bb90, 1f5, 1802000, 5) at mi_switch+0x168
sleep_finish(4008501bb90, 1, 118, 149b800, 4008501bce0, 4) at
sleep_finish+0x12
0
tsleep(1890160, 118, 4008501bb90, 1f5, 1802000, 5) at tsleep+0xa0
sys_select(0, 4008501bdd0, 4008501bdc0, 0, 4008501bce0, 4) at
sys_select+0x1dc
syscall(4008501bed0, 5d, 44db85e8, 44db85ec, 0, 0) at syscall+0x13c
softtrap(8, fffffffffffceb30, 0, 0, fffffffffffceb20, fffffffffffcda10)
at soft
trap+0x18c
ddb{0}> boot sync
rebooting


SC Alert: Host System has Reset

Reply via email to