Ticket #34 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

Segmentation fault when caching depencies

Reported by: Nahor <nahor.j+openrc@gmail.com> Owned by: roy
Priority: normal Milestone:
Component: rc Version:
Keywords: Cc:

Description

When open RC rebuilds the service dependencies, it segfaults.

# /etc/init.d/midifonts restart
midifonts | * Caching service dependencies ...
/lib64/rc/sh/gendepends.sh: line 37: 14233 Segmentation fault ( exec 3>&1 1>&2; _rc_c=${SVCNAME%%.*}; if [ -n "${_rc_c}" -a "${_rc_c}" != "${SVCNAME}" ]; then

if [ -e "${_dir}/../conf.d/${_rc_c}" ]; then

. "${_dir}/../conf.d/${_rc_c}";

fi;

fi; unset _rc_c; if [ -e "${_dir}/../conf.d/${SVCNAME}" ]; then

. "${_dir}/../conf.d/${SVCNAME}";

fi; [ -e /etc/rc.conf ] && . /etc/rc.conf; if . "${_dir}/${SVCNAME}"; then

echo "${SVCNAME}" 1>&3; depend; for _deptype in config need use after before provide keyword;
do

eval _depends=\$rc_$(shell_var "${SVCNAME}")_${_deptype}; [ -z "${_depends}" ] && eval _depends=\$rc_${_deptype}; ${_deptype} ${_depends};

done;

fi ) [ok]
midifonts | * Loading MIDI fonts ... [ok]

Things still seem to work OK.

Change History

comment:1 Changed 2 years ago by Nahor <nahor.j+openrc@gmail.com>

  • Priority changed from enhancement to normal

comment:174 Changed 2 years ago by Nahor <nahor.j+openrc@gmail.com>

  • Status changed from new to resolved
  • Resolution set to invalid

In the dependency list of my "midifonts" init script, I put "depend alsasound" instead of "need alsasound" so it crashed because it went in an infinitely recursive loop.

comment:175 Changed 2 years ago by roy

(In reply to comment #1)

In the dependency list of my "midifonts" init script, I put "depend alsasound"
instead of "need alsasound" so it crashed because it went in an infinitely
recursive loop.

Sadly there's nothing we can do about catching that :/

Note: See TracTickets for help on using tickets.