Skip to content
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 11 with encoding #7

Closed
benoitc opened this issue Apr 24, 2012 · 6 comments
Closed

segfault 11 with encoding #7

benoitc opened this issue Apr 24, 2012 · 6 comments

Comments

@benoitc
Copy link
Contributor

benoitc commented Apr 24, 2012

Bug reported by eckoit in master with the jiffy encoder resulting in a segfault. Going back to ejson in ejson branch fixes the issue.

Issue have been reported to davisp/jiffy#24

@nrdufour
Copy link
Contributor

OK I managed to pinpoint the exact location for this one.

It's actually stopping right here:
https://github.com/refuge/jiffy/blob/master/c_src/encoder.c#L141
in the call to enif_realloc_binary.

@davisp
Copy link
Contributor

davisp commented Apr 25, 2012

Reproduced with the instructions Benoît added on Jiffy. Should have a fix shortly.

@davisp
Copy link
Contributor

davisp commented Apr 25, 2012

This is fixed as of Jiffy 0.4.2

@benoitc
Copy link
Contributor Author

benoitc commented Apr 25, 2012

fix confirmed and merged. Thanks @davisp for the fix and @nrdufour for the help :)

@benoitc benoitc closed this as completed Apr 25, 2012
@ryanramage
Copy link

Thanks!!! What great people!

@benoitc
Copy link
Contributor Author

benoitc commented Apr 25, 2012

@ryanramage thanks for the report :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants