Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

use getprpwnam in itanium B.11.23 in trusted system mode

Frequent Advisor

use getprpwnam in itanium B.11.23 in trusted system mode

when i use getprwnam run in itanium B.11.23
like this
char *pw_password =pw->pw_passwd;
//trust system get /tcb/files/auth
if ((spw=getprpwnam(pw->pw_name))!=NULL)
{
pw_password = spw->ufld.fd_encrypt;
}
when I use pstack to trace my program
ndb62:/#pstat ck 6863
6863: ./isAgent

-------------------------------- lwpid : 2335013 -------------------------------

0: 60000000c033d150 : _read_sys() + 0x30 (/usr/lib/hpux32/libc.so.1)
1: 60000000c0350080 : _read() + 0x160 (/usr/lib/hpux32/libc.so.1)
2: 60000000c031b0c0 : __filbuf() + 0x1e0 (/usr/lib/hpux32/libc.so.1)
3: 60000000c031ac90 : fgets() + 0x3d0 (/usr/lib/hpux32/libc.so.1)
4: 60000000c03c16b0 : agetent() + 0x190 (/usr/lib/hpux32/libsec.so.1)
5: 60000000c03c1e40 : agetdefault() + 0x70 (/usr/lib/hpux32/libsec.so.1)
6: 60000000c03e6770 : files_getprpwnam() + 0x190 (/usr/lib/hpux32/libsec.so.1)
7: 60000000c03e69b0 : nss_files_getprpwnam() + 0x70 (/usr/lib/hpux32/libsec.so.1)
8: 60000000c03aca50 : _nss_files_ipnodes_constr() + 0x40a0 (/usr/lib/hpux32/libnss_files.so.1)
9: 60000000c02fae80 : nss_search() + 0x460 (/usr/lib/hpux32/libc.so.1)
10: 60000000c03ecb10 : nss_getprpwnam_r() + 0x130 (/usr/lib/hpux32/libsec.so.1)
11: 60000000c03cb430 : nss_getprpwnam() + 0x120 (/usr/lib/hpux32/libsec.so.1)
12: 60000000c03cb2d0 : getprpwnam() + 0x50 (/usr/lib/hpux32/libsec.so.1)
13: 00000000042bba60 : (unknown) () (unknown)
14: 00000000042bd8e0 : (unknown) () (unknown)
15: 00000000040a0de0 : (unknown) () (unknown)
16: 000000000408b130 : (unknown) () (unknown)
17: 0000000004088400 : (unknown) () (unknown)
18: 0000000004084670 : (unknown) () (unknown)
19: 60000000c0029540 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)


Can anyone know what wrong in my program






6 REPLIES
Acclaimed Contributor Acclaimed Contributor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

>when I use pstack to trace my program

Why not use a debugger?

>Can anyone know what wrong in my program?

Why do you think anything is wrong? Because of the "unknown"? Is your program stripped?
Frequent Advisor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

thanks for your reply

because this server is not mine
I cannot trace to that server
I use pstack command,and i try serval time it also show above status

so i think getprpwnam() which it have some wrong

I need to force core dump file function
that i could debug




Frequent Advisor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

thanks for your reply
but is it a right answer?

Acclaimed Contributor Acclaimed Contributor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

>because this server is not mine, I cannot trace to that server

What do you mean? Do you have wdb/gdb installed?
Is your executable stripped??

>I try several time it also show above status

It could just be busy reading. Or blocked on a socket. Here tusc would help.

>I need to force core dump file function

No need, try using gdb to attach.
Frequent Advisor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

because i have two thread so i closed this
Acclaimed Contributor Acclaimed Contributor

Re: use getprpwnam in itanium B.11.23 in trusted system mode

>because I have two thread so I closed this

(Closing this without assigning points means you don't want any help at all on either problem.)

Please read the following about reopening threads and assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
http://forums.itrc.hp.com/service/forums/helptips.do?#33

Your unassigned threads:
http://forums.itrc.hp.com/service/forums/pageList.do?userId=WW161729&listType=unassigned