Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

Memory leak: rp process consumes all host memory, and is killed by oom #1437

Closed AlexanderKlishin closed 8 months ago

AlexanderKlishin commented 1 year ago

Steps to reproduce the behavior:

  1. git clone https://github.com/samba-team/samba.git
  2. cd samba && ./configure
  3. bear -- make
  4. rc -J .
  5. rp process consumes all host memory, and is killed by oom

Temporary solution: comment out single line https://github.com/Andersbakken/rtags/compare/master...AlexanderKlishin:rtags:fix_memleak

elheremes commented 1 year ago

I had the same problem working with ORB-SLAM3 repository. This temporary solution worked for me, thank you.

Andersbakken commented 8 months ago

Sorry about the long turnaround time. I don't think it's a memory leak strictly speaking. Just that there's tons of doxygen comments in the samba project.

You should be able to disable comment parsing by passing: --no-comments when starting rdm

AlexanderKlishin commented 8 months ago

I have 64Gb on my host ;) And rtags consume all host memory. I think that samba comments are not enough to fill 64Gb.

The same proble compiling Intel TBB.

I think problem in comment inside comment ... I'll test this.