[Pkg-sysvinit-devel] Bug#463504: division by zero when xdm started at 01

martin f krafft madduck at debian.org
Fri Feb 1 02:53:49 UTC 2008


Package: sysv-rc
Version: 2.86.ds1-52
Severity: grave

I start xdm first:

lapse:~> ls /etc/rc2.d/S* | head -1
/etc/rc2.d/S01xdm

This causes the num_steps loop on line 257 of /etc/init.d/rc to
break during the first iteration, which in turn causes a division by
zero in the startup_process() function:

  /etc/init.d/rc exited outside the expected control flow
  /etc/init.d/rc: 2: arithmetic expression: division by zero: "1 * 31 / 0 + 61"

I think you may mean s/break/continue in the num_steps loop to not
count those few services, but to continue counting...

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

sysv-rc depends on no packages.

Versions of packages sysv-rc recommends:
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20080201/73b82ccb/attachment.pgp 


More information about the Pkg-sysvinit-devel mailing list