Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61447 - Oracle Instant Client segfaults for LDAP users
Summary: Oracle Instant Client segfaults for LDAP users
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Don Seiler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 16:17 UTC by Andrew Sterling Hanenkamp
Modified: 2005-02-24 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Sterling Hanenkamp 2004-08-23 16:17:30 UTC
Admittedly, this is a strange setup and is probably Oracle's problem, but I thought'd I'd drop the bug info here.

The problem:
----------------------------------------------------

sterling@cougar sterling $ sqlplus sterling@oracle

SQL*Plus: Release 10.1.0.2.0 - Production on Mon Aug 23 18:09:07 2004

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

Enter password:
Segmentation fault

----------------------------------------------------

If the user who connects is found in /etc/passwd, there is no segmentation fault. The connection works as expected.

The strace is:

-----------------------------------------------------

execve("/usr/bin/sqlplus", ["sqlplus", "sterling@oracle"], [/* 54 vars */]) = 0
uname({sys="Linux", node="cougar", ...}) = 0
brk(0)                                  = 0x804a000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/oracle/10.1.0.2/client/lib/i686/libsqlplus.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/oracle/10.1.0.2/client/lib/i686", 0xbfffed88) = -1 ENOENT (No such file or directory)
open("/usr/lib/oracle/10.1.0.2/client/lib/libsqlplus.so", 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 \35\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=700812, ...}) = 0
mmap2(NULL, 656584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40015000
mmap2(0x400a6000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x90) = 0x400a6000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libclntsh.so.10.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\360\235"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=12484728, ...}) = 0
mmap2(NULL, 12024084, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400b6000
mmap2(0x40b16000, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa5f) = 0x40b16000
mmap2(0x40c17000, 92436, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40c17000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libnnz10.so", 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\0000\376"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=2489824, ...}) = 0
mmap2(NULL, 2308728, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c2e000
mmap2(0x40dc8000, 622592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x199) = 0x40dc8000
mmap2(0x40e60000, 6776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40e60000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/i686", 0xbfffed34) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfffed34)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libdl.so.2", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=32768, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=49548, ...}) = 0
mmap2(NULL, 49548, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40e62000
close(3)                                = 0
open("/lib/libdl.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\0P\34\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10964, ...}) = 0
mmap2(NULL, 8624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40e6f000
mmap2(0x40e71000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2) = 0x40e71000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libm.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libm.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\3604\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=154632, ...}) = 0
mmap2(NULL, 136448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40e72000
mmap2(0x40e93000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20) = 0x40e93000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libpthread.so.0", 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\200B\0"..., 512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40e94000
fstat64(3, {st_mode=S_IFREG|0755, st_size=66348, ...}) = 0
mmap2(NULL, 331296, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40e95000
mmap2(0x40ea3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe) = 0x40ea3000
mmap2(0x40ea4000, 269856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40ea4000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libnsl.so.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
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\0\340;\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76472, ...}) = 0
mmap2(NULL, 80512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40ee6000
mmap2(0x40ef7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11) = 0x40ef7000
mmap2(0x40ef8000, 6784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40ef8000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
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\0pY\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1181560, ...}) = 0
mmap2(NULL, 1111812, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40efa000
mmap2(0x41004000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x109) = 0x41004000
mmap2(0x41007000, 9988, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41007000
close(3)                                = 0
mprotect(0x40c2e000, 1679360, PROT_READ|PROT_WRITE) = 0
mprotect(0x40c2e000, 1679360, PROT_READ|PROT_EXEC) = 0
mprotect(0x400b6000, 10878976, PROT_READ|PROT_WRITE) = 0
mprotect(0x400b6000, 10878976, PROT_READ|PROT_EXEC) = 0
munmap(0x40e62000, 49548)               = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40ea3060, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
getpid()                                = 27551
rt_sigaction(SIGRTMIN, {0x40e9d2b0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40e9d3f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x40e9d5d0, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff2b4, 35, (nil), 0}) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\6\357\363 ", 4)               = 4
close(3)                                = 0
brk(0)                                  = 0x804a000
brk(0x806b000)                          = 0x806b000
brk(0)                                  = 0x806b000
rt_sigaction(SIGILL, {0x40ea05f0, ~[], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigaction(SIGILL, {SIG_DFL}, NULL, 8) = 0
mmap2(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4100a000
open("/usr/lib/oracle/10.1.0.2/client/lib/libociei.so", 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\300\7\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=91319092, ...}) = 0
mmap2(NULL, 91321400, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4102d000
mprotect(0, 91317304, PROT_NONE)        = -1 ENOMEM (Cannot allocate memory)
mmap2(0x4102f000, 91316224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) = 0x4102f000
close(3)                                = 0
fcntl64(134639192, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
fcntl64(134639728, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
brk(0)                                  = 0x806b000
brk(0x8091000)                          = 0x8091000
fcntl64(134642152, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
gettimeofday({1093301992, 826931}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46745000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0"..., 4096) = 1279
close(3)                                = 0
munmap(0x46745000, 4096)                = 0
mmap2(NULL, 385024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46745000
gettimeofday({1093301992, 832861}, NULL) = 0
fcntl64(134642792, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
times(NULL)                             = 472917870
rt_sigprocmask(SIG_BLOCK, [INT], NULL, 8) = 0
rt_sigaction(SIGINT, {0x40ea07a0, ~[ILL ABRT BUS FPE SEGV XCPU XFSZ SYS], SA_RESTART|SA_SIGINFO}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
gettimeofday({1093301992, 836108}, NULL) = 0
gettimeofday({1093301992, 836367}, NULL) = 0
brk(0)                                  = 0x8091000
brk(0x80b5000)                          = 0x80b5000
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x467a3000
write(1, "\n", 1)                       = 1
write(1, "SQL*Plus: Release 10.1.0.2.0 - P"..., 70) = 70
write(1, "\n", 1)                       = 1
write(1, "Copyright (c) 1982, 2004, Oracle"..., 56) = 56
write(1, "\n", 1)                       = 1
write(1, "Enter password: ", 16)        = 16
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon -echo ...}) = 0
read(0, "ezpcrulz\n", 2500)             = 9
write(1, "\n", 1)                       = 1
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
getcwd("/.automount/keid.cis.ksu.edu/root/cis/keid/home/grads/sterling", 256) = 63
access("./network/admin/sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/home/grads/sterling/.sqlnet.ora", F_OK) = -1 ENOENT (No such file or directory)
getpid()                                = 27551
access("/.automount/keid.cis.ksu.edu/root/cis/keid/home/grads/sterling/cli_27551.trc", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/intchg.ora", F_OK)         = -1 ENOENT (No such file or directory)
access("./network/admin/intchg.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/tnsnav.ora", F_OK)         = -1 ENOENT (No such file or directory)
access("./network/admin/tnsnav.ora", F_OK) = -1 ENOENT (No such file or directory)
gettimeofday({1093301995, 885382}, NULL) = 0
open("./network/names/.sdns.ora", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
access("/home/grads/sterling/.tnsnames.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/tnsnames.ora", F_OK)       = -1 ENOENT (No such file or directory)
access("./network/admin/tnsnames.ora", F_OK) = -1 ENOENT (No such file or directory)
gettimeofday({1093301995, 888523}, NULL) = 0
getpid()                                = 27551
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=70, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x467a4000
read(3, "domain cis.ksu.edu\nnameserver 12"..., 4096) = 70
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x467a4000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, 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=1701, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x467a4000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1701
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x467a4000, 4096)                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libnss_files.so.2", 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=49548, ...}) = 0
mmap2(NULL, 49548, PROT_READ, MAP_PRIVATE, 3, 0) = 0x467a4000
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@\35\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=35752, ...}) = 0
mmap2(NULL, 33712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x467b1000
mmap2(0x467b9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8) = 0x467b9000
close(3)                                = 0
munmap(0x467a4000, 49548)               = 0
open("/etc/host.conf", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/etc/hosts", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=85, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x467a4000
read(3, "127.0.0.1 localhost.cis.ksu.edu "..., 4096) = 85
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x467a4000, 4096)                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libnss_dns.so.2", 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=49548, ...}) = 0
mmap2(NULL, 49548, PROT_READ, MAP_PRIVATE, 3, 0) = 0x467a4000
close(3)                                = 0
open("/lib/libnss_dns.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`\16\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14580, ...}) = 0
mmap2(NULL, 16908, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x467ba000
mmap2(0x467be000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3) = 0x467be000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.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\220(\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=62480, ...}) = 0
mmap2(NULL, 73672, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x467bf000
mmap2(0x467ce000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe) = 0x467ce000
mmap2(0x467cf000, 8136, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x467cf000
close(3)                                = 0
munmap(0x467a4000, 49548)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("129.130.10.176")}, 28) = 0
send(3, "\223\300\1\0\0\1\0\0\0\0\0\0\6oracle\3cis\3ksu\3edu\0"..., 36, 0) = 36
gettimeofday({1093301995, 897933}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [213])               = 0
recvfrom(3, "\223\300\205\200\0\1\0\2\0\4\0\4\6oracle\3cis\3ksu\3ed"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("129.130.10.176")}, [16]) = 213
close(3)                                = 0
uname({sys="Linux", node="cougar", ...}) = 0
getuid32()                              = 686
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=2022, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x467a4000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 2022
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x467a4000, 4096)                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libnss_ldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libnss_ldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libnss_ldap.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\320&\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=59292, ...}) = 0
mmap2(NULL, 102272, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x467d1000
mmap2(0x467df000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd) = 0x467df000
mmap2(0x467e0000, 40832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x467e0000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libldap.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\200\200"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=225304, ...}) = 0
mmap2(NULL, 220140, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x467ea000
mmap2(0x4681f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35) = 0x4681f000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/liblber.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/liblber.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/liblber.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\220%\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=48872, ...}) = 0
mmap2(NULL, 50896, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x46820000
mmap2(0x4682c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb) = 0x4682c000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libdb-4.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libdb-4.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libdb-4.1.so", 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\200G\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=810992, ...}) = 0
mmap2(NULL, 801372, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4682d000
mmap2(0x468ef000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc1) = 0x468ef000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libssl.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libssl.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libssl.so.0.9.7", 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 \205\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=197560, ...}) = 0
mmap2(NULL, 195312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x468f1000
mmap2(0x4691e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2d) = 0x4691e000
close(3)                                = 0
open("/usr/lib/oracle/10.1.0.2/client/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypto.so.0.9.7", 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 \277\2"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1054880, ...}) = 0
mmap2(NULL, 1039096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x46921000
mmap2(0x46a0a000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe8) = 0x46a0a000
mmap2(0x46a1c000, 11000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x46a1c000
close(3)                                = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PIPE], NULL, 8) = 0
getpid()                                = 27551
geteuid32()                             = 686
stat64("DB_CONFIG", 0xbfff5888)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat64("__db.002", 0xbfff58d8)          = -1 ENOENT (No such file or directory)
mmap2(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46a1f000
brk(0)                                  = 0x80b5000
brk(0x80d6000)                          = 0x80d6000
stat64("DB_CONFIG", 0xbfff5888)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat64("__db.002", 0xbfff58d8)          = -1 ENOENT (No such file or directory)
mmap2(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46a62000
stat64("DB_CONFIG", 0xbfff5888)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat64("__db.002", 0xbfff58d8)          = -1 ENOENT (No such file or directory)
mmap2(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46aa5000
stat64("DB_CONFIG", 0xbfff5888)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
stat64("__db.002", 0xbfff58d8)          = -1 ENOENT (No such file or directory)
mmap2(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46ae8000
open("/etc/ldap.conf", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4598, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46b2b000
read(3, "# custom hacked\n\n###DEBCONF###\n#"..., 4096) = 4096
read(3, "pported\n# For authPassword suppo"..., 4096) = 502
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x46b2b000, 4096)                = 0
brk(0)                                  = 0x80d6000
brk(0x80f7000)                          = 0x80f7000
mmap2(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x46b2b000
fcntl64(135016648, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file descriptor)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

----------------------------------------------

Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8-gentoo)
=================================================================
System uname: 2.6.8-gentoo i686 Pentium III (Coppermine)
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/common/admin/linux/gentoo/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo"
MAKEOPTS="-j5"
PKGDIR="/common/admin/linux/gentoo/packages/i686-lab"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/common/admin/linux/gentoo/portage_site"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm berkdb bidi canna cjk crypt cscope doc emacs encode f77 foomaticdb freewnn gdbm gtkhtml imagemagick imap imlib java jikes junit ldap libg++ libwww mad maildir mbox mcal mikmod mpi mule mysql ncurses nls odbc pam pdflib perl python readline samba slang spell ssl svga tcltk tcpd tetex unicode usb x86 xml xml2 xv zlib"

----------------------------------------------

I'm attempting to connect to an Oracle Database 9.2.0.5.0, but it's not getting far enough to even try to establish that connection before it croaks. I've tried different OpenLDAP and BerkeleyDB packages to see if that would help, but has had no discernable affect.
Comment 1 Don Seiler (RETIRED) gentoo-dev 2004-08-25 11:16:22 UTC
This sounds upstream to me.  There is no real configuration that we do since the packages are all binary anyway.

I'm not quite sure I understand your setup.  You have Oracle authenticating against LDAP?  I didn't think that was possible.
Comment 2 Andrew Sterling Hanenkamp 2004-08-26 12:51:14 UTC
We use Microsoft ActiveDirectory to validate all logins via the pam_smb module. We then use nss_ldap to contact AD to get the rest of a user's account info. This is only used to perform login authentication. However, it would appear that sqlplus attempts to very the user's details before connecting to the foreign host.

Thus, the problem is that Oracle dies when it attempts to contact AD through OpenLDAP client through NSS. I've been able to discover a little bit of information through Oracle's Metalink support site. For those with access to this support site, the document I've found so far is 504229.996.

It would appear that this is a problem with Oracle on Linux, in general. However, I have, as yet, no solution because the document isn't resolved--one suggestion was that running nscd would fix the problem, but I tried that and it's still broked.
Comment 3 Andrew Sterling Hanenkamp 2004-08-26 13:00:50 UTC
Eureka! I've found a solution:

emerge =nss_ldap-207

Apparently, there's something about the newer version of nss_ldap that borks up the Oracle 10g Instant Client.
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-11-19 08:45:10 UTC
Sorry for late reply.

I can set a depend on <=net-libs/nss_ldap-207 if USE="ldap" in oracle-instantclient-basic.

Let me know what you think, or if perhaps it has since been fixed in newer versions.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-15 02:52:09 UTC
please try the very latest nss_ldap-226, it should work as well.
Comment 6 Don Seiler (RETIRED) gentoo-dev 2005-02-24 11:47:23 UTC
Waiting for user to test and report back.