sensord now installed, but --rrd-file argument is fatal
Moving this to the lm_sensors list.
Quoted 31 lines · J G Miller
I have installed the sensord package (which also caused the rrdtool package to be installed as well) but with the included startup argument to invoke rrd, sensord crashes
munmap(0x40000000, 4096) = 0 stat64("/var/log/sensord.rrd", 0xbfffe15c) = -1 ENOENT (No such file or directory) time([1080841795]) = 1080841795 open("/usr/share/zoneinfo/CET", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_sizeu5, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 755 close(3) = 0 munmap(0x40000000, 4096) = 0 rt_sigaction(SIGPIPE, {0x4ecffa30, [], SA_RESTORER, 0x4ec4e868}, {SIG_DFL}, 8) = 0 socket(PF_UNIX, SOCK_DGRAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family¯_UNIX, path="/dev/log"}, 16) = 0 send(3, "<166>Apr 1 19:49:55 sensord: cr"..., 59, 0) = 59 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 +++ killed by SIGSEGV +++Removing the --rrd-file
/var/log/sensord.rrdargument from the startup line of sensord allowed sensord to startup, with logging going to the default syslog.Since no sensord.rrd file is created, it looks like there is a serious bug in the routines to create this file in the sensord executable.
Since this is not a packaging issue, and unless you can offer any advice, I should probably report this as a bug to the lm-sensors developpers, since I cannot find this bug described at their site.
Quoted 10 lines · J G Miller
Quoted 1 line
From the man page
-r, --rrd-file file
Specify a round-robin database into which to log all sensor readings; e.g., `/var/log/sensord.rrd'. This database will be created if it does not exist.
Since this feature is broken, it should not be the default setup in the installed
/etc/init.d/sensordfile.
I investigated this and sensord seems to not like using -a and -r together (logging average load and logging to rrd). Try removing the -a from the init.d script.
Is this a known problem? Any cure? :)
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040403/0e6fcc79/attachment.bin
Quoted 5 lines
I investigated this and sensord seems to not like using -a and -r together (logging average load and logging to rrd). Try removing the -a from the init.d script.
Is this a known problem? Any cure? :)
We had a report about segfault in sensord (2.8.5) some times ago:
http://archives.andrew.net.au/lm-sensors/msg06918.html
This was triggered by --load-average, so I wouldn't be surprised that this is the same problem here.
A fix has been commited to CVS (dated 8 Mar 2004) and was reported to work. I insert it here so that you can give it a try:
Index: rrd.c
=================================RCS file: /home/cvs/lm_sensors2/prog/sensord/rrd.c,v retrieving revision 1.7
retrieving revision 1.8
rrd.c +1 -1
@@ -195,7 +195,7 @@char *ptr = rrdBuff + data->num *RRD_BUFF ;const char *min, *max; data->argv[data->num ++] = ptr; -switch (feature->type) {/* arbitrary sanity limits */ +switch (feature ? feature->type : DataType_other) {/* arbitrary sanity limits */ case DataType_voltage: min="-25" ; max="25" ;
Let us know if it doesn't fix it, and we'll investigate.
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 32 lines · Jean Delvare
Quoted 5 lines
I investigated this and sensord seems to not like using -a and -r together (logging average load and logging to rrd). Try removing the -a from the init.d script.
Is this a known problem? Any cure? :)
We had a report about segfault in sensord (2.8.5) some times ago:
http://archives.andrew.net.au/lm-sensors/msg06918.htmlThis was triggered by --load-average, so I wouldn't be surprised that this is the same problem here.
A fix has been commited to CVS (dated 8 Mar 2004) and was reported to work. I insert it here so that you can give it a try:
Index:
rrd.c
=================================> RCS file:/home/cvs/lm_sensors2/prog/sensord/rrd.c,vretrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
+++rrd.c8 Mar 2004 18:03:42 -0000 1.8(quoted diff) +1
-1@@ -195,7 +195,7 @@ char *ptr = rrdBuff + data->num * RRD_BUFF; const char *min, *max; data->argv[data->num ++] = ptr; - switch (feature->type) { /* arbitrary sanity limits */ + switch (feature ? feature->type : DataType_other) { /* arbitrary sanity limits */ case DataType_voltage: min="-25"; max="25";
Quoted 1 line
Let us know if it doesn't fix it, and we'll investigate.
Thanks for the patch! If 2.8.6 is to be released and contains that patch I better wait for it, or not?
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040404/143a2eb6/attachment.bin
Quoted 2 lines
Thanks for the patch! If 2.8.6 is to be released and contains that patch I better wait for it, or not?
Yes you do, especially since I hope we'll release 2.8.6 within the next few days.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/