rcorder(8) dumps core

Lukas Ertl le at FreeBSD.org
Tue Sep 14 08:52:23 PDT 2004


Hi,

today I noticed a problem with rcorder on a very recent -CURRENT:

[root at korben ~]# rcorder -k FreeBSD -s nostart -d /etc/rc.d/*
parse_args
initialize
rcorder: file `/etc/rc.d/nsswitch' is before unknown provision `network'
crunch_all_files
generate on /etc/rc.d/ypxfrd
do_file on /etc/rc.d/ypxfrd.
do_file on /etc/rc.d/nisdomain.
do_file on /etc/rc.d/rpcbind.
do_file on /etc/rc.d/named.
do_file on /etc/rc.d/SERVERS.
do_file on /etc/rc.d/ipmon.
do_file on /etc/rc.d/ipfilter.
do_file on /etc/rc.d/mountcritlocal.
do_file on /etc/rc.d/root.
do_file on /etc/rc.d/fsck.
do_file on /etc/rc.d/early.sh.
do_file on /etc/rc.d/swap1.
do_file on /etc/rc.d/vinum.
do_file on /etc/rc.d/dumpon.
do_file on /etc/rc.d/initrandom.
do_file on /etc/rc.d/rcconf.sh.
do_file on /etc/rc.d/initdiskless.
do_file on /etc/rc.d/preseedrandom.
next do: /etc/rc.d/preseedrandom
nuking /etc/rc.d/preseedrandom
next do: /etc/rc.d/initdiskless
nuking /etc/rc.d/initdiskless
next do: /etc/rc.d/rcconf.sh
nuking /etc/rc.d/rcconf.sh
next do: /etc/rc.d/initrandom
nuking /etc/rc.d/initrandom
next do: /etc/rc.d/dumpon
nuking /etc/rc.d/dumpon
next do: /etc/rc.d/vinum
nuking /etc/rc.d/vinum
do_file on /etc/rc.d/gbde_swap.
next do: /etc/rc.d/gbde_swap
nuking /etc/rc.d/gbde_swap
do_file on /etc/rc.d/gbde.
next do: /etc/rc.d/gbde
nuking /etc/rc.d/gbde
do_file on /etc/rc.d/ccd.
next do: /etc/rc.d/ccd
nuking /etc/rc.d/ccd
next do: /etc/rc.d/swap1
nuking /etc/rc.d/swap1
next do: /etc/rc.d/early.sh
nuking /etc/rc.d/early.sh
next do: /etc/rc.d/fsck
nuking /etc/rc.d/fsck
next do: /etc/rc.d/root
nuking /etc/rc.d/root
next do: /etc/rc.d/mountcritlocal
nuking /etc/rc.d/mountcritlocal
next do: /etc/rc.d/ipfilter
nuking /etc/rc.d/ipfilter
do_file on /etc/rc.d/cleanvar.
do_file on /etc/rc.d/var.
next do: /etc/rc.d/var
nuking /etc/rc.d/var
next do: /etc/rc.d/cleanvar
nuking /etc/rc.d/cleanvar
do_file on /etc/rc.d/sysctl.
do_file on /etc/rc.d/addswap.
next do: /etc/rc.d/addswap
nuking /etc/rc.d/addswap
next do: /etc/rc.d/sysctl
nuking /etc/rc.d/sysctl
do_file on /etc/rc.d/hostname.
next do: /etc/rc.d/hostname
nuking /etc/rc.d/hostname
next do: /etc/rc.d/ipmon
nuking /etc/rc.d/ipmon
do_file on /etc/rc.d/savecore.
do_file on /etc/rc.d/syslogd.
do_file on /etc/rc.d/lomac.
do_file on /etc/rc.d/mountcritremote.
do_file on /etc/rc.d/devd.
do_file on /etc/rc.d/NETWORKING.
do_file on /etc/rc.d/dhclient.
do_file on /etc/rc.d/ipfw.
do_file on /etc/rc.d/ppp-user.
do_file on /etc/rc.d/isdnd.
do_file on /etc/rc.d/netif.
do_file on /etc/rc.d/adjkerntz.
do_file on /etc/rc.d/random.
next do: /etc/rc.d/random
nuking /etc/rc.d/random
next do: /etc/rc.d/adjkerntz
nuking /etc/rc.d/adjkerntz
do_file on /etc/rc.d/atm1.
next do: /etc/rc.d/atm1
nuking /etc/rc.d/atm1
do_file on /etc/rc.d/ipfs.
do_file on /etc/rc.d/ipnat.
next do: /etc/rc.d/ipnat
nuking /etc/rc.d/ipnat
next do: /etc/rc.d/ipfs
nuking /etc/rc.d/ipfs
do_file on /etc/rc.d/kldxref.
next do: /etc/rc.d/kldxref
nuking /etc/rc.d/kldxref
do_file on /etc/rc.d/sppp.
next do: /etc/rc.d/sppp
nuking /etc/rc.d/sppp
do_file on /etc/rc.d/serial.
next do: /etc/rc.d/serial
nuking /etc/rc.d/serial
do_file on /etc/rc.d/pccard.
next do: /etc/rc.d/pccard
nuking /etc/rc.d/pccard
next do: /etc/rc.d/netif
nuking /etc/rc.d/netif
next do: /etc/rc.d/isdnd
nuking /etc/rc.d/isdnd
next do: /etc/rc.d/ppp-user
nuking /etc/rc.d/ppp-user
next do: /etc/rc.d/ipfw
nuking /etc/rc.d/ipfw
next do: /etc/rc.d/dhclient
nuking /etc/rc.d/dhclient
do_file on /etc/rc.d/mroute6d.
do_file on /etc/rc.d/network_ipv6.
do_file on /etc/rc.d/ip6addrctl.
next do: /etc/rc.d/ip6addrctl
nuking /etc/rc.d/ip6addrctl
do_file on /etc/rc.d/ip6fw.
do_file on /etc/rc.d/routing.
do_file on /etc/rc.d/atm2.
next do: /etc/rc.d/atm2
nuking /etc/rc.d/atm2
next do: /etc/rc.d/routing
nuking /etc/rc.d/routing
next do: /etc/rc.d/ip6fw
nuking /etc/rc.d/ip6fw
next do: /etc/rc.d/network_ipv6
nuking /etc/rc.d/network_ipv6
next do: /etc/rc.d/mroute6d
nuking /etc/rc.d/mroute6d
do_file on /etc/rc.d/route6d.
next do: /etc/rc.d/route6d
nuking /etc/rc.d/route6d
do_file on /etc/rc.d/mrouted.
next do: /etc/rc.d/mrouted
nuking /etc/rc.d/mrouted
do_file on /etc/rc.d/routed.
next do: /etc/rc.d/routed
nuking /etc/rc.d/routed
next do: /etc/rc.d/NETWORKING
nuking /etc/rc.d/NETWORKING
next do: /etc/rc.d/devd
nuking /etc/rc.d/devd
next do: /etc/rc.d/mountcritremote
nuking /etc/rc.d/mountcritremote
next do: /etc/rc.d/lomac
nuking /etc/rc.d/lomac
next do: /etc/rc.d/syslogd
nuking /etc/rc.d/syslogd
next do: /etc/rc.d/savecore
nuking /etc/rc.d/savecore
next do: /etc/rc.d/SERVERS
nuking /etc/rc.d/SERVERS
next do: /etc/rc.d/named
nuking /etc/rc.d/named
do_file on /etc/rc.d/ntpd.
do_file on /etc/rc.d/DAEMON.
do_file on /etc/rc.d/accounting.
next do: /etc/rc.d/accounting
nuking /etc/rc.d/accounting
do_file on /etc/rc.d/amd.
do_file on /etc/rc.d/nfsclient.
rcorder: Circular dependency on provision `rpcbind' in file `/etc/rc.d/nfsclient'.
next do: /etc/rc.d/nfsclient
nuking /etc/rc.d/nfsclient
do_file on /etc/rc.d/ypbind.
do_file on /etc/rc.d/nisdomain.
rcorder: Circular dependency on file `/etc/rc.d/nisdomain'.
rcorder: Circular dependency on provision `rpcbind' in file `/etc/rc.d/nisdomain'.
next do: nuking /etc/rc.d/nisdomain
do_file on /etc/rc.d/ypserv.
rcorder: Circular dependency on provision `rpcbind' in file `/etc/rc.d/ypserv'.
next do: /etc/rc.d/ypserv
nuking /etc/rc.d/ypserv
next do: /etc/rc.d/ypbind
nuking /etc/rc.d/ypbind
rcorder: Circular dependency on provision `rpcbind' in file `/etc/rc.d/amd'.
next do: /etc/rc.d/amd
nuking /etc/rc.d/amd
do_file on /etc/rc.d/atm3.
next do: /etc/rc.d/atm3
nuking /etc/rc.d/atm3
do_file on /etc/rc.d/cleartmp.
do_file on /etc/rc.d/tmp.
next do: /etc/rc.d/tmp
nuking /etc/rc.d/tmp
next do: /etc/rc.d/cleartmp
nuking /etc/rc.d/cleartmp
do_file on /etc/rc.d/dmesg.
next do: /etc/rc.d/dmesg
nuking /etc/rc.d/dmesg
do_file on /etc/rc.d/ike.
rcorder: requirement `beforenetlkm' in file `/etc/rc.d/ike' has no providers.
next do: /etc/rc.d/ike
nuking /etc/rc.d/ike
do_file on /etc/rc.d/ipsec.
next do: /etc/rc.d/ipsec
nuking /etc/rc.d/ipsec
do_file on /etc/rc.d/ipxrouted.
next do: /etc/rc.d/ipxrouted
nuking /etc/rc.d/ipxrouted
do_file on /etc/rc.d/kadmind.
do_file on /etc/rc.d/kerberos.
next do: /etc/rc.d/kerberos
nuking /etc/rc.d/kerberos
next do: /etc/rc.d/kadmind
nuking /etc/rc.d/kadmind
do_file on /etc/rc.d/keyserv.
next do: /etc/rc.d/keyserv
nuking /etc/rc.d/keyserv
do_file on /etc/rc.d/kpasswdd.
next do: /etc/rc.d/kpasswdd
nuking /etc/rc.d/kpasswdd
do_file on /etc/rc.d/ldconfig.
next do: /etc/rc.d/ldconfig
nuking /etc/rc.d/ldconfig
do_file on /etc/rc.d/nfslocking.
do_file on /etc/rc.d/nfsd.
do_file on /etc/rc.d/mountd.
do_file on /etc/rc.d/quota.
next do: /etc/rc.d/quota
nuking /etc/rc.d/quota
rcorder: Circular dependency on provision `rpcbind' in file `/etc/rc.d/mountd'.
do_file on /etc/rc.d/nfsserver.
next do: /etc/rc.d/nfsserver
nuking /etc/rc.d/nfsserver
next do: /etc/rc.d/mountd
nuking /etc/rc.d/mountd
next do: /etc/rc.d/nfsd
nuking /etc/rc.d/nfsd
next do: /etc/rc.d/nfslocking
nuking /etc/rc.d/nfslocking
do_file on /etc/rc.d/pf.
do_file on /etc/rc.d/pflog.
rcorder: requirement `beforenetlkm' in file `/etc/rc.d/pflog' has no providers.
next do: /etc/rc.d/pflog
nuking /etc/rc.d/pflog
rcorder: requirement `beforenetlkm' in file `/etc/rc.d/pf' has no providers.
next do: /etc/rc.d/pf
nuking /etc/rc.d/pf
do_file on /etc/rc.d/pppoed.
next do: /etc/rc.d/pppoed
nuking /etc/rc.d/pppoed
do_file on /etc/rc.d/pwcheck.
next do: /etc/rc.d/pwcheck
nuking /etc/rc.d/pwcheck
do_file on /etc/rc.d/virecover.
next do: /etc/rc.d/virecover
nuking /etc/rc.d/virecover
next do: /etc/rc.d/DAEMON
nuking /etc/rc.d/DAEMON
next do: /etc/rc.d/ntpd
nuking /etc/rc.d/ntpd
next do: /etc/rc.d/rpcbind
nuking /etc/rc.d/rpcbind
rcorder in free(): error: chunk is already free
Abort trap (core dumped)

