All of lore.kernel.org
 help / color / mirror / Atom feed
From: ppokorny@penguincomputing.com (Philip Pokorny)
To: lm-sensors@vger.kernel.org
Subject: 1250
Date: Thu, 19 May 2005 06:23:58 +0000	[thread overview]
Message-ID: <3EDCFE72.9090904@penguincomputing.com> (raw)
In-Reply-To: <200306021011.37032.decibel8@charter.net>

The magic is in the 'sensors.strace' file that should have been created.

 >> and post the last 20
 >> or 30 lines of the sensors.strace file?.  I'm looking for pairs of
 >> calls to sysctl where the first works and the second has a strange
 >> (???) entry in the first argument to sysctl.

At this point it *does* look like the same problem I had on SuSE...

I've attached the one-line fix...

:v)

David wrote:
> Didn't even get very far to even provide you with useful information. Here are 
> the results though. 
> By the way I am running Gentoo Linux, with gentoo-sources kernel 
> (2.4.20-gentoo-r5)
> 
> The results are:
> 
>>strace -o sensors.strace sensors -s
> 
> 
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> ptrace: umoven: Input/output error
> via686a-isa-6000: Can't access /proc file for writing;
> Run as root?
> 
> That is as far as it got. Sorry. Thanks for the help.
> 
> Dave
> 
> 
> On Monday 02 June 2003 08:56 pm, you wrote:
> 
>>You shouldn't actually need write permissions to the directory since
>>user-space won't be creating or deleteing files in via686a-isa-6000...
>>
>>And all the individual files have the right permisions...
>>
>>David, what OS are you running on?  I had a similar problem on SuSE
>>Linux 8 for 64-bit Opteron that was caused by sensors_proc_write having
>>it's data violated by some other code...
>>
>>Can you run 'strace -o sensors.strace sensors -s' and post the last 20
>>or 30 lines of the sensors.strace file?.  I'm looking for pairs of calls
>>to sysctl where the first works and the second has a strange (???) entry
>>in the first argument to sysctl.
>>
>>If so, I've got a patch that you can try...
>>
>>:v)
>>
>>Mark D. Studebaker wrote:
>>
>>>devfs could be it. no other good ideas at the moment.
>>>
>>>David wrote:
>>>
>>>>ls -l /proc/sys/dev/sensors
>>>>total 0
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:05 chips
>>>>dr-xr-xr-x    2 root     root            0 Jun  2 09:49 via686a-isa-6000
>>>>
>>>>ls -l /proc/sys/dev/sensors/via*
>>>>total 0
>>>>-r--r--r--    1 root     root            0 Jun  2 10:06 alarms
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 fan1
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 fan2
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 fan_div
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 in0
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 in1
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 in2
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 in3
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 in4
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 temp1
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 temp2
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:06 temp3
>>>>
>>>>But even when I change the via686a-isa-6000 folder to have root write
>>>>permissions it doesn't work.
>>>>
>>>>ls -l /proc/sys/dev/sensors
>>>>total 0
>>>>-rw-r--r--    1 root     root            0 Jun  2 10:07 chips
>>>>drwxr-xr-x    2 root     root            0 Jun  2 09:49 via686a-isa-6000
>>>>
>>>>So still get: sensors -s
>>>>via686a-isa-6000: Can't access /proc file for writing;
>>>>Run as root?
>>>>
>>>>I don't think the permission is staying either. Would devfs have
>>>>something to do with this?
>>>
> 



-- 
Philip Pokorny, Director of Engineering
Tel: 415-358-2635   Fax: 415-358-2646   Toll Free: 888-PENGUIN
PENGUIN COMPUTING, INC.
www.penguincomputing.com
-------------- next part --------------
diff -ru --new-file ../_relion1x/lm_sensors-2.7.0/lib/proc.c lm_sensors-2.7.0.adm1026/lib/proc.c
--- ../_relion1x/lm_sensors-2.7.0/lib/proc.c	Sun Nov 10 15:13:38 2002
+++ lm_sensors-2.7.0.adm1026/lib/proc.c	Wed May 28 14:04:25 2003
@@ -184,6 +184,7 @@
   sysctl_name[3] = the_feature->sysctl;
   if (sysctl(sysctl_name, 4, buf, &buflen, NULL, 0))
     return -SENSORS_ERR_PROC;
+  if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; }
   for (mag = the_feature->scaling; mag > 0; mag --)
     value *= 10.0;
   for (; mag < 0; mag ++)

  parent reply	other threads:[~2005-05-19  6:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:23 1250 David
2005-05-19  6:23 ` 1250 Mark D. Studebaker 
2005-05-19  6:23 ` 1250 Philip Pokorny
2005-05-19  6:23 ` Philip Pokorny [this message]
2005-05-19  6:23 ` 1250 Philip Pokorny
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 DAVID
2005-05-19  6:24 ` 1250 Philip Pokorny
2005-05-19  6:24 ` 1250 Philip Pokorny
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 Philip Pokorny
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 Jean Delvare
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 David
2005-05-19  6:24 ` 1250 David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EDCFE72.9090904@penguincomputing.com \
    --to=ppokorny@penguincomputing.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.