Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: Gentoo User Mailing List <gentoo-user@l.g.o>
Subject: [gentoo-user] su hangs
Date: Mon, 11 Aug 2014 19:27:26
Message-Id: CAHgBc-sGLvFqX_uPmcT4j=zxD=J1C+1NM1_CsDfXeDH2-e_t_w@mail.gmail.com
1 I have pam_pgsql and libnss-pgsql installed. On one server su works
2 perfectly, but on the other one when I try to su (both, with and
3 without -l) it hangs.
4
5 Both are using systemd and the same kernel (they are same config
6 except # of HDDs).
7
8 Here's the strace -
9
10 fstat(4, {st_mode=S_IFREG|0644, st_size=10523, ...}) = 0
11 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
12 0) = 0x2afda592000
13 read(4, "#\n# /etc/login.defs - Configurat"..., 4096) = 4096
14 read(4, "ogin configuration initializatio"..., 4096) = 4096
15 read(4, "\n#ENCRYPT_METHOD DES\n\n#\n# Only w"..., 4096) = 2331
16 read(4, "", 4096) = 0
17 close(4) = 0
18 munmap(0x2afda592000, 4096) = 0
19 access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory)
20 open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = 4
21 lseek(4, 0, SEEK_SET) = 0
22 alarm(0) = 0
23 rt_sigaction(SIGALRM, {0x2afd9cdf070, [], SA_RESTORER, 0x2afd9bf5850},
24 {SIG_DFL, [], SA_RESTORER, 0x2afd9bf5850}, 8) = 0
25 alarm(10) = 0
26 fcntl(4, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
27 read(4, "\2\0\0\0\0\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
28 384) = 384
29 read(4, "\6\0\0\0P\n\0\0tty1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
30 384) = 384
31 read(4, "\10\0\0\0%\23\0\0pts/0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
32 384) = 384
33 read(4, "\10\0\0\0E\23\0\0pts/1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
34 384) = 384
35 read(4, "\7\0\0\0I\"\0\0pts/2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
36 384) = 384
37 fcntl(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
38 alarm(0) = 10
39 rt_sigaction(SIGALRM, {SIG_DFL, [], SA_RESTORER, 0x2afd9bf5850}, NULL, 8) = 0
40 close(4) = 0
41 getuid() = 0
42 sendto(3, "<86>Aug 11 17:42:30 su[8791]: pa"..., 96, MSG_NOSIGNAL, NULL, 0) = 96
43 clone(child_stack=0,
44 flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
45 child_tidptr=0x2afda58f9d0) = 8793
46 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) = 0
47 rt_sigaction(SIGTERM, {0x403830, [], SA_RESTORER, 0x2afd9bf5850}, NULL, 8) = 0
48 rt_sigprocmask(SIG_UNBLOCK, [ALRM TERM], NULL, 8) = 0
49 wait4(-1,
50
51 Any ideas what is it waiting on?

Replies

Subject Author
[gentoo-user] Re: su hangs Nilesh Govindrajan <me@××××××××.com>