- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gethostbyaddr() can easily core dump using thi...
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
Forums
Discussions
Discussions
Discussions
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
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
07-11-2003 08:50 AM
07-11-2003 08:50 AM
gethostbyaddr() can easily core dump using this IP: 66.106.204.66
(gdb) where
#0 0xc015b39c in __strlen20 () from /usr/lib/libc.2
#1 0xc02f6f54 in dns_netdb_aliases () from /usr/lib/libnss_dns.1
#2 0xc02f6e1c in ent2result () from /usr/lib/libnss_dns.1
#3 0xc02f69a0 in free () from /usr/lib/libnss_dns.1
#4 0xc01d9164 in nss_search () from /usr/lib/libc.2
#5 0xc0141dbc in gethostbyaddr () from /usr/lib/libc.2
#6 0x2650 in iptohost (ip=0x7b030510 "66.106.204.66") at hpux_os_bug.c:52
#7 0x25a4 in main (argc=1, argv=0x7b0303e4) at hpux_os_bug.c:33
(gdb)
Any ideas? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 09:39 AM
07-11-2003 09:39 AM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
Name: thehenrylstimsomcenter-thehenrylstimsomcen-psr1136563.z204-106-66.custo
mer.algx.net
Address: 66.106.204.66
Did you try PHCO 28425?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 09:43 AM
07-11-2003 09:43 AM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 10:10 AM
07-11-2003 10:10 AM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 12:01 PM
07-11-2003 12:01 PM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
Data-NOCC@allegiancetelecom.com
You may want to shoot them an e-mail. You would think they realize that the name is a bit redundant. I wonder if it is RFC compliant?
For what it's worth, Linux 7.2 properly resolves the name. I am reluctant to try it on any of our liver servers.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 01:05 PM
07-23-2003 01:05 PM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
67.93.195.10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 04:29 PM
07-23-2003 04:29 PM
Re: gethostbyaddr() can easily core dump using this IP: 66.106.204.66
I tried these and nslookup works but when i wrote a program using gethostbyaddr() like this one ..it works for all address except for the address which you have supplied..
#include
#include
#include
#include
#include
#include
main(argc,argv)
int argc;
char *argv[];
{
u_int addr;
struct hostent *hp;
char **p;
if (argc != 2) {
(void) printf("usage: %s IP-address\n",argv[0]);
exit (1);
}
if ((int) (addr = inet_addr (argv[1])) == -1) {
(void) printf("IP-address must be of the form a.b.c.d\n");
exit (2);
}
hp=gethostbyaddr((char *) &addr, sizeof (addr), AF_INET);
if (hp == NULL) {
(void) printf("host information for %s no found \n", argv[1]);
exit (3);
}
for (p = hp->h_addr_list; *p!=0;p++){
struct in_addr in;
char **q;
(void)memcpy(&in.s_addr, *p, sizeof(in.s_addr));
(void)printf("%s\t%s",inet_ntoa(in), hp->h_name);
for (q=hp->h_aliases;*q != 0; q++)
(void) printf("%s", *q);
(void)putchar('\n');
}
exit(0);
}
Rajeev