[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No MX, no address
On 31-Jul-00 at 21:15, Matti Aarnio (firstname.lastname@example.org) wrote:
> > Although today's CVS version seems to work on Solars 2.5, it also seems
> > to NOT work on Solaris 7. This is what I get in the log:
> Yes, sounds familiar long-time problem.
> To help its debugging I have created a new "make" target in the
> subdirectory, namely:
> make getmxrr-test
> When created, that program does DNS lookups just the way as the smtp
> does (actually using same library function), thus it should tell what
> is going on:
> ./getmxrr-test sovam.com
DNS lookup reply: len=260 rcode=0 qdcount=1 ancount=2 nscount=4 arcount=6 RD=1
TC=0 AA=1 QR=1 RA=1
-> MX pref=200 host=relay2.sovam.com
-> MX pref=100 host=relay1.sovam.com
mx mxtype=4-(1) host='relay2.sovam.com'
mx mxtype=4-(1) host='relay1.sovam.com'
Segmentation Fault (core dumped)
Let me see it in gdb...
Program received signal SIGSEGV, Segmentation fault.
0x13324 in getmxrr (SS=0xffbe8ff8, host=0xffbefcbe "sovam.com", mx=0xffbe9018,
maxmx=128, depth=0) at ./getmxrr.c:560
560 fprintf(SS->verboselog," matchmyaddresses(): matched!
canon='%s', myname='%s'\n", ai->ai_canonname, myhostname);
(gdb) p SS->verboselog
$1 = (FILE *) 0x2a398
(gdb) p ai->ai_canonname
Cannot access memory at address 0x14.
(gdb) p myhostname
$2 = "my.host.name", '\000' <repeats 244 times>