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!

1

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. 

1

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.

0
Sure. I have created JBR-386356 (https://youtrack.jetbrains.com/issue/JBR-386356) . It would help if you can upload the error screenshot and idea log zip generated using Help | Collect Logs and Diagnostic Data... You can upload it to the secure upload server https://uploads.jetbrains.com/ and share upload_id on the bug report. Thank you!

0

请先登录再写评论。