IDEA musl (e.g. alpine linux) support
I have found (with the latest version of IDEA as of writing) that IDEA fails to run due to a missing `mallopt` symbol, which is part of glibc's ptmalloc allocator, and is not available in either musl or gcompat (due to being a non-standard glibc extension, and possibly differences in how musl and glibc's allocators work?). This seems like maybe a bug in IDEA, as the JetBrains Runtime does mention musl support with glibc in the knowledge base.
To work around this locally I have been using tcmalloc, which is available in the alpine linux testing repository as of writing. This has worked for me (making sure to load tcmalloc in LD_PRELOAD), although has seemed to have some performance issues (long freezes during startup) which I am yet unaware if this issue is related to the alternate allocator or not.
Looking forward to any better solutions, and good luck to any others experiencing this issue!
请先登录再写评论。
Hynesc28 Is this behavior already reported in the bug tracker? I can report it on behalf of you or you can directly report it in the JBR project with the error or exceptions you see.
Abhishek Sah As far as I am aware there is no bug report yet, please feel free to create one! Although it might be best to have this fixed in gcompat also. AFAICS tcmalloc's mallopt implementation simply returns 1 as an error code, so gcompat could feasibly also include this stub. But either way it's probably best if jetbrains could remove the hard dependency on mallopt from their code.