Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem ( bug? ) with sysctl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1178

PostPosted: Tue May 08, 2012 10:13 am    Post subject: Problem ( bug? ) with sysctl Reply with quote

Hi, my sysctl is behaving strange: If i want to access an key, which isn't there, sysctl stucks in an endless loop:
Code:

sudo LANG= sysctl kern.cp_time
sysctl: cannot stat /proc/sys/kern/cp_time: No such file or directory
sysctl: "cannot stat %s" is an unknown key
sysctl: permission denied on key 'cannot stat %s'
sysctl: permission denied on key 'cannot stat %s'
sysctl: permission denied on key 'cannot stat %s'
sysctl: permission denied on key 'cannot stat %s'
sysctl: permission denied on key 'cannot stat %s'
sysctl: permission denied on key 'cannot stat %s'
.
.
.


Strange as it is, this only happens on my desktop, not on my laptop (both use sys-process/procps-3.3.2_p2-r1), so I don't think it's a bug.
I encountered this problem, when trying to install collectd, as the configure script calls "sysctl kern.cp_time", which isn't there, but sysctl doesn't return, so the configure script can't continue.
I'm a little bit helpless, how to track this down, so anybody can help me here?

Greetings
Christian
Back to top
View user's profile Send private message
trubicoid
n00b
n00b


Joined: 04 Aug 2009
Posts: 55

PostPosted: Wed Aug 29, 2018 11:50 am    Post subject: Reply with quote

Had the same strange infinite loop with sysctl. Seems it was due to -flto. Compiled without -flto works fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum