gcc (GCC) 4.8.2
Error happens with go version go1.2rc5 linux/amd64 as well
I've seen this error reported on this list (and other places before)
but I can't find a solution for my particular problem and I'm not sure
what it is. I am not very experienced in C.
This program integrates with cwiid (Nintendo Wiimote controller
library) to handle button presses for e.g., 5k race results. I've
created a "crash" branch that simplifies the code to create the error
The error occurs when cwiid listens for a Wiimote and doesn't get one;
it then crashes. The confusing part for me is if I connect the
wiimote, then disconnect it (pull battery, hold power button, walk out
of range, etc) the program doesn't crash on successive listeners. You
don't need a wiimote to recreate the error but you do need a bluetooth
device to listen for one.
git clone -b crash https://github.com/mzimmerman/racerwiigo.git && cd
racerwiigo && go build && ./racerwiigo
Cloning into 'racerwiigo'...
remote: Counting objects: 172, done.
remote: Compressing objects: 100% (138/138), done.
remote: Total 172 (delta 104), reused 98 (delta 34)
Receiving objects: 100% (172/172), 75.28 KiB | 0 bytes/s, done.
Resolving deltas: 100% (104/104), done.
Checking connectivity... done
Press 1&2 on the Wiimote now
SIGSEGV: segmentation violation
signal arrived during cgo execution
main._C2func_cwiid_command(0x0, 0x200000003, 0x0, 0x0, 0x0, ...)
goroutine 2 [syscall]:
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.