Followed instructions to add debug symbols. The following two packages clashed with one another:
ubuntu@bastion01:~$ sudo apt-get install libc6-dbg libc6-dbgsym Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libc6-dbg libc6-dbgsym 0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded. Need to get 6796 kB of archives. After this operation, 45.0 MB of additional disk space will be used. Get:1 http://ddebs.ubuntu.com/ trusty-updates/main libc6-dbgsym amd64 2.19-0ubuntu6.11 [3328 kB] Get:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6-dbg amd64 2.19-0ubuntu6.11 [3468 kB] Fetched 6796 kB in 5s (1330 kB/s) Selecting previously unselected package libc6-dbg:amd64. (Reading database ... 82969 files and directories currently installed.) Preparing to unpack .../libc6-dbg_2.19-0ubuntu6.11_amd64.deb ... Unpacking libc6-dbg:amd64 (2.19-0ubuntu6.11) ... Selecting previously unselected package libc6-dbgsym:amd64. Preparing to unpack .../libc6-dbgsym_2.19-0ubuntu6.11_amd64.ddeb ... Unpacking libc6-dbgsym:amd64 (2.19-0ubuntu6.11) ... dpkg: error processing archive /var/cache/apt/archives/libc6-dbgsym_2.19-0ubuntu6.11_amd64.ddeb (--unpack): trying to overwrite '/usr/lib/debug/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6-dbg:amd64 2.19-0ubuntu6.11 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libc6-dbgsym_2.19-0ubuntu6.11_amd64.ddeb E: Sub-process /usr/bin/dpkg returned an error code (1) Gdb runs fine, but the source code is missing (on Redhat the source is part of the debuginfo packages, don't have as much ubuntu experience, can you confirm what package the source can be found?) ubuntu@zonza-ap-southeast-1-bastion01:~$ gdb /usr/bin/sss_ssh_authorizedkeys GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 [snip] Reading symbols from /usr/bin/sss_ssh_authorizedkeys...Reading symbols from /usr/lib/debug/.build-id/71/94b339876fa286ea083f67fd87bfcf1a33461e.debug...done. done. (gdb) b set_locale Breakpoint 1 at 0x4030e0: file ../src/sss_client/ssh/sss_ssh_client.c, line 48. (gdb) run minfrin Starting program: /usr/bin/sss_ssh_authorizedkeys minfrin [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Breakpoint 1, set_locale () at ../src/sss_client/ssh/sss_ssh_client.c:48 48 { (gdb) n 51 c = setlocale(LC_ALL, ""); (gdb) 52 if (c == NULL) { (gdb) 53 return EIO; (gdb) 52 if (c == NULL) { (gdb) 69 } (gdb) main (argc=2, argv=0x7fffffffe428) at ../src/sss_client/ssh/sss_ssh_authorizedkeys.c:54 54 if (ret != EOK) { (gdb) 53 ret = set_locale(); (gdb) 54 if (ret != EOK) { (gdb) 55 DEBUG(SSSDBG_CRIT_FAILURE, (gdb) (Mon Mar 27 17:14:15:444385 2017) [/usr/bin/sss_ssh_authorizedkeys] [main] (0x0020): set_locale() failed (5): Input/output error 57 ERROR("Error setting the locale\n"); So, the failure is triggered by the following: 51 c = setlocale(LC_ALL, ""); (gdb) 52 if (c == NULL) { (gdb) 53 return EIO; Which is in turn fixed by https://pagure.io/SSSD/sssd/issue/2785 (or something similar to that). According to the man page of setlocale(), NULL is returned when the locale cannot be found. This is on a working box: minfrin@xxx-bastion01:~$ export | grep LC_ALL minfrin@xxx-bastion01:~$ export | grep LANG declare -x LANG="en_US.UTF-8" This is on the non-working box: ubuntu@yyy-bastion01:~$ export | grep LC_ALL ubuntu@yyy-bastion01:~$ export | grep LANG declare -x LANG="en_US.UTF-8" It is possible that the broken locale is a red herring, and the cause of the problem is something else. The /var/log/auth.log shows this on the broken machine: Mar 27 17:24:43 yyy-bastion01 sshd[1624]: pam_sss(sshd:account): Access denied for user minfrin: 6 (Permission denied) Mar 27 17:24:43 yyy-bastion01 sshd[1624]: fatal: Access denied for user minfrin by PAM account configuration [preauth] Unfortunately there is no log line explaining why permission was denied, pam_sss's error logging seems to be incomplete. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1675118 Title: Setting locale breaks sss_ssh_authorizedkeys: set_locale() failed (5): Input/output error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1675118/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
