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

Breakage in recent linux #6

Closed
queenp opened this issue Sep 19, 2018 · 4 comments
Closed

Breakage in recent linux #6

queenp opened this issue Sep 19, 2018 · 4 comments

Comments

@queenp
Copy link

queenp commented Sep 19, 2018

Hi there, thanks for writing this awesome wrapper package.

I've just recently started having an issue, where I get the following output running the demo candump app

$ go run cmd/candump.go -if vcan0
2018/09/19 03:37:16 invalid argument
exit status 1

I traced the error down to the call to syscall.Bind() in NewReadWriteCloserForInterface, but I'm not familiar enough with the relationship between the golang syscall package and the C end to take that gap any further. It's possible that this is actually a lower level issue in the go stack, but I figured I'd come here first just in case.

The kernel version on the vm it broke for:

$ uname -a
Linux kali 4.17.0-kali3-amd64 #1 SMP Debian 4.17.17-1kali1 (2018-08-21) x86_64 GNU/Linux

(Just for reference, I've confirmed multiple times including with the socketcan C based canplayer/candump executables that my vcan socket is definitely present and up and functional).

@brutella
Copy link
Owner

Which version of Go are using?

@brutella
Copy link
Owner

Maybe we have to change the binding to this.
(Currently I don't have time to look into it.)

@queenp
Copy link
Author

queenp commented Sep 28, 2018 via email

@brutella
Copy link
Owner

I've added a possible fix in the fix-linux branch.

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