-
Notifications
You must be signed in to change notification settings - Fork 677
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subclass introspection from Python causes segfault #240
Comments
Just curious, I tried m.add_class::<PyTzInfo>()?; and got
So, it looks not a datetime FFI problem, but our generated code has some problems. |
looks SIGSEGV happens in |
Same thing happens if the argument to |
Another subclass-related segfault is #220 |
got a gdb backtrace
with minitest.py import rustapi_module.datetime as rdt
if __name__ == "__main__":
tzi = rdt.TzClass()
assert tzi.__class__ == rdt.TzClass
assert repr(tzi) == "TzClass()" |
import rustapi_module.datetime as rdt
if __name__ == "__main__":
tzi = rdt.TzClass()
assert tzi.__class__ == rdt.TzClass So maybe it's because we don't call |
More precise backtrace with python3.8 debug build
|
馃悰 Bug Reports
If you declare a Python class as such:
Then attempt to to do anything that accesses
__class__
, e.g.:It will cause a segmentation fault in the interpreter.
PR adding a test for this and with more details: #239.
The text was updated successfully, but these errors were encountered: