Changes between Version 9 and Version 11 of Ticket #27060


Ignore:
Timestamp:
01/18/19 13:06:23 (3 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27060 – Description

    v9 v11  
    11In order to debug crashes with cypari2 (#26442), I added some checks to cypari2. But these checks are now failing because `sig_on()` is regularly used badly inside Sage.
    22
    3 As documented in the cysignals documentation, code inside a `sig_on()`/`sig_off()` block should not manipulate Python objects. The reason is that an interrupt at that time could put Python objects in an invalid state. It is especially problematic if a garbage collection happens inside a `sig_on()` block.
     3As documented in the cysignals documentation, code inside a `sig_on()`/`sig_off()` block should not manipulate Python objects. The reason is that an interrupt at that time could put Python objects in an invalid state. It is especially problematic if a garbage collection happens inside a `sig_on()` block (because that takes a non-trivial amount of time and has a high probability of putting things in an invalid state).
    44
    55This ticket fixes a few of those cases where garbage collection might happen.