Trying to determine the root cause of this error message that is seen
while attempting to install rpm on a Solaris 8 server. Attempting to
install rpm's after the db init yield the same "_sys_thread_create()
failed, errno = 22" within the jumpstart.
+ echo Installing mini rpm environment.
Intalling mini rpm environment.
+ tar xf //wamu/var/tmp/RPM/rpm-4.2.1-4.solaris2.8-bootstrap-2.tar
usr/local var/lib
+ echo Creating temporary directory:
Creating temporary directory:
++ /usr/local/bin/mktemp -d /var/tmp/install-rpm.XXXXXXXXXX
+ t=/var/tmp/install-rpm.aVRzu17549
+ '[' -z /var/tmp/install-rpm.aVRzu17549 ']'
+ echo 'Changing to /var/tmp/install-rpm.aVRzu17549 directory'
Changing to /var/tmp/install-rpm.aVRzu17549 directory
+ cd /var/tmp/install-rpm.aVRzu17549
+ echo ' /var/tmp/install-rpm.aVRzu17549'
/var/tmp/install-rpm.aVRzu17549
+ echo Extracting installation files.
tar xf //wamu/var/tmp/RPM/rpm-4.2.1-4.solaris2.8-bootstrap-2.tar
+ cd rpm-tmp
+ '[' '!' -r order ']'
++ pwd
+ echo /var/tmp/install-rpm.aVRzu17549/rpm-tmp
/var/tmp/install-rpm.aVRzu17549/rpm-tmp
+ ls -al
total 18812
drwxr-xr-x 2 root root 512 Sep 15 2004 .
drwx------ 5 root root 512 Feb 7 15:52 ..
-rw-r--r-- 1 root root 3597 Sep 14 2004
localfsh-1.0-4.solaris2.8.sparc64.rpm
-rw-r--r-- 1 root root 11731 Sep 14 2004
mktemp-1.5-2.solaris2.8.sparc64.rpm
-rw-r--r-- 1 root root 265 Sep 15 2004 order
-rw-r--r-- 1 root root 2467 Sep 15 2004
perl-5.6.1-1.solaris2.8.sparc64.rpm
-rwxr-xr-x 1 root root 1942876 Sep 14 2004 rpm
-rw-r--r-- 1 root root 7639232 Sep 14 2004
rpm-4.2.1-4.solaris2.8.sparc64.rpm
+ ls -al /var/lib/rpm
total 4
drwxr-xr-x 2 root root 512 Sep 14 2004 .
drwxr-xr-x 3 root root 512 Sep 14 2004 ..
+ echo Initializing RPM DB.
Initializing RPM DB.
+ /usr/bin/truss -fae -o /var/tmp/trussrpm.out ./rpm -vv --initdb
_sys_thread_create() failed, errno = 22
The tail of the truss output.
17558: stat("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", 0xFFBFDB54) = 0
17558: open("/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1", O_RDONLY) = 7
17558: fstat(7, 0xFFBFDB54) = 0
17558: mmap(0xFF1E0000, 8192, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 7, 0) = 0xFF1E0000
17558: mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 7, 0) = 0xFF1D0000
17558: close(7) = 0
17558: stat("/usr/lib/libthread.so.1", 0xFFBFDB54) = 0
17558: open("/usr/lib/libthread.so.1", O_RDONLY) = 7
17558: fstat(7, 0xFFBFDB54) = 0
17558: mmap(0xFF1E0000, 8192, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 7, 0) = 0xFF1E0000
17558: mmap(0x00000000, 245760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 7,
0) = 0xFF0A0000
17558: mmap(0xFF0CE000, 6644, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 7, 122880) = 0xFF0CE000
17558: mmap(0xFF0D0000, 45704, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF0D0000
17558: munmap(0xFF0BE000, 65536) = 0
17558: memcntl(0xFF0A0000, 31224, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
17558: close(7) = 0
17558: munmap(0xFF1E0000, 8192) = 0
17558: lwp_self() = 1
17558: sigfillset(0xFF1C28C8) = 0
17558: brk(0x001EE0E0) = 0
17558: sysconfig(_CONFIG_PAGESIZE) = 8192
17558: sysconfig(_CONFIG_SEM_VALUE_MAX) = 2147483647
17558: getpid() = 17558 [17557]
17558: lwp_self() = 1
17558: getcontext(0xFFBFE0B8)
17558: getrlimit(RLIMIT_STACK, 0xFFBFE0B0) = 0
17558: sigprocmask(SIG_SETMASK, 0x00000000, 0xFFBFE0A0) = 0
17558: sigprocmask(SIG_SETMASK, 0xFF0CEFE8, 0x00000000) = 0
17558: sigaction(SIGLWP, 0xFF0CF7E0, 0x00000000) = 0
17558: sigaction(SIGCANCEL, 0xFF0CF7E0, 0x00000000) = 0
17558: sysconfig(_CONFIG_STACK_PROT) = 7
17558: mmap(0x00000000, 8454144, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON, -1, 0) = 0xFE800000
17558: mprotect(0xFE800000, 8192, PROT_NONE) = 0
17558: mprotect(0xFE902000, 8192, PROT_NONE) = 0
17558: mprotect(0xFEA04000, 8192, PROT_NONE) = 0
17558: mprotect(0xFEB06000, 8192, PROT_NONE) = 0
17558: mprotect(0xFEC08000, 8192, PROT_NONE) = 0
17558: mprotect(0xFED0A000, 8192, PROT_NONE) = 0
17558: mprotect(0xFEE0C000, 8192, PROT_NONE) = 0
17558: mprotect(0xFEF0E000, 8192, PROT_NONE) = 0
17558: lwp_create(0xFFBFDDD8, __LWP_ASLWP, 0xFF00FDB8) Err#22 EINVAL
17558: write(1, " _ s y s _ t h r e a d _".., 40) = 40
17558: _exit(1)
Only yields:
# ls -al /var/lib/rpm
total 868
drwxr-xr-x 2 root root 512 Feb 9 11:48 .
drwxr-xr-x 3 root root 512 Sep 14 2004 ..
-rw-r--r-- 1 root root 8192 Feb 9 11:48 __db.001
-rw-r--r-- 1 root root 1318912 Feb 9 11:48 __db.002
-rw-r--r-- 1 root root 368640 Feb 9 11:48 __db.003
-rw-r--r-- 1 root root 24576 Feb 9 11:48 Basenames
-rw-r--r-- 1 root root 24576 Feb 9 11:48 Packages
-rw-r--r-- 1 root root 24576 Feb 9 11:48 Providename |