Here is the setup to create this crash: 1. create a new runlevel, /etc/init.d/foobar. 2. Add a service to this runlevel that has the same name as the runlevel. 3. Stack the default runlevel in this new runlevel (the stacking is irrelivent, I'm just suggesting it so all of your other services do not go down) Or, if you want, just create a service called default and add it to the default runlevel. Now, OpenRC will crash when you try to go into the new runlevel. This worked in 0.12.4, so it is a regression.
The workaround for this is to make sure that your services do not have the same names as the runlevels.
*** Bug 543506 has been marked as a duplicate of this bug. ***
The following pull request has been submitted on github for this issue; I will look into it. https://github.com/openrc/openrc/pull/53
This is included in 0.15.1.