-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PyROOT] Crash when passing functor to template method #10092
Comments
Stacktrace printed by ROOT:
|
Valgrind sees a bunch of issues, the ones about mismatched free/delete and similar might be relevant:
|
I believe the difference between For whereas for If instead of passing a Python list to A simpler reproducer is then: import ROOT
ROOT.gInterpreter.Declare("""
void foo (const std::initializer_list< std::string > &columns) {}
""")
ROOT.foo(["x"]) |
Ok, what can we do? does this need a Pythonization? EDIT: or is this a bug to fix in cppyy? |
Yes it's a bug in cppyy, a pythonization of |
All fine, can be closed. |
Another issue (#11411) has been opened to follow up on the conversion issue in cppyy reported above. |
Given:
this works fine:
but this causes a segfault (double free):
Full repro:
The text was updated successfully, but these errors were encountered: