lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev coredump (fixed)


From: Leonid Pauzner
Subject: Re: lynx-dev coredump (fixed)
Date: Sat, 31 Oct 1998 19:46:50 +0300 (MSK)

>> 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.


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);



reply via email to

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