Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: loading new envstat properties reboots system



Hmm, this is probably my area of responsibility. I'll try to have a look in the next day or two.

Do you get a crash dump? Or can you get a back-trace (with ddb.onpanic set to 1)?

What platform (should not matter, but you never know)?

Can you provide dmesg and output from envstat?


On Mon, 6 Dec 2010, Jeremy C. Reed wrote:

When I run "sudo /etc/rc.d/envsys restart" my system reboots. My
/var/log/messages has nothing about it. I do have slightly old versions.

I think this happened to me before but I can't find my notes on it. I
had been able to repeat it.

/etc/rc.d/envsys:
    $NetBSD: envsys,v 1.4 2007/10/07 05:30:56 xtraeme Exp $

/usr/sbin/envstat:
    $NetBSD: crt0-common.c,v 1.1 2010/08/07 18:01:33 joerg Exp $
    $NetBSD: crt0.S,v 1.1 2010/08/07 18:01:34 joerg Exp $
    $NetBSD: crti.S,v 1.1 2010/08/07 18:01:35 joerg Exp $
    $NetBSD: crtbegin.S,v 1.1 2010/08/07 18:01:34 joerg Exp $
    $NetBSD: envstat.c,v 1.78 2010/08/01 15:39:52 mlelstv Exp $
    $NetBSD: config.c,v 1.9 2010/02/15 22:37:14 pgoyette Exp $
    $NetBSD: config_yacc.y,v 1.4 2008/07/17 16:24:55 drochner Exp $
    $NetBSD: config_lex.l,v 1.7 2010/02/15 22:37:14 pgoyette Exp $
    $NetBSD: crtend.S,v 1.1 2010/08/07 18:01:34 joerg Exp $
    $NetBSD: crtn.S,v 1.1 2010/08/07 18:01:35 joerg Exp $

NetBSD 5.99.38 NetBSD 5.99.38 (GENERIC) #0: Tue Aug 10 19:00:23 UTC 2010
builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201008110000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
amd64 x86_64

It boots fine with the new envsys.con configuration.

$ cat /etc/envsys.conf | grep -v ^#


amdtemp0 {
        refresh-timeout = 5s;
        sensor0 {
                critical-min = 85C;
                critical-max = 92C;
        }
        sensor1 {
                critical-min = 85C;
                critical-max = 92C;
        }
        sensor2 {
                critical-min = 85C;
                critical-max = 92C;
        }
        sensor3 {
                critical-min = 85C;
                critical-max = 92C;
        }
}


In this case sensor2 and sensor3 I think are cpu1 sensor0 and cpu1
sensor1.


!DSPAM:4cfd41342361709310255!




-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index