lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev coredump (fixed)


From: dickey
Subject: Re: lynx-dev coredump (fixed)
Date: Sat, 31 Oct 1998 13:20:05 -0500 (EST)

> 
> >> Ok, I build a debug version of 2.8.1rel.1, 
> >> link it with ElectricFence, and run under gdb. 
> >> Apperently, the problem around freeing the "title" in LYpop(), 
> >> *sometimes*. 
> >> Any ideas? 
>  
> > perhaps we're freeing the "title" pointer twice. 
>  
> Well, it's my fault (back to 1998-09-25): 
> translate subject for print-to-email. 
thanks (on my list)

I guess that'll go into the 2.8.1 patches...
  
> diff -u old/lyprint.c ./lyprint.c 
> --- old/lyprint.c       Thu Oct 15 18:23:48 1998 
> +++ ./lyprint.c Sat Oct 31 19:00:12 1998 
> @@ -579,8 +579,8 @@ 
>                  *  Use newdoc->title as a subject instead of sug_filename: 
>                  *  MORE readable and 8-bit letters shouldn't be a problem - 
> LP 
>                  */ 
> -               /* change_sug_filename(sug_filename); */ 
> -               subject = subject_translate8bit(newdoc->title); 
> +               /** change_sug_filename(sug_filename); **/ 
> +               StrAllocCopy(subject, subject_translate8bit(newdoc->title)); 
>  
>  #ifdef VMS 
>                 if (strchr(user_response,'@') && !strchr(user_response,':') 
> && 
>  
>  
> >> (gdb) bt 
> >> #0  0x400709e9 in __kill () 
> >> #1  0x80c974b in EF_Abort () 
> >> #2  0x80c9269 in free () 
> >> #3  0x8077a81 in LYpop (doc=0x810d6e4) at ./LYHistory.c:312 
> >> #4  0x805e4df in mainloop () at ./LYMainLoop.c:381 
> >> #5  0x805cf98 in main (argc=1, argv=0xbffffc58) at ./LYMain.c:1686 
> >> #6  0x804a65b in ___crt_dummy__ () 
> >> (gdb) up 
> >> #1  0x80c974b in EF_Abort () 
> >> (gdb) up 
> >> #2  0x80c9269 in free () 
> >> (gdb) up 
> >> #3  0x8077a81 in LYpop (doc=0x810d6e4) at ./LYHistory.c:312 
> >> 312             FREE(doc->title); 
> >> (gdb) up 
> >> #4  0x805e4df in mainloop () at ./LYMainLoop.c:381 
> >> 381                         LYpop(&newdoc); 
>  
>  


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

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