Closed dongsupark closed 7 years ago
Maybe the same problem as discussed in iovisor/bcc#1221?
@schu Yes, maybe it's the same issue as https://github.com/iovisor/bcc/issues/1221. In my case, Upgrading llvm/clang to the current master(6.0?) didn't fix the issue. BTW I couldn't try llvm v5.0 due to other build issues. So I had to downgrade llvm/clang to 3.9. Now everything works fine. Thanks!
EDIT: Actually I was able to upgrade llvm/clang to 6.0 by rebuilding rpm packages and installing them. That way iovisor/bcc (master) can be built, and bcc examples work fine. The thing is though that iovisor/bcc 0.3.0 cannot be built with llvm/clang 6.0. Without bcc 0.3.0, gobpf won't work at all. So for us, it's the only way to keep llvm/clang 3.9 and bcc 0.3.0.
When running
go test -v --tags integration
on Fedora 26 with kernel 4.11.11, the testTestModuleLoadBCC
fails becauseC.bpf_module_create_c_from_string
fails with SIGSEGV. But other normal integration tests work fine with other kernels like 4.10.