Changes between Initial Version and Version 10 of Ticket #30018


Ignore:
Timestamp:
09/06/21 06:05:00 (11 months ago)
Author:
mkoeppe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30018

    • Property Priority changed from major to critical
    • Property Dependencies changed from to #32480
    • Property Summary changed from Can't deepcopy expression containing function to Segfault when unpickling expression containing function
    • Property Milestone changed from sage-9.1 to sage-9.5
  • Ticket #30018 – Description

    initial v10  
     1{{{
     2sage: var('t')                                                                                                                                                 
     3t
     4sage: x = function('x')(t)                                                                                                                                     
     5sage: l = [[x == 1]]                                                                                                                                           
     6sage: loads(dumps(l))                                                                                                                                         
     7TypeError                                 Traceback (most recent call last)
     8~/s/sage/sage-rebasing/worktree-gcc11/src/sage/libs/pynac/pynac.pyx in sage.libs.pynac.pynac.py_print_function_pystring()
     9    491         olist = [func._name]
     10    492     olist.extend(['(', ', '.join(map(repr, args)), ')'])
     11--> 493     return ''.join(olist)
     12    494
     13    495 cdef stdstring* py_print_function(unsigned id, args):
     14
     15TypeError: sequence item 0: expected str instance, bytes found
     16Exception ignored in: 'sage.libs.pynac.pynac.py_print_function'
     17Traceback (most recent call last):
     18  File "sage/libs/pynac/pynac.pyx", line 493, in sage.libs.pynac.pynac.py_print_function_pystring
     19TypeError: sequence item 0: expected str instance, bytes found
     20------------------------------------------------------------------------
     21(no backtrace available)
     22------------------------------------------------------------------------
     23Unhandled SIGSEGV: A segmentation fault occurred.
     24}}}
     25
     26As without #32480, `deepcopy` goes through pickling/unpickling, this also causes a failure of `deepcopy` as originally reported:
     27
    128When I deepcopy expression containing function, a segmentation fault occurred.
    229