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

Segfaults if ipv6 switched off at kernel level #105

Closed
mcfadzgit opened this issue Jul 3, 2015 · 2 comments
Closed

Segfaults if ipv6 switched off at kernel level #105

mcfadzgit opened this issue Jul 3, 2015 · 2 comments

Comments

@mcfadzgit
Copy link

Using the conky-1.10.0-2-x86_64.pkg.tar.xz package from Arch's Extra repo.
I have ipv6 switched off at the kernel level by using the parameter: ipv6.disable=1
Conky segfaults immediately, regardless of configuration.
Can only be solved by modifying PKGBUILD cmake command to include:
-D BUILD_IPV6=OFF \
makepkg can then build the package and once installed, Conky runs as expected.

@marcpayne
Copy link
Contributor

I've tracked down the cause of this segfault. Until I figure out how to use git without breaking anything, I'll just describe the fix. In linux.cc:647, you call fclose(file), but file might be NULL. Moving the fclose() call up into the if statement fixes the problem for me.

@marcpayne
Copy link
Contributor

@mcfadzgit Fixed in 1.10.1, so this issue can be closed now.

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