Skip to content

Interpreter crashes with --with-trace-refs on #103621

Description

@sunmy2019

Crash report

Interpreter crashes with --with-trace-refs on.

./configure --with-trace-refs
make -j

./_bootstrap_python has a segment fault.

The compiler warns when initializing some PyObjects. I think it's due to an incorrect fill of fields with trace ref API.

Your environment

  • CPython versions tested on: current main d1e4917
  • Operating system and architecture: ubuntu 22.04 x64

Releated ideas

https://discuss.python.org/t/enhance-ref-trace-facilities/25990

Activity

  1. added
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Apr 19, 2023
  2. corona10 commented on Apr 19, 2023

    @corona10
    Member

    I can reproduce the issue on my local too.

  3. arhadthedev commented on Apr 19, 2023

    @arhadthedev
    Member

    gh-103561 probably fixes this.

  4. arhadthedev commented on Apr 21, 2023

    @arhadthedev
    Member

    @sunmy2019 gh-103561 is merged; could you check if the issue is fixed?

  5. sobolevn commented on Apr 21, 2023

    @sobolevn
    Member

    I can confirm that it solved the issue:

    » ./configure --with-trace-refs --with-pydebug && make -j
    
    ...
    
    ./python.exe -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
    The following modules are *disabled* in configure script:
    xxlimited             xxlimited_35                             
    
    The necessary bits to build these optional modules were not found:
    _tkinter                                                       
    To find the necessary bits, look in configure.ac and config.log.
    
    Checked 111 modules (30 built-in, 76 shared, 2 n/a on macosx-10.14-x86_64, 2 disabled, 1 missing, 0 failed on import)
    
  6. changed the title [-]Interpretor crashes with `--with-trace-refs` on[/-] [+]Interpreter crashes with `--with-trace-refs` on[/+] on Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions