lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV lynx developement version 0.83 and color styles


From: Larry W. Virden, x2487
Subject: Re: LYNX-DEV lynx developement version 0.83 and color styles
Date: Thu, 16 Oct 1997 08:13:37 -0400

From: Klaus Weide <address@hidden>

>> If the folk developing lynx don't want to hear any more about it,
>> they can let me know that they are removing it and I will be able
>> to go away and leave them alone about it.
>
>If I understand correctly, what you have found this time doesn't have
>anything to do with the color-style stuff.  It appears to be something in
>the functions taken from metamail.  I don't understand why this hasn't
>causeed problems already long ago, but maybe there just hasn't been
>anybody with such exotic MIME files as yours...

I didn't want to come across rude there - I can't tell if the intention is
that the color style code is to be dropped or not.

Anyways, the reason I connect the problem with color style is that only
if the color style sheet file is in place, and the program is configured
for color styles, do I see the problem.

>> lynx compiles just fine.
>> 
>> I then start up dbx and tell it to do memory checking.
>
>What's the invocation for that?   (just curious)

In Sun's dbx, the new subcommand is 

check -all

The help for check mentions a -frame <n> and -match <m> but I have
no idea what purpose they serve.

> Change the last part of function Cleanse so that it becomes:

 [code snipped]
> Does that solve it?  Next problem from your stress-testing? :)

Well, it doesn't solve all the problems - the color-style enabled code
still doesn't do the status line correctly if no style sheet is present
(for instance, right now it says:

-more- http://homepage/projects/source/usenet/rasters/B5/Calendars/ÿÿÿÿÿÿÿÿÿÿÿÿÿ

However, _with_ a style sheet in place, things now appear to be working!
I checked the trace file and all those x'FF' characters are gone.

Now we just need to fix up the case where no style sheet is present.

 just ran it under dbx with -trace and the memory checking on.  Ah ha!  Here
we goetting http://homepage/home/lwv26/.parms/home.html
Read from uninitialized (rui): Attempting to read 1 byte at address 0x56e431
which is 225 bytes into a heap block of size 1024 bytes at 0x56e350
This block was allocated from:
[1] HTLoadHTTP() at line 656 in "HTTP.c"
[2] HTLoad() at line 560 in "HTAccess.c"
[3] HTLoadDocument() at line 736 in "HTAccess.c"
[4] HTLoadAbsolute() at line 914 in "HTAccess.c"
[5] getfile() at line 716 in "LYGetFile.c"
[6] mainloop() at line 466 in "LYMainLoop.c"
[7] main() at line 1695 in "LYMain.c"
Current function is HTLoadHTTP
732               memcpy(line_kept_clean, line_buffer, buffer_length);
(dbx 4) where     
  [1] memcpy(0x56e768, 0x56e350, 0x400, 0x400, 0xef79a618, 0x0), at 0xef777fb0
=>[2] HTLoadHTTP(arg = 0x5600f0 "http://homepage/home/lwv26/.parms/home.html";, 
anAnchor = 0x565dc0, format_out = 0x55c520, sink = (nil)), line 732 in "HTTP.c"
  [3] HTLoad(addr = 0x57cb48 "http://homepage/home/lwv26/.parms/home.html";, 
anchor = 0x565dc0, format_out = 0x55c520, sink = (nil)), line 560 in 
"HTAccess.c"
  [4] HTLoadDocument(full_address = 0x57cb48 
"http://homepage/home/lwv26/.parms/home.html";, anchor = 0x565dc0, format_out = 
0x55c520, sink = (nil)), line 736 in "HTAccess.c"
  [5] HTLoadAbsolute(docaddr = 0xefffd6e4), line 914 in "HTAccess.c"
  [6] getfile(doc = 0x2cdbc8), line 716 in "LYGetFile.c"
  [7] mainloop(), line 466 in "LYMainLoop.c"
  [8] main(argc = 2, argv = 0xefffe594), line 1695 in "LYMain.c"
(dbx 5) print line_kept_clean
line_kept_clean = 0x56e768 ""
(dbx 6) print line_buffer   
line_buffer = 0x56e350 "HTTP/1.1 200 OK^M\nServer: 
Netscape-Enterprise/3.0^M\nDate: Thu, 16 Oct 1997 12:10:16 GMT^M\nContent-type: 
text/html^M\nLast-modified: Wed, 15 Oct 1997 13:53:25 GMT^M\nContent-length: 
28345^M\nAccept-ranges: bytes^M\nConnection: close^M\n^M\n"
(dbx 7) print buffer_length
buffer_length = 1024
(dbx 9) print length
length = 0
(dbx 10) print status
status = 224
(dbx 11) print bytes_already_read
bytes_already_read = 224
(dbx 12) print line              
line = "Read 224 bytes of data."
(dbx 13) 


Does any of this help?
-- 
Larry W. Virden                 INET: address@hidden
<URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
Unless explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
;
; 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]