-
Notifications
You must be signed in to change notification settings - Fork 748
Trying to pickle an exception crashes the interpreter #284
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
Comments
The reason for this seems to be the implementation of
In our hacked implementation that injects |
Can't you use dill instead pickle? I just tried and it works! In [1]: import clr On Mon, Nov 7, 2016, 11:00 AM Benedikt Reinartz notifications@github.com The reason for this seems to be the implementation of BaseException's reduce /* Pickling support */ In our hacked implementation that injects BaseException into the tp_bases — |
I could maybe do that to silence this particular error on my end, yes. However, this doesn't really fix the problem that you can easily kill the interpreter using this ;) It happened to me when returning an exception object from a function run in a |
I agree that crashing interpreter is not good :) If dill does not work for your case, then there is also cloudpickle used by On Mon, Nov 7, 2016 at 11:11 AM, Benedikt Reinartz <notifications@github.com
|
this also works with cPickle (pickle speed up with C), but gives a different hash:
|
2 comments:
|
The following code apparently tries to write to a
null
pointer:I'm investigating, where it fails exactly but I'm open to hints :)
Small addition: This works fine for simple objects like
System.Object()
The text was updated successfully, but these errors were encountered: