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
Segmentation fault in asyncio #82966
Comments
Get Segmentation fault on run script in attachment. |
Get seg fault on running script in attachment: root@fake:/opt/securisync/be# python3.7 scratch_15.py |
Thanks for the report! |
The crash occurs in _asyncio_Future_get_loop(): (gdb) frame (gdb) up (gdb) p self->fut_loop (gdb) where (gdb) py-bt
Traceback (most recent call first):
<built-in method get_loop of Qwe2 object at remote 0x7fffea2615f0>
<built-in method run of Context object at remote 0x7fffea215170>
File "/home/vstinner/python/master/Lib/asyncio/events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "/home/vstinner/python/master/Lib/asyncio/base_events.py", line 2641, in _run_once
File "/home/vstinner/python/master/Lib/asyncio/base_events.py", line 1101, in run_forever
await waiter
File "/home/vstinner/python/master/Lib/asyncio/base_events.py", line 621, in run_until_complete
self.run_forever()
File "/home/vstinner/python/master/Lib/asyncio/runners.py", line 299, in run
File "/home/vstinner/python/master/scratch_15.py", line 56, in <module>
asyncio.run(main()) |
Looks like get_future_loop() function misses ENSURE_FUTURE_ALIVE macro call. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: