stumped - su segmentation fault

Stefan Wold ratler at lunar-linux.org
Tue Nov 16 19:56:11 CET 2010


This is just a hunch but try removing nis and nisplus from the passwd,
shadow and group lines in /etc/nsswitch.conf and see if that resolve
your issue.
-- 
Sincerely
Stefan Wold
Lunar Linux developer 
PGP public key 9FF9A9CF (Key roll over - Old key: 6E810F05) 



On Tue, 2010-11-16 at 09:23 -0700, Richard B. Pyne wrote:
> I am stumped. After a recent attempt to update one of my servers, I am 
> having problems that I have racked back to su seg faulting whenever the 
> attempt is to su to a specific user.  The problem manifest itself when I 
> was trying to update postgresql and couldn't run initdb.
> 
> I have relined shadow several times with no change. Any help will be 
> greatly appreciated.
> 
> Here is the strace from "su - postgres"
> 
> execve("/bin/su", ["su", "-", "postgres"], [/* 25 vars */]) = 0
> brk(0)                                  = 0x805b000
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe8854408088020) = 0xb7804000
> access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=28753, ...}) = 0
> old_mmap(NULL, 28753, PROT_READ, MAP_PRIVATE, 3, 0xbfe880a408088020) = 
> 0xb77fc000
> close(3)                                = 0
> open("/lib/libcrypt.so.1", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 
> \7\0\0004\0\0\0"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=105870, ...}) = 0
> old_mmap(NULL, 196956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0xbfe87f9008088020) = 0xb77cb000
> old_mmap(0xb77d3000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe87f9008088020) = 0xb77d3000
> old_mmap(0xb77d5000, 155996, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbfe87f9008088020) = 0xb77d5000
> close(3)                                = 0
> open("/lib/libc.so.6", O_RDONLY)        = 3
> read(3, 
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0n\1\0004\0\0\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=8898107, ...}) = 0
> old_mmap(NULL, 1358376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0xbfe87f4408088020) = 0xb767f000
> old_mmap(0xb77c5000, 12288, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe87f4408088020) = 0xb77c5000
> old_mmap(0xb77c8000, 10792, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbfe87f4408088020) = 0xb77c8000
> close(3)                                = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe8854408088020) = 0xb767e000
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb767e6c0, 
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
> limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> mprotect(0xb77c5000, 8192, PROT_READ)   = 0
> mprotect(0xb77d3000, 4096, PROT_READ)   = 0
> mprotect(0xb7824000, 4096, PROT_READ)   = 0
> munmap(0xb77fc000, 28753)               = 0
> brk(0)                                  = 0x805b000
> brk(0x807c000)                          = 0x807c000
> getuid32()                              = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
> ...}) = 0
> readlink("/proc/self/fd/0", "/dev/pts/2", 4095) = 10
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
> ...}) = 0
> open("/etc/login.defs", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0755, st_size=5336, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe87fb808088020) = 0xb7803000
> read(3, "#\n# /etc/login.defs - Configurat"..., 4096) = 4096
> read(3, "minals, define TTYGROUP to the g"..., 4096) = 1240
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7803000, 4096)                = 0
> open("/etc/consoles", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or 
> directory)
> open("/proc/self/loginuid", O_RDONLY)   = 3
> read(3, "4294967295", 12)               = 10
> close(3)                                = 0
> socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
> connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 
> ENOENT (No such file or directory)
> close(3)                                = 0
> socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
> connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 
> ENOENT (No such file or directory)
> close(3)                                = 0
> open("/etc/nsswitch.conf", O_RDONLY)    = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe87fc408088020) = 0xb7803000
> read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1622
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7803000, 4096)                = 0
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=28753, ...}) = 0
> old_mmap(NULL, 28753, PROT_READ, MAP_PRIVATE, 3, 0xbfe87a5c08088020) = 
> 0xb77fc000
> close(3)                                = 0
> open("/lib/libnss_files.so.2", O_RDONLY) = 3
> read(3, 
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\31\0\0004\0\0\0"..., 512) 
> = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=190383, ...}) = 0
> old_mmap(NULL, 45772, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0xbfe8794808088020) = 0xb7672000
> old_mmap(0xb767c000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe8794808088020) = 0xb767c000
> close(3)                                = 0
> mprotect(0xb767c000, 4096, PROT_READ)   = 0
> munmap(0xb77fc000, 28753)               = 0
> open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
> fcntl64(3, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
> fstat64(3, {st_mode=S_IFREG|0644, st_size=3260, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe87fa808088020) = 0xb7803000
> read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 3260
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7803000, 4096)                = 0
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=28753, ...}) = 0
> old_mmap(NULL, 28753, PROT_READ, MAP_PRIVATE, 3, 0xbfe87a8408088020) = 
> 0xb77fc000
> close(3)                                = 0
> open("/lib/libnss_nisplus.so.2", O_RDONLY) = 3
> read(3, 
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\31\0\0004\0\0\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=253007, ...}) = 0
> old_mmap(NULL, 49956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0xbfe8797008088020) = 0xb7665000
> old_mmap(0xb7670000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe8797008088020) = 0xb7670000
> close(3)                                = 0
> open("/lib/libnsl.so.1", O_RDONLY)      = 3
> read(3, 
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p1\0\0004\0\0\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=497503, ...}) = 0
> old_mmap(NULL, 92104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0xbfe877b008088020) = 0xb764e000
> old_mmap(0xb7661000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe877b008088020) = 0xb7661000
> old_mmap(0xb7663000, 6088, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xbfe877b008088020) = 0xb7663000
> close(3)                                = 0
> mprotect(0xb7661000, 4096, PROT_READ)   = 0
> mprotect(0xb7670000, 4096, PROT_READ)   = 0
> munmap(0xb77fc000, 28753)               = 0
> uname({sys="Linux", node="venus", ...}) = 0
> gettimeofday({1289924531, 575286}, NULL) = 0
> stat64("/var/nis/NIS_COLD_START", 0xbfe87fac) = -1 ENOENT (No such file 
> or directory)
> open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or 
> directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=28753, ...}) = 0
> old_mmap(NULL, 28753, PROT_READ, MAP_PRIVATE, 3, 0xbfe87a8808088020) = 
> 0xb77fc000
> close(3)                                = 0
> open("/lib/libnss_nis.so.2", O_RDONLY)  = 3
> read(3, 
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\31\0\0004\0\0\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=188761, ...}) = 0
> old_mmap(NULL, 41536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0xbfe8797408088020) = 0xb7643000
> old_mmap(0xb764c000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbfe8797408088020) = 0xb764c000
> close(3)                                = 0
> mprotect(0xb764c000, 4096, PROT_READ)   = 0
> munmap(0xb77fc000, 28753)               = 0
> uname({sys="Linux", node="venus", ...}) = 0
> open("/var/yp/binding/kinfolk.org.2", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> getpid()                                = 14851
> bind(3, {sa_family=AF_INET, sin_port=htons(611), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(612), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=3260, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe8779808088020) = 0xb7803000
> read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 3260
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7803000, 4096)                = 0
> gettimeofday({1289924531, 597426}, NULL) = 0
> stat64("/var/nis/NIS_COLD_START", 0xbfe8779c) = -1 ENOENT (No such file 
> or directory)
> open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or 
> directory)
> open("/var/yp/binding/kinfolk.org.2", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(613), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(614), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=3260, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0xbfe8678808088020) = 0xb7803000
> read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 3260
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xb7803000, 4096)                = 0
> gettimeofday({1289924531, 605435}, NULL) = 0
> stat64("/var/nis/NIS_COLD_START", 0xbfe8678c) = -1 ENOENT (No such file 
> or directory)
> open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or 
> directory)
> open("/var/yp/binding/kinfolk.org.2", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(615), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(0), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> bind(3, {sa_family=AF_INET, sin_port=htons(616), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(111), 
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
> close(3)                                = 0
> open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Segmentation fault
> 
> 
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://foo-projects.org/pipermail/lunar/attachments/20101116/1d377095/attachment-0001.bin>


More information about the Lunar mailing list