GNOME Bugzilla – Bug 757778
gnome-builder-3.18.1: 100% cpu usage (ctags going crazy on symlink?)
Last modified: 2016-05-05 12:09:31 UTC
I have a gnome-builder-3.18.1 compilation with all plugins enabled. After startup, I have one thread that persistently is using up 100% CPU. I'm not a developer and suck at debugging but every time I gdb break the program, that thread is doing 20+ deep stack of ide_ctags_service_mine_directory calls leading to an __lxstat call with argument something like "/usr/include/node/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/src/deps/v8/includesrc/deps/uv/include/src/src/deps/uv/include..." It turns out my nodejs installation has put a "src" symlink in /usr/include/node, pointing to ".". $ ls -rtl /usr/include/node/ | grep src lrwxrwxrwx 1 root root 1 Nov 8 15:25 src -> . This might be a problem with the nodejs installation, but the 100% CPU usage might also reveal a problem with the builder plugin that is easily fixed. Logging this bug to flag the observation, feel free to dismiss.
Created attachment 327341 [details] [review] ctags: ignore symlinks when mining directory tree
Thanks for reporting! Attachment 327341 [details] pushed as 1afdcfb - ctags: ignore symlinks when mining directory tree