Re: Help needed for migrating HPUX tool to Solaris
- From: Rich Teer <rich.teer@xxxxxxxxxxxxxx>
- Date: Fri, 01 Dec 2006 00:22:36 GMT
On Thu, 30 Nov 2006, arkutt@xxxxxxxxx wrote:
core dump while running the exe.
exe? You're not a Windoze programmer, are you? ;-)
t@1 (l@1) terminated by signal SEGV (no mapping at the fault address)
Current function is main
107 printf("Usage: %s Interface_ID [Message_ID]\n", argv[0]);
(dbx) where
current thread: t@1
=>[1] main(argc = 0, argv = (nil)), line 107 in "rcv_main.c"
My bet is that you're passing a null pointer to printf. ISTR that HPUX
thinks (or at least, thought) that it's a good idea to mask programmer
errors in this way (dereferncing a null pointer is always a programmer
error!). SOlaris doesn't, a core dump ensues.
To avoid, properly trap null pointers, so that you don't try to
dereference them.
HTH,
--
Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
.
- Follow-Ups:
- Re: Help needed for migrating HPUX tool to Solaris
- From: arkutt
- Re: Help needed for migrating HPUX tool to Solaris
- References:
- Help needed for migrating HPUX tool to Solaris
- From: arkutt
- Help needed for migrating HPUX tool to Solaris
- Prev by Date: vxfencoorddg in Veritas cluster
- Next by Date: T2000 Dev/Test with E490's for production
- Previous by thread: Help needed for migrating HPUX tool to Solaris
- Next by thread: Re: Help needed for migrating HPUX tool to Solaris
- Index(es):
Relevant Pages
|