Summary: | sys-apps/openrc-0.38.1 - “rc-status” terminated by signal SIGSEGV (Address boundary error) | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Georgy Yakovlev <gyakovlev> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hydrapolic |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Georgy Yakovlev
2018-07-03 03:22:56 UTC
overall rc-status seems to fail to read some entries in /run/openrc /run/openrc/{depconfig,deptree,softlevel} can only be read as root. that results in another, possibly related issue $ rc-status -r sysinit ... openat(AT_FDCWD, "/run/openrc/softlevel", O_RDONLY) = -1 EACCES (Permission denied) ... while as root it's as expected # rc-status -r default I'm not sure how you ended up with things in /run/openrc not being world readable. You can fix this by running this command as root: # chmod --recursive go+r /run/openrc Below you will find the output I get if I run the mentioned commands: -- cut here --- william@linux1 ~ $ rc-status -r default william@linux1 ~ $ rc-status Runlevel: default metalog [ started ] dhcpcd [ started ] ddclient [ started ] cronie [ started ] bitlbee [ started ] chronyd [ started ] espeakup [ stopped ] nullmailer [ started ] sshd [ started ] local [ started ] Dynamic Runlevel: hotplugged Dynamic Runlevel: needed/wanted Dynamic Runlevel: manual --- cut here --- That being said, I will keep this open because I need to look into why the error handling for this scenario is not good. I'm pretty sure I did not do anything that could influence the permissions of openrc files in /run directory, I just let openrc mount it and not touching umask and there is no /run entry in fstab as well. my openrc box is non-operational now, but I'll try to spin it up or spin up a vm with minimal configuration possible and check permissions. generally yes, some checks seem to be missing/misbehaving while loading deptree or softlevel from /run. It should definitely fail or do something else if it can't read the files and deptree is empty. This is fixed in the following commit: https://github.com/openrc/openrc/commit/7478c104 oThis will be in openrc-0.41. affected versions no longer in the tree. closing. |