lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV lynx271f FTP problem in FreeBSD


From: Ismael Cordeiro
Subject: LYNX-DEV lynx271f FTP problem in FreeBSD
Date: Sun, 28 Dec 1997 00:41:48 -0500 (EST)

I found a problem in lynx271f-971222 compiled in FreeBSD with slang.

When I follow an FTP link and try to follow another FTP link, lynx crashes,
displaying the usual message. I tried several FTP sites and the results were
always the same. The problem doesn't shows up in Solaris 2.5 with slang.
Since the problem doesn't exist in lynx271f-971217 I presume that the
problem was created by

| * Tweak of get_connection() in HTFTP.c to re-initialize the elements of
|   the connection structure when using a previously allocated connection
|   object. - DW & FM

I recompiled lynx271f-971222 with the -g option and ran it through GDB.
Here's what GDB said:

Getting ftp://nic.funet.fi/pub/cbm/c128
Program received signal SIGSEGV (11), Segmentation fault
0x7f9d6 in get_connection (arg=0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00) at ../../Library/Implementation/HTFTP.c:643
643             con->addr = 0;
 
(gdb) bt
#0  0x7f9d6 in get_connection (arg=0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00) at ../../Library/Implementation/HTFTP.c:643
#1  0x83283 in HTFTPLoad (name=0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00, format_out=0xf34f0, sink=0x0)
    at ../../Library/Implementation/HTFTP.c:2673
#2  0x7e1e1 in HTLoadFile (addr=0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00, format_out=0xf34f0, sink=0x0)
    at ../../Library/Implementation/HTFile.c:2134
#3  0x76788 in HTLoad (addr=0x1a2180 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00, format_out=0xf34f0, sink=0x0)
    at ../../Library/Implementation/HTAccess.c:561
#4  0x76d3c in HTLoadDocument (
    full_address=0x1a2180 "ftp://nic.funet.fi/pub/cbm/c128";, anchor=0x186d00, 
    format_out=0xf34f0, sink=0x0)
    at ../../Library/Implementation/HTAccess.c:752
#5  0x770f6 in HTLoadAbsolute (docaddr=0xefbfca60)
    at ../../Library/Implementation/HTAccess.c:919
#6  0x137b5 in getfile (doc=0xd0998) at LYGetFile.c:695
#7  0x1e0e1 in mainloop () at LYMainLoop.c:415
#8  0x16f39 in main (argc=1, argv=0xefbfdc84) at LYMain.c:1528
 
(gdb) info f
Stack level 0, frame at 0xefbfbf30:
 eip = 0x7f9d6 in get_connection (../../Library/Implementation/HTFTP.c:643); 
    saved eip 0x83283
 called by frame at 0xefbfc09c
 source language c.
 Arglist at 0xefbfbf30, args: arg=0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";, 
    anchor=0x186d00
 Locals at 0xefbfbf30, Previous frame's sp is 0x0
 Saved registers:
  ebx at 0xefbfbe18, ebp at 0xefbfbf30, esi at 0xefbfbe1c, edi at 0xefbfbe20,
  eip at 0xefbfbf34
 
(gdb) info args
arg = 0x1a2200 "ftp://nic.funet.fi/pub/cbm/c128";
anchor = (HTParentAnchor *) 0x186d00

(gdb) info locals
status = 1000504
command = 0xf443c "\\D\017"
con = (connection *) 0x11
username = 0x0
password = 0x0
first = 0 '\000'


Ismael

       +-------------------------------------------------------------+
       | ISMAEL CORDEIRO            | mailto:address@hidden          |
       | Production sound mixer     | http://www.cam.org/~ismael/    |
       | Montréal - Québec - Canada | ftp://ftp.cam.org/users/ismael |
       +-------------------------------------------------------------+

reply via email to

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