Bug 623433 - 'systemctl enable gpm.service' segfaults (running in yum)
'systemctl enable gpm.service' segfaults (running in yum)
Status: CLOSED DUPLICATE of bug 621200
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Lennart Poettering
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-11 15:13 EDT by Tom London
Modified: 2010-08-11 15:30 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-11 15:30:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tom London 2010-08-11 15:13:06 EDT
Description of problem:
Saw this from 'yum update':

Running Transaction
  Updating       : gpm-libs-1.20.6-10.fc15.x86_64                          1/34 
  Updating       : gpm-1.20.6-10.fc15.x86_64                               2/34 
/var/tmp/rpm-tmp.r4DsjV: line 1: 14565 Segmentation fault      (core dumped) /bin/systemctl enable gpm.service > /dev/null 2>&1
  Updating       : libpurple-2.7.3-1.fc15.x86_64                           3/34
<<<<SNIP>>>>

Saw this in /var/log/messages:

Aug 11 12:03:38 tlondon kernel: systemctl[14565]: segfault at 8 ip 00000033b800d000 sp 00007fff654210b0 error 4 in libselinux.so.1[33b8000000+1d000]

Here is the back trace from gdb:

Core was generated by `/bin/systemctl enable gpm.service'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000033b800d000 in selabel_lookup_common (rec=0x0, translating=0, 
    key=0xb69740 "/etc", type=493) at label.c:192
192			lr = rec->func_lookup(rec, key, type); 
Missing separate debuginfos, use: debuginfo-install filesystem-2.4.35-1.fc14.x86_64
(gdb) set pagination off
(gdb) bt full
#0  0x00000033b800d000 in selabel_lookup_common (rec=0x0, translating=0, key=0xb69740 "/etc", type=493) at label.c:192
        lr = <value optimized out>
        ptr = <value optimized out>
#1  0x00000033b800d4cb in selabel_lookup_raw (rec=<value optimized out>, con=0x7fff65421128, key=<value optimized out>, type=<value optimized out>) at label.c:225
        lr = <value optimized out>
#2  0x0000000000412d37 in label_mkdir (path=0xb69740 "/etc", mode=493) at src/util.c:275
        r = <value optimized out>
        fcon = 0x0
        __func__ = "label_mkdir"
#3  0x0000000000415c3a in mkdir_parents (path=0xb69290 "/etc/systemd/system/multi-user.target.wants/gpm.service", mode=493) at src/util.c:1270
        r = <value optimized out>
        t = 0xb69740 "/etc"
        p = 0xb69295 "systemd/system/multi-user.target.wants/gpm.service"
        e = <value optimized out>
        __PRETTY_FUNCTION__ = "mkdir_parents"
#4  0x00000000004049d5 in create_symlink (verb=<value optimized out>, old_path=0xb69c20 "/lib/systemd/system/gpm.service", new_path=0xb69290 "/etc/systemd/system/multi-user.target.wants/gpm.service") at src/systemctl.c:3244
        dest = <value optimized out>
        r = <value optimized out>
        __PRETTY_FUNCTION__ = "create_symlink"
        __func__ = "create_symlink"
#5  0x000000000040a23d in install_info_symlink_wants (bus=0xb69a50, args=0x7fff654214a0, n=2) at src/systemctl.c:3419
        s = 0xb69300
        alias_path = 0xb69290 "/etc/systemd/system/multi-user.target.wants/gpm.service"
        r = <value optimized out>
#6  install_info_apply (bus=0xb69a50, args=0x7fff654214a0, n=2) at src/systemctl.c:3498
        items = {{lvalue = 0x41fb81 "Alias", parse = 0x41dc30 <config_parse_strv>, data = 0xb69040, section = 0x41fb87 "Install"}, {lvalue = 0x41fb8f "WantedBy", parse = 0x41dc30 <config_parse_strv>, data = 0xb69048, section = 0x41fb87 "Install"}, {lvalue = 0x41fb98 "Also", parse = 0x4053d0 <config_parse_also>, data = 0x0, section = 0x41fb87 "Install"}, {lvalue = 0x0, parse = 0, data = 0x0, section = 0x0}}
        p = <value optimized out>
        filename = 0xb69c20 "/lib/systemd/system/gpm.service"
        f = <value optimized out>
        r = <value optimized out>
#7  enable_unit (bus=0xb69a50, args=0x7fff654214a0, n=2) at src/systemctl.c:3575
        error = {name = 0x0, message = 0x0, dummy1 = 1, dummy2 = 0, dummy3 = 0, dummy4 = 0, dummy5 = 0, padding1 = 0x3fc9e0cfd1}
        r = 0
        paths = {unit_path = 0xb69dc0, sysvinit_path = 0xb69060, sysvrcnd_path = 0xb69e00}
        config_path = <value optimized out>
        j = <value optimized out>
        i = 0xb69030
        verb = 0x7fff654225b5 "enable"
        __func__ = "enable_unit"
        __PRETTY_FUNCTION__ = "enable_unit"
#8  0x000000000040d4d0 in systemctl_main (argc=<value optimized out>, argv=0x7fff65421498) at src/systemctl.c:4507
        i = <value optimized out>
        left = 2
        verbs = {{verb = 0x420189 "list-units", argc_cmp = LESS, argc = 1, dispatch = 0x409510 <list_units>}, {verb = 0x420194 "list-jobs", argc_cmp = EQUAL, argc = 1, dispatch = 0x409100 <list_jobs>}, {verb = 0x41fa18 "clear-jobs", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41f9b4 "load", argc_cmp = MORE, argc = 2, dispatch = 0x405580 <load_unit>}, {verb = 0x41fa23 "cancel", argc_cmp = MORE, argc = 2, dispatch = 0x408af0 <cancel_job>}, {verb = 0x41ff27 "start", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff16 "stop", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff49 "reload", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff25 "restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff37 "try-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff1b "reload-or-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff2d "reload-or-try-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff43 "force-reload", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff50 "condrestart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff09 "isolate", argc_cmp = EQUAL, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x42019e "is-active", argc_cmp = MORE, argc = 2, dispatch = 0x407b30 <check_unit>}, {verb = 0x4201a8 "check", argc_cmp = MORE, argc = 2, dispatch = 0x407b30 <check_unit>}, {verb = 0x4201ae "show", argc_cmp = MORE, argc = 1, dispatch = 0x40c0d0 <show>}, {verb = 0x41feb1 "status", argc_cmp = MORE, argc = 2, dispatch = 0x40c0d0 <show>}, {verb = 0x4201b3 "monitor", argc_cmp = EQUAL, argc = 1, dispatch = 0x407320 <monitor>}, {verb = 0x4201bb "dump", argc_cmp = EQUAL, argc = 1, dispatch = 0x4071b0 <dump>}, {verb = 0x4201c0 "dot", argc_cmp = EQUAL, argc = 1, dispatch = 0x406870 <dot>}, {verb = 0x4201c4 "snapshot", argc_cmp = LESS, argc = 2, dispatch = 0x4064b0 <snapshot>}, {verb = 0x4201cd "delete", argc_cmp = MORE, argc = 2, dispatch = 0x4061a0 <delete_snapshot>}, {verb = 0x4201d4 "daemon-reload", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41fa2a "daemon-reexec", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41fa4a "daemon-exit", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x4201e2 "show-environment", argc_cmp = EQUAL, argc = 1, dispatch = 0x405a70 <show_enviroment>}, {verb = 0x4201f5 "set-environment", argc_cmp = MORE, argc = 2, dispatch = 0x405840 <set_environment>}, {verb = 0x4201f3 "unset-environment", argc_cmp = MORE, argc = 2, dispatch = 0x405840 <set_environment>}, {verb = 0x41f531 "halt", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f536 "poweroff", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f53f "reboot", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f557 "default", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f546 "rescue", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f54d "emergency", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41fa38 "reset-maintenance", argc_cmp = MORE, argc = 1, dispatch = 0x408930 <reset_maintenance>}, {verb = 0x41f597 "enable", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}, {verb = 0x41f5dd "disable", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}, {verb = 0x41f602 "is-enabled", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}}
#9  main (argc=<value optimized out>, argv=0x7fff65421498) at src/systemctl.c:4650
        r = -1205738048
        retval = 1
        bus = 0xb69a50
        error = {name = 0x0, message = 0x0, dummy1 = 1, dummy2 = 0, dummy3 = 0, dummy4 = 0, dummy5 = 0, padding1 = 0x403583}
        __PRETTY_FUNCTION__ = "main"
(gdb) 


Version-Release number of selected component (if applicable):
systemd-debuginfo-5-2.fc15.x86_64
systemd-units-5-2.fc15.x86_64
systemd-5-2.fc15.x86_64
systemd-sysvinit-5-2.fc15.x86_64
systemd-gtk-5-2.fc15.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Tom London 2010-08-11 15:20:17 EDT
I appear to have another core file similar to the above, this time from 'systemctl enable abrtd.service':

Core was generated by `/bin/systemctl enable abrtd.service'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000033b800d000 in selabel_lookup_common (rec=0x0, translating=0, 
    key=0x25ca2e0 "/etc", type=493) at label.c:192
