[plt-scheme] Question about debugging FFI errors

From: Grant Rettke (grettke at acm.org)
Date: Sat Apr 24 18:20:38 EDT 2010


Sorry if this is a dumb question but how do you typically go about
debugging FFI errors?

Like the manual says once you open up the FFI you are opening the door
to all of the problems that it brings, I'm just not sure where to go
in terms of debugging from here.

The error message that I am getting is:

[hpcl:25269] *** Process received signal ***
[hpcl:25269] Signal: Segmentation fault (11)
[hpcl:25269] Signal code: Invalid permissions (2)
[hpcl:25269] Failing at address: 0x2aaaaad984e8
[hpcl:25269] [ 0] /lib64/libpthread.so.0 [0x390be0de80]
[hpcl:25269] [ 1] mzscheme [0x4a102e]
[hpcl:25269] [ 2] mzscheme(scheme_on_demand_generate_lambda+0x214) [0x4ba534]
[hpcl:25269] [ 3] [0x2aaaaaaac8b3]
[hpcl:25269] *** End of error message ***
Segmentation fault

Does it say that the program is blowing up somewhere in the pthread library?

Is there a way that I can dig deeper to find more about what is going
wrong here?

FWIW this is on a 64bit CentOS node.

Best wishes,

Grant Rettke

Posted on the users mailing list.