lynx-dev
[Top][All Lists]
Advanced

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

[Lynx-dev] Segmentation fault when lynx - get several lines of input wit


From: Pascal Terjan
Subject: [Lynx-dev] Segmentation fault when lynx - get several lines of input with the first one not being a correct URL
Date: Sun, 11 Nov 2007 01:00:50 +0100

For exemple :

$ echo "a
free.fr" | LC_ALL=C lynx -
Looking up  'a' first
Looking up  'www.a.com', guessing...
Erreur de segmentation

If the first one is correct, it is OK as lynx will draw its interface
before looking at the other one.

I found this by trying to feed some HTML on stdin :)

Program received signal SIGSEGV, Segmentation fault.
0x0807d74b in lynx_nl2crlf (normal=0) at ./LYCurses.c:1392
1392            saved_tty = cur_term->Nttyb;
#0  0x0807d74b in lynx_nl2crlf (normal=0) at ./LYCurses.c:1392
        saved_tty = {c_iflag = 0, c_oflag = 0, c_cflag = 0, c_lflag = 0,
c_line = 0 '\0', c_cc = '\0' <repeats 31 times>, c_ispeed = 0, 
  c_ospeed = 0}
        did_save = 0
        waiting = 0
#1  0x0804d895 in LYReadCmdKey (mode=0) at ./LYStrings.c:1689
        ch = -1
#2  0x0804e6d2 in LYgetch () at ./LYStrings.c:2476
No locals.
#3  0x08086995 in HTCheckForInterrupt () at ./LYUtils.c:1764
        socket_timeout = {tv_sec = 0, tv_usec = 0}
        ret = <value optimized out>
        readfds = {fds_bits = {1, 0 <repeats 31 times>}}
        c = <value optimized out>
        cmd = <value optimized out>
#4  0x080e24d6 in LYGetHostByName (str=0x81cc968 "<table cols='1'
cellpadding='0' cellspacing='0'>")
    at ../../../WWW/Library/Implementation/HTTCP.c:733
        result_phost = <value optimized out>
#5  0x08086de2 in LYExpandHostForURL (AllocatedString=0xbf996d78,
prefix_list=0x81b92f0 "www.", suffix_list=0x81b9300
".com,.edu,.net,.org")
    at ./LYUtils.c:4548
        DomainPrefix = 0x0
        StartP = <value optimized out>
        EndP = <value optimized out>
        DomainSuffix = 0x0
        StartS = <value optimized out>
        EndS = <value optimized out>
        Str = 0x81cc9e0 "<table cols='1' cellpadding='0'
cellspacing='0'>"
        StrColon = 0x0
        MsgStr = 0x0
        Host = 0x0
        HostColon = <value optimized out>
        host = 0x81cc968 "<table cols='1' cellpadding='0'
cellspacing='0'>"






reply via email to

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