192			lr = rec->func_lookup(rec, key, type); 
Missing separate debuginfos, use: debuginfo-install filesystem-2.4.35-1.fc14.x86_64
(gdb) set pagination off
(gdb) bt full
#0  0x00000033b800d000 in selabel_lookup_common (rec=0x0, translating=0, key=0x25ca2e0 "/etc", type=493) at label.c:192
        lr = <value optimized out>
        ptr = <value optimized out>
#1  0x00000033b800d4cb in selabel_lookup_raw (rec=<value optimized out>, con=0x7fff05b4b498, key=<value optimized out>, type=<value optimized out>) at label.c:225
        lr = <value optimized out>
#2  0x0000000000412d37 in label_mkdir (path=0x25ca2e0 "/etc", mode=493) at src/util.c:275
        r = <value optimized out>
        fcon = 0x0
        __func__ = "label_mkdir"
#3  0x0000000000415c3a in mkdir_parents (path=0x25ca290 "/etc/systemd/system/multi-user.target.wants/abrtd.service", mode=493) at src/util.c:1270
        r = <value optimized out>
        t = 0x25ca2e0 "/etc"
        p = 0x25ca295 "systemd/system/multi-user.target.wants/abrtd.service"
        e = <value optimized out>
        __PRETTY_FUNCTION__ = "mkdir_parents"
