Bug 653852 - Segmentation fault in chkconfig (system-config-services shows incorrect information)
Summary: Segmentation fault in chkconfig (system-config-services shows incorrect infor...
Keywords:
Status: CLOSED DUPLICATE of bug 649227
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: 13
Hardware: Unspecified
OS: Unspecified
low
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-16 09:55 UTC by Ronald Wahl
Modified: 2014-03-17 03:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-16 16:02:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ronald Wahl 2010-11-16 09:55:12 UTC
Description of problem:
When I call system-config-services it reports a whole bunch of dead services. All of these are based on xinetd. In /var/log/message I see a lot of such messages:

Nov 16 10:37:28 localhost kernel: chkconfig[27866]: segfault at 1c ip 00300a48 sp bff16e84 error 4 in libc-2.12.1.so[28d000+185000]

I could reproduce it by calling chkconfig manually:

# chkconfig --type xinetd --list discard
Segmentation fault

Using valgrind we see the following:

# valgrind chkconfig --type xinetd --list discard
==28660== Memcheck, a memory error detector
==28660== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==28660== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==28660== Command: chkconfig --type xinetd --list discard
==28660== 
==28660== Conditional jump or move depends on uninitialised value(s)
==28660==    at 0x40057B6: free (vg_replace_malloc.c:325)
==28660==    by 0x804D1B7: readServiceInfo (leveldb.c:337)
==28660==    by 0x8049D23: listService (chkconfig.c:400)
==28660==    by 0x804ABB1: main (chkconfig.c:663)
==28660== 
==28660== Invalid free() / delete / delete[]
==28660==    at 0x40057F6: free (vg_replace_malloc.c:325)
==28660==    by 0x804D1B7: readServiceInfo (leveldb.c:337)
==28660==    by 0x8049D23: listService (chkconfig.c:400)
==28660==    by 0x804ABB1: main (chkconfig.c:663)
==28660==  Address 0x9d18d7 is not stack'd, malloc'd or (recently) free'd
==28660== 
==28660== Warning: invalid file descriptor -1 in syscall close()
error reading information on service discard: Bad file descriptor
...

Version-Release number of selected component (if applicable):
chkconfig-1.3.48-1.fc13.i686

How reproducible:
On one machine 100%. Other machines only sometimes.

Steps to Reproduce:
1. See description above
2.
3.
  
Actual results:
Segmentation fault

Expected results:
No segmentation fault

Additional info:

Comment 1 Bill Nottingham 2010-11-16 16:02:05 UTC

*** This bug has been marked as a duplicate of bug 649227 ***


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