Google Answers Logo
View Question
 
Q: Jumpstart rpm installation error ( No Answer,   2 Comments )
Question  
Subject: Jumpstart rpm installation error
Category: Computers > Operating Systems
Asked by: stubai-ga
List Price: $20.00
Posted: 09 Feb 2006 13:28 PST
Expires: 15 Feb 2006 10:41 PST
Question ID: 443794
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
Answer  
There is no answer at this time.

Comments  
Subject: Re: Jumpstart rpm installation error
From: bozo99-ga on 10 Feb 2006 17:03 PST
 
Solaris 9 man page:
http://docs.sun.com/app/docs/doc/817-0661/6mgeq2sto?a=view
EINVAL    The flags argument contains values other than those specified above.

Your 2nd parm (flags) is __LWP_ASLWP and apparently not a bitwise
inclusive OR of the legal values.  Header files may confirm that.

Why?  I wonder whether you have relatively recent and matching
versions of everything.
Subject: Re: Jumpstart rpm installation error
From: stubai-ga on 15 Feb 2006 10:41 PST
 
Appears to be a conflict between the rpm binary compiled for Sol8 and
the miniroot  Sol10 kernel.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy