bug-texinfo
[Top][All Lists]
Advanced

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

Re: makeinfo 4.5 segfaults frequently


From: Karl Berry
Subject: Re: makeinfo 4.5 segfaults frequently
Date: Sun, 16 Feb 2003 12:32:29 -0500

    makeinfo existant.texinfo notexistantfile should be enough.

    Program received signal SIGSEGV, Segmentation fault.
    0x0804e1fe in init_indices () at index.c:345
    345               free (name_index_alist[i]->name);

Thanks for the bug report.  Here's a patch, if you want to try it.

Best,
karl

*** index.c.~1.5.~      Tue Feb 11 08:39:06 2003
--- index.c     Sun Feb 16 09:24:56 2003
***************
*** 342,350 ****
               here; otherwise, when we try to define the pg index again
               just below, it will still point to cp.  */
            undefindex (name_index_alist[i]->name);
!           free (name_index_alist[i]->name);
!           free (name_index_alist[i]);
!           name_index_alist[i] = NULL;
          }
      }
  
--- 342,355 ----
               here; otherwise, when we try to define the pg index again
               just below, it will still point to cp.  */
            undefindex (name_index_alist[i]->name);
!           
!           /* undefindex sets all this to null in some cases.  */
!           if (name_index_alist[i])
!             {
!               free (name_index_alist[i]->name);
!               free (name_index_alist[i]);
!               name_index_alist[i] = NULL;
!             }
          }
      }
  




reply via email to

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