-
Notifications
You must be signed in to change notification settings - Fork 32
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
segfault in aggregate function #47
Comments
Thanks for the report, I have just pushed a potential fix for your problem. The init value of aggregate functions was missing its GC registration. Could you please test the change and confirm that it fixes your problem? I'll make a new release if it does. |
Seems like master requires OCaml 4.12, that's kind of annoying for me as I'm still mostly on 4.08. Let me see if I can make a new switch… |
Update: it doesn't seem to fix my segfault sadly :/. The segfault still happens in the aggregate finalize function. |
I have added another potential fix. It's possible that your selection was empty in which case the step function will never be called. In that case the aggregation context was not initialized. |
It seems to work now! Thank you! (btw, in general, I really appreciate the quality of this library.) |
Great, thanks for the help and feedback, I'll make a new release soon. |
trying to use
Aggregate.create_fun1
but I consistently get a segfault in the finalize part. Accumulator type isstring list option
. A trace follows:The text was updated successfully, but these errors were encountered: