After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757778 - gnome-builder-3.18.1: 100% cpu usage (ctags going crazy on symlink?)
gnome-builder-3.18.1: 100% cpu usage (ctags going crazy on symlink?)
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
3.18.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-08 14:29 UTC by kobboi
Modified: 2016-05-05 12:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ctags: ignore symlinks when mining directory tree (1.69 KB, patch)
2016-05-05 12:00 UTC, Christian Hergert
committed Details | Review

Description kobboi 2015-11-08 14:29:25 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.
Comment 1 Christian Hergert 2016-05-05 12:00:51 UTC
Created attachment 327341 [details] [review]
ctags: ignore symlinks when mining directory tree
Comment 2 Christian Hergert 2016-05-05 12:09:27 UTC
Thanks for reporting!

Attachment 327341 [details] pushed as 1afdcfb - ctags: ignore symlinks when mining directory tree