Article View: gnu.gcc.help
Article #53356Call to inet_ntoa() core dumps (was:Configuration for Sun4 with SunOS4)
From: Edward Symanzik
Date: Wed, 12 Feb 1992 13:38
Date: Wed, 12 Feb 1992 13:38
19 lines
1482 bytes
1482 bytes
zik@convex.cl.msu.edu (Edward Symanzik) writes: >Could someone please point me to a configuration file for a Sun4 running SunOS4? Duh. I don't know how many times I looked right past sun4 and saw sun4-os3. Anyway, now that I have gcc built for the correct os, I am still getting the same problem I had before. Namely, when I call inet_ntoa() I sometimes get core dumps. I used a debugger to find that I was indeed getting a SEGV in inet_ntoa() and that the correct value was being passed. If I write a small test program, it works fine. If I compile the source for inet_ntoa() myself and link it in (rather than using the library) it works fine. struct sockaddr_in foo; inet_ntoa(foo.sin_addr); What's gives? Ed Symanzik Michigan State University zik@convex.cl.msu.edu
Technical Details
Message-ID:
<1992Feb12.133822.25475@msuinfo.cl.msu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!convex.cl.msu.edu!zikReferences:
<1992Feb11.142015.27468@msuinfo.cl.msu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,bc2b985b565ab715 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-12 08:01:22 PST Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!convex.cl.msu.edu!zik From: zik@convex.cl.msu.edu (Edward Symanzik) Newsgroups: gnu.gcc.help Subject: Call to inet_ntoa() core dumps (was:Configuration for Sun4 with SunOS4) Message-ID: <1992Feb12.133822.25475@msuinfo.cl.msu.edu> Date: 12 Feb 92 13:38:22 GMT References: <1992Feb11.142015.27468@msuinfo.cl.msu.edu> Sender: news@msuinfo.cl.msu.edu Distribution: gnu Organization: Michigan State University Lines: 19