Bug 72024
Summary: | sensors-detect internal error | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Markku Kolkka <markku.kolkka> | ||||
Component: | lm_sensors | Assignee: | Phil Knirsch <pknirsch> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 8.0 | CC: | john, rvokal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2002-10-01 21:01:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Markku Kolkka
2002-08-20 19:37:09 UTC
Created attachment 71664 [details]
script of sensors-detect run
The same happened in the case of my PR440FX based dual Pentium Pro system. The hardware sensor is some LM78 device. "sensors-detect" fails to detect the latter whereas this worked at least for Red Hat Linux 7.2 and 7.3. However, inserting the required modules (the same as in the past) by hand is possible (i2c-isa, lm78). The "sensors" command itself works properly then. It is thus solely a problem of "sensors-detect". The kernel support is functional. There is a work around "patch" to the perl code that seems to fix things;
however, it still begs the question of what changed to cause the actual problem.
The file in question is called "sensors-detect" (located in the prog/detect
subdirectory of the lm_sensors source tree).
Here is a cvs diff from the lm_sensors cvs tree:
1075c1075
< my $towrite = pack "C", $_[1];
---
> my $towrite = pack "C", ($_[1] & 0xff);
Note, your line number may vary. 1075 is based on the cvs tree for lm_sensors
which I pulled (I have an a7v333 mobo that required the latest code). For null
beta 3, the line number is 1068...
Because the "broken" version is present in the lm_sensors cvs tree, I'm going to
speculate that the problem may have to do with perl, not the script. The value
that the "pack" function is complaining about is 0xFFFFFF80. I'm guessing that
it didn't use to be sign extended and now it is ?!?
Hope this helps...
Identical error happens in clean install of RHL8.0 (Psyche) I've updated to latest upstream version 2.6.5, but that still contained that bug, so i fixed it in the latest rawhide build which is based on 2.6.5, too. Read ya, Phil |