lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Possible Bug in Lynx 2.8.5-dev.15


From: Patrick Ash
Subject: Re: lynx-dev Possible Bug in Lynx 2.8.5-dev.15
Date: Thu, 01 May 2003 15:40:50 +0000

On Thu, 01 May 2003 15:24:26 -0400, Thomas Dickey wrote:

>> When going to the following url, Lynx traps and exits. This occurs
>> both when selecting the link from a main page, and starting lynx with
>> the url as the target. 
>> 
>>  http://camden-sbc.rutgers.edu/FacultyStaff/Directory/default.htm
>> 
>> None of the other links on the main page (
>> http://camden-sbc.rutgers.edu ) exhibit the same behavior. 
>> 
>> This is lynx-2.8.5-dev.15, built on OS/2 with ncurses-5.3. The
>> behavior does not exist with dev.14 built with the same parameters. 
>
>The immediate problem is in TRSTable.c, where it attempts to reuse a pointer
>which is normally malloc'd.  If you change this "0" to a "1", it should work:
>
>#if 0  /* Leads to no memory savings and quadratic time with EMX malloc */
>       /* Do not need extra cells any more */
>       me->rows[me->nrows - 2].cells = realloc(p,c * sizeof(STable_cellinfo));
>       me->rows[me->nrows - 2].allocated = me->rows[me->nrows - 2].ncells;
>#else
>       if (!me->used_chunks
>
>The realloc is used to shrink storage requirements - IZ's comment indicates it
>may be slow.  If it's too slow, we should drop that chunk of code altogether.

This cured the problem. Works fine now, both from the main page, and
using the url as the target when starting lynx. 

Pat

-- 
Patrick Ash 
address@hidden

This OS/2 system uptime is 10 days, 01:17 hours and 30 seconds


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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