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

Test_ChildVisitor.hs Seg Faults #10

Closed
deech opened this issue Dec 4, 2012 · 2 comments
Closed

Test_ChildVisitor.hs Seg Faults #10

deech opened this issue Dec 4, 2012 · 2 comments

Comments

@deech
Copy link
Collaborator

deech commented Dec 4, 2012

I pulled master and ran the child visitor test scripts.

The C version seems to work fine, but I get Segmentation fault (core dumped) when I run any file using the Haskell version like: > Test_ChildVisitor "test.h"
-deech

@chetant
Copy link
Owner

chetant commented Dec 4, 2012

I'm guessing this is a result of how I'm serializing some data structure from Haskell <-> C, very likely libClang representation changed. Will investigate over the weekend.

@deech
Copy link
Collaborator Author

deech commented Dec 15, 2012

You're right. I did a little digging and the CXCursor struct has added an `int xdata' member [1] . I'm not sure what it does. It's absence is causing prim_visitChildren_ to seg-fault.
-deech

[1] http://clang.llvm.org/doxygen/Index_8h_source.html#l02074
[2] https://github.com/chetant/LibClang/blob/master/src/Clang/FFI.gc#L1221

@deech deech closed this as completed Dec 18, 2012
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

2 participants