#4  0x00000000004049d5 in create_symlink (verb=<value optimized out>, old_path=0x25cac20 "/lib/systemd/system/abrtd.service", new_path=0x25ca290 "/etc/systemd/system/multi-user.target.wants/abrtd.service") at src/systemctl.c:3244
        dest = <value optimized out>
        r = <value optimized out>
        __PRETTY_FUNCTION__ = "create_symlink"
        __func__ = "create_symlink"
#5  0x000000000040a23d in install_info_symlink_wants (bus=0x25caa50, args=0x7fff05b4b810, n=2) at src/systemctl.c:3419
        s = 0x25ca300
        alias_path = 0x25ca290 "/etc/systemd/system/multi-user.target.wants/abrtd.service"
        r = <value optimized out>
#6  install_info_apply (bus=0x25caa50, args=0x7fff05b4b810, n=2) at src/systemctl.c:3498
        items = {{lvalue = 0x41fb81 "Alias", parse = 0x41dc30 <config_parse_strv>, data = 0x25ca040, section = 0x41fb87 "Install"}, {lvalue = 0x41fb8f "WantedBy", parse = 0x41dc30 <config_parse_strv>, data = 0x25ca048, section = 0x41fb87 "Install"}, {lvalue = 0x41fb98 "Also", parse = 0x4053d0 <config_parse_also>, data = 0x0, section = 0x41fb87 "Install"}, {lvalue = 0x0, parse = 0, data = 0x0, section = 0x0}}
        p = <value optimized out>
        filename = 0x25cac20 "/lib/systemd/system/abrtd.service"
        f = <value optimized out>
        r = <value optimized out>
#7  enable_unit (bus=0x25caa50, args=0x7fff05b4b810, n=2) at src/systemctl.c:3575
        error = {name = 0x0, message = 0x0, dummy1 = 1, dummy2 = 0, dummy3 = 0, dummy4 = 0, dummy5 = 0, padding1 = 0x3fc9e0cfd1}
        r = 0
        paths = {unit_path = 0x25cadc0, sysvinit_path = 0x25ca060, sysvrcnd_path = 0x25cae00}
        config_path = <value optimized out>
        j = <value optimized out>
        i = 0x25ca030
        verb = 0x7fff05b4d5b3 "enable"
        __func__ = "enable_unit"
        __PRETTY_FUNCTION__ = "enable_unit"
