[OpenAFS-devel] Solaris panic when non-networked machine is shut down

Harald Barth haba@pdc.kth.se
Wed, 30 Oct 2002 18:42:40 +0100 (CET)


I traced it to rx/SOLARIS/rx_knet.c:osi_NetReceive() (line 677 in my version)

Solaris 5.5.1: If we never had any network traffic, at shutdown,
t_kspoll() returns events == 0 and results in a panic. Is there
something else to do instead of panic? Shut down kernel thread or just
ignore and continue? Remember, the machine is going to shut down
anyway.

Kolja, you did examine this earlier, any ideas? 
http://forum.sun.com/thread.jsp?forum=10&thread=7598

I'm not looking for a perfect solution, just for a way to stop it to
panic because in my environment default action on panic is to reboot
which is not what was intended in the first place. The annoying thing
is that reboot gets you into the same situation again if you were not
be able to apply a BREAK in the right moment.

Harald.

    /*
     * Loop until we get an error or receive some data.
     */
    while(1) {
        /*
         * Wait until there is something to do
         */
        code = t_kspoll(udp_tiptr, -1, READWAIT, &events);
        if (events == 0) {
/*===>*/  osi_Panic("osi_NetReceive, infinite t_kspoll timed out\n");
        }
        /*