Arc Forumnew | comments | leaders | submitlogin
2 points by stefano 5880 days ago | link | parent

I think the problem is in the connect: with mzscheme 352 it segfaults(not always, though), with mzscheme 372 it seems to work. Maybe is a bug in mzscheme 352 C callbacks. Wich version are you using?


1 point by almkglor 5880 days ago | link

360. Yes, the problem does seem to be in 'connect, because that appears to be the part where it interacts with the user.

That said, is another potential problem the fact that I'm using a 64-bit machine+kernel?

-----

2 points by stefano 5880 days ago | link

To access some structures (such as GValue) I manually allocate the correct size with cmalloc, and to access the structure i use low level functions (such as inc_pt) wich make assumptions on the size of the structure. I program on a 32 bit machine where pointers are smaller than on a 64 bit machine, so this could (and probably is) a problem. I definetly need a better way to access C structures, but this would mean to extend Arc FFI capabilities.

Edit: i've tried mzscheme 360 and it works. The problem then is with the 64 bit.

-----

1 point by stefano 5879 days ago | link

I've found and solved the signal connection problem, the bug fix is now on Anarki.

-----