lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Lynx / News bug?


From: Foteos Macrides
Subject: Re: LYNX-DEV Lynx / News bug?
Date: Wed, 05 Nov 1997 18:01:57 -0500 (EST)

Allan Foster <address@hidden> wrote:
>As Fote suggested we are sending the trace logs from our unseccessful 
>attempts to connect to NEWS after our upgrade to VMS 7.1.
>[...]
>Looking up news.utulsa.edu.
>
>A Fatal error has occured in Lynx Ver. 2.7.1f

        If you get nothing between the "Looking up news.utulsa.edu."
message and the ACCVIO, then it's happening in HTParseInet() of HTTCP.c,
somewhere in this sequence:

    ["str" is "news.utulsa.edu"]
    StrAllocCopy(host, str);    /* Make a copy we can mutilate */
    if ((port = strchr(host, ':')) != NULL) {
        [there's no colon]
    }
    if (*host >= '0' && *host <= '9') {   /* Test for numeric node address: */
        [it's not numeric]
    }
    if (dotcount_ip == 3) {   /* Numeric node address: */
        [it's not 3]
    } else {                /* Alphanumeric node name: */
        phost = gethostbyname(host);    /* See netdb.h */
        FREE(host);
        memcpy((void *)&sin->sin_addr, phost->h_addr, phost->h_length);
    }
    if (TRACE) {
        fprintf(stderr,  
           "HTParseInet: Parsed address as port %d, IP address %d.%d.%d.%d\n",
                (int)ntohs(sin->sin_port),
                (int)*((unsigned char *)(&sin->sin_addr)+0),
                (int)*((unsigned char *)(&sin->sin_addr)+1),
                (int)*((unsigned char *)(&sin->sin_addr)+2),
                (int)*((unsigned char *)(&sin->sin_addr)+3));
    }

Otherwise, you would have had that trace message, as:

        HTParseInet: Parsed address as port 119, IP address 129.244.1.254
        
But I don't see why any of those calls would cause an ACCVIO.  You
presumeably edited tcp.h to avoid warnings with your version of
MultiNet, which involves typecasts for the functions being used in
HTParseInet().  Are you sure that editing is OK?  Otherwise, since
you don't always get an ACCVIO, it's likely that some function in
the v7.1 shared image libraries which should be re-entrant, isn't.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]