Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543506 - rc-status foo: Segmentation fault when runlevel (foo) contains a service named like the runlevel (foo)
Summary: rc-status foo: Segmentation fault when runlevel (foo) contains a service name...
Status: RESOLVED DUPLICATE of bug 537304
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 12:52 UTC by Thomas Deutschmann (RETIRED)
Modified: 2015-03-16 12:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2015-03-16 12:52:57 UTC
Hi,

when you have a runlevel "foo" which contains a service "foo" and you check status (rc-status foo), rc-status will segfault.

If you rename the runlevel, i.e.

  mv /etc/runlevels/foo /etc/runlevels/foo2

rc-status won't crash.

Reproducible: Always

Steps to Reproduce:
1. install -d /etc/runlevels/sshd
2. rc-update add sshd sshd
3. rc-status sshd
Actual Results:  
 # rc-status sshd
Runlevel: sshd
 sshd            [  started  ]
Segmentation fault (core dumped)


Expected Results:  
No segmentation fault.

# emerge --info
Portage 2.2.18 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 4.0.0-rc4 x86_64)
=================================================================
System uname: Linux-4.0.0-rc4-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     4025588 total,   3740844 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Mon, 16 Mar 2015 11:15:01 +0000
Timestamp of repository poly-c: Mon, 16 Mar 2015 09:18:41 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2015-03-16 12:53:24 UTC

*** This bug has been marked as a duplicate of bug 537304 ***