bin/91789: rcorder(8) coredumps on dependency conflict

Frank Behrens frank at pinky.sax.de
Sat Jan 14 04:00:17 PST 2006


>Number:         91789
>Category:       bin
>Synopsis:       rcorder(8) coredumps on dependency conflict
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 14 12:00:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Frank Behrens
>Release:        FreeBSD 6.0-STABLE-200601131811 i386
>Organization:
>Environment:
>Description:
rcorder(8) aborts with coredump when in a script REQUIRE and BEFORE
lines have the same entry.

Of course this is an error in the script itself, but rcorder should not abort.
In case of rcorder abort most of the system services are not started.

The error message is:
rcorder: Circular dependency on file `/etc/rc.d/NETWORKING'.
rcorder in free(): error: chunk is already free
Abort trap (core dumped)

>How-To-Repeat:
Run the following script:

#!/bin/sh

testscript=/etc/rc.d/testcrash
cat >$testscript << EOF
#!/bin/sh
# PROVIDE: test
# REQUIRE: NETWORK
# BEFORE: NETWORK
EOF
chmod +x $testscript
rcorder /etc/rc.d/*
rm $testscript

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list