GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — decimal: crash when a re-entrant __bool__ deallocates the Context during Context.flags assignment or comparison · Issue #155493 · python/cpython Open Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump DescriptionBug report
Assignment: import decimal, gc ctx = decimal.Context() flags = ctx.flags class Evil: def __bool__(self): global ctx; del ctx; gc.collect() return True flags[decimal.InvalidOperation] = Evil() # segfault Comparison: import decimal, gc ctx = decimal.Context() other = ctx.flags.copy() class Evil: def __bool__(self): global ctx; del ctx; gc.collect() return True other[decimal.InvalidOperation] = Evil() ctx.flags == other # segfault Both crash with SIGSEGV on current Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |