- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: use getprpwnam in itanium B.11.23 in trusted ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 06:24 PM
тАО01-21-2010 06:24 PM
use getprpwnam in itanium B.11.23 in trusted system mode
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
- Tags:
- getprpwnam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 10:51 PM
тАО01-21-2010 10:51 PM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 11:42 PM
тАО01-21-2010 11:42 PM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 12:54 AM
тАО01-22-2010 12:54 AM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
but is it a right answer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 01:27 AM
тАО01-22-2010 01:27 AM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 01:50 AM
тАО01-22-2010 01:50 AM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 02:14 AM
тАО01-22-2010 02:14 AM
Re: use getprpwnam in itanium B.11.23 in trusted system mode
(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