[root at korben ~]# gdb rcorder rcorder.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `rcorder'.
Program terminated with signal 6, Aborted.
#0  0x080559c7 in kill ()
(gdb) where
#0  0x080559c7 in kill ()
#1  0x080553f5 in raise ()
#2  0x08052ceb in abort ()
#3  0x08049be4 in wrterror ()
#4  0x08049c1d in wrtwarning ()
#5  0x0804aa03 in ifree ()
#6  0x0804ac35 in pubrealloc ()
#7  0x0804ad31 in free ()
#8  0x080491d8 in do_file (fnode=0x80643e0)
     at /usr/src/sbin/rcorder/rcorder.c:756
#9  0x08049086 in satisfy_req (rnode=0x0,
     filename=0xab1 <Address 0xab1 out of bounds>)
     at /usr/src/sbin/rcorder/rcorder.c:682
#10 0x080491cd in do_file (fnode=0x8067a60)
     at /usr/src/sbin/rcorder/rcorder.c:754
#11 0x08049360 in generate_ordering () at /usr/src/sbin/rcorder/rcorder.c:819
#12 0x08048766 in main (argc=122, argv=0xbfbfe100)
     at /usr/src/sbin/rcorder/rcorder.c:188

cheers,
le

-- 
Lukas Ertl                         http://homepage.univie.ac.at/l.ertl/
le at FreeBSD.org                     http://people.freebsd.org/~le/


More information about the freebsd-current mailing list