bug-groff
[Top][All Lists]
Advanced

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

[bug #59202] troff: segfault when standard output closed


From: G. Branden Robinson
Subject: [bug #59202] troff: segfault when standard output closed
Date: Tue, 1 Mar 2022 09:09:33 -0500 (EST)

Follow-up Comment #2, bug #59202 (project groff):


commit c788cf8c6bbe939fa11f7ec032e525a7e33f41b6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Sep 29 07:02:25 2020 +1000

    Fix SEGV arising from recursing destructor.
    
    * src/roff/troff/node.h (output_file): Add class member `is_dying` to
      track whether destructor has already been entered; initialize false.
    
    * src/roff/troff/node.cpp (real_output_file::~real_output_file): Set
      `is_dying` true when destructor entered.
    
    * src/roff/troff/div.cpp (cleanup_and_exit): Only delete
      `the_output` object if it is not already being destroyed.
    
    Thanks to "hackerb9" for reporting the problem.  Problem appears to date
    back to groff 1.02 (June 1991) or earlier.
    
    Fixes <https://savannah.gnu.org/bugs/index.php?59202>.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59202>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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