Bug 708683 - /usr/sbin/glibc_post_upgrade failure
Summary: /usr/sbin/glibc_post_upgrade failure
Keywords:
Status: CLOSED DUPLICATE of bug 698198
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-28 20:18 UTC by H.J. Lu
Modified: 2016-11-24 16:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 07:16:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description H.J. Lu 2011-05-28 20:18:20 UTC
On Linux/x86-64, I got

[root@gnu-9 hjl]# /usr/sbin/glibc_post_upgrade.x86_64
/usr/sbin/glibc_post_upgrade: While trying to execute /sbin/service child exited with exit code 1
[root@gnu-9 hjl]# 

with glibc-2.13.90-14.  The problem is

  if (check_elf ("/proc/1/exe"))
    verbose_exec (116, "/sbin/telinit", "/sbin/telinit", "u");

  /* Check if we can safely condrestart sshd.  */
  if (access ("/sbin/service", X_OK) == 0
      && access ("/usr/sbin/sshd", X_OK) == 0
      && access ("/etc/rc.d/init.d/sshd", X_OK) == 0
      && access ("/bin/bash", X_OK) == 0)
    {
      if (check_elf ("/usr/sbin/sshd"))
        verbose_exec (-121, "/sbin/service", "/sbin/service", "sshd", "condrestart");
    }

in glibc_post_upgrade.c. It can be reproduced with:

[root@gnu-snb-1 hjl]# /sbin/telinit u; /sbin/service sshd condrestart
Restarting sshd (via systemctl):  Failed to get D-Bus connection: Connection terminated during authentication.
                                                           [FAILED]

Add a sleep works:

[root@gnu-snb-1 hjl]# /sbin/telinit u; sleep 1; /sbin/service sshd condrestart
Restarting sshd (via systemctl):                           [  OK  ]
[root@gnu-snb-1 hjl]#

Comment 1 Andreas Schwab 2011-05-30 07:16:29 UTC

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


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