Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sunmy2019 opened this issue Apr 19, 2023 · 4 comments
Closed

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

sunmy2019 opened this issue Apr 19, 2023 · 4 comments
Labels
build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs) release-blocker type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@sunmy2019
Copy link
Member

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

@sunmy2019 sunmy2019 added the type-crash A hard crash of the interpreter, possibly with a core dump label Apr 19, 2023
@arhadthedev arhadthedev added the build The build process and cross-build label Apr 19, 2023
@corona10
Copy link
Member

I can reproduce the issue on my local too.

@arhadthedev
Copy link
Member

gh-103561 probably fixes this.

@arhadthedev
Copy link
Member

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

@sobolevn
Copy link
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)

@AlexWaygood AlexWaygood changed the title Interpretor crashes with --with-trace-refs on Interpreter crashes with --with-trace-refs on Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs) release-blocker type-crash A hard crash of the interpreter, possibly with a core dump
Projects
Development

No branches or pull requests

5 participants