Bug 487277 - chkconfig segfault
chkconfig segfault
Product: Fedora
Classification: Fedora
Component: chkconfig (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-02-25 04:34 EST by Mark McLoughlin
Modified: 2014-03-16 23:17 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-03-05 16:50:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mark McLoughlin 2009-02-25 04:34:04 EST
Just playing around and I created /etc/chkconfig.d/libvirtd with:

  # chkconfig: 345 98 02

and ran "chkconfig libvirtd resetpriorities" and got:

Program received signal SIGSEGV, Segmentation fault.
0x0019ce1a in strcmp () from /lib/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.9-3.i686 popt-1.13-4.fc10.i386
(gdb) bt
#0  0x0019ce1a in strcmp () from /lib/libc.so.6
#1  0x080493ed in frobOneDependencies (s=0x80560ec, servs=<value optimized out>, numservs=74, target=0) at chkconfig.c:136
#2  0x080498e8 in frobDependencies (s=0xbffff4b0) at chkconfig.c:224
#3  0x0804a50f in setService (name=0xbffff906 "libvirtd", where=60, state=-2) at chkconfig.c:534
#4  0x0804affa in main (argc=3, argv=0xbffff7c4) at chkconfig.c:699

If I add another newline to the file, it doesn't segfault anymore.
Comment 1 Bill Nottingham 2009-03-05 16:50:25 EST
This should be fixed in rawhide - I can't reproduce this there, and I did some changes in the parsing for invalid scripts.

Note You need to log in before you can comment on or make changes to this bug.