#8  0x000000000040d4d0 in systemctl_main (argc=<value optimized out>, argv=0x7fff05b4b808) at src/systemctl.c:4507
        i = <value optimized out>
        left = 2
        verbs = {{verb = 0x420189 "list-units", argc_cmp = LESS, argc = 1, dispatch = 0x409510 <list_units>}, {verb = 0x420194 "list-jobs", argc_cmp = EQUAL, argc = 1, dispatch = 0x409100 <list_jobs>}, {verb = 0x41fa18 "clear-jobs", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41f9b4 "load", argc_cmp = MORE, argc = 2, dispatch = 0x405580 <load_unit>}, {verb = 0x41fa23 "cancel", argc_cmp = MORE, argc = 2, dispatch = 0x408af0 <cancel_job>}, {verb = 0x41ff27 "start", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff16 "stop", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff49 "reload", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff25 "restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff37 "try-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff1b "reload-or-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff2d "reload-or-try-restart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff43 "force-reload", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff50 "condrestart", argc_cmp = MORE, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x41ff09 "isolate", argc_cmp = EQUAL, argc = 2, dispatch = 0x40c590 <start_unit>}, {verb = 0x42019e "is-active", argc_cmp = MORE, argc = 2, dispatch = 0x407b30 <check_unit>}, {verb = 0x4201a8 "check", argc_cmp = MORE, argc = 2, dispatch = 0x407b30 <check_unit>}, {verb = 0x4201ae "show", argc_cmp = MORE, argc = 1, dispatch = 0x40c0d0 <show>}, {verb = 0x41feb1 "status", argc_cmp = MORE, argc = 2, dispatch = 0x40c0d0 <show>}, {verb = 0x4201b3 "monitor", argc_cmp = EQUAL, argc = 1, dispatch = 0x407320 <monitor>}, {verb = 0x4201bb "dump", argc_cmp = EQUAL, argc = 1, dispatch = 0x4071b0 <dump>}, {verb = 0x4201c0 "dot", argc_cmp = EQUAL, argc = 1, dispatch = 0x406870 <dot>}, {verb = 0x4201c4 "snapshot", argc_cmp = LESS, argc = 2, dispatch = 0x4064b0 <snapshot>}, {verb = 0x4201cd "delete", argc_cmp = MORE, argc = 2, dispatch = 0x4061a0 <delete_snapshot>}, {verb = 0x4201d4 "daemon-reload", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41fa2a "daemon-reexec", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x41fa4a "daemon-exit", argc_cmp = EQUAL, argc = 1, dispatch = 0x408700 <daemon_reload>}, {verb = 0x4201e2 "show-environment", argc_cmp = EQUAL, argc = 1, dispatch = 0x405a70 <show_enviroment>}, {verb = 0x4201f5 "set-environment", argc_cmp = MORE, argc = 2, dispatch = 0x405840 <set_environment>}, {verb = 0x4201f3 "unset-environment", argc_cmp = MORE, argc = 2, dispatch = 0x405840 <set_environment>}, {verb = 0x41f531 "halt", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f536 "poweroff", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f53f "reboot", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f557 "default", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f546 "rescue", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41f54d "emergency", argc_cmp = EQUAL, argc = 1, dispatch = 0x40cac0 <start_special>}, {verb = 0x41fa38 "reset-maintenance", argc_cmp = MORE, argc = 1, dispatch = 0x408930 <reset_maintenance>}, {verb = 0x41f597 "enable", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}, {verb = 0x41f5dd "disable", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}, {verb = 0x41f602 "is-enabled", argc_cmp = MORE, argc = 2, dispatch = 0x409c40 <enable_unit>}}
#9  main (argc=<value optimized out>, argv=0x7fff05b4b808) at src/systemctl.c:4650
        r = -1205738048
        retval = 1
        bus = 0x25caa50
        error = {name = 0x0, message = 0x0, dummy1 = 1, dummy2 = 0, dummy3 = 0, dummy4 = 0, dummy5 = 0, padding1 = 0x403583}
        __PRETTY_FUNCTION__ = "main"
(gdb)
Comment 2 Bill Nottingham 2010-08-11 15:30:41 EDT

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

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