Hi Andreas, On Wed, Feb 10, 2021 at 01:09:30PM +0100, Andreas Tille wrote: > I tried to fix the test issues of drmaa. Besides a missing Depends > which was fixed in Git[1] this bug of jmalloc2 affects the import: > [...] > So for drmaa it is release critical to fix the issue.
I'm sorry to hear that -- that doesn't sound great indeed! The issue here seems to be that we have to choose between those two options: * Crashes such as the one you experience, effectively happening when one tries to dlopen() a library that is linked with jemalloc (libdrmaa), from a binary that is not linked with jemalloc (Python). This is what we have now. * Building jemalloc with --disable-initial-exec-tls, which would allow dynamically loading jemalloc, but which will result into two malloc implementations (glibc's and jemalloc's) to coexist in the same process. In this case, if -for whatever reason- a pointer leaks from one implementation to the other (though e.g. a realloc call, free etc.), we would see some really weird and confusing crashes or deadlocks. None of the two are great options! I don't feel super comfortable to make this choice in isolation, so as promised before, I reached out to upstream via Gitter¹. Upstream's recommendation is to avoid shipping with --disable-initial-exec-tls and continue building the way we are right now. Furthermore, they recommend that shared libraries should not define their own malloc independent of the process malloc, if they want to use the symbol name malloc, and thus should not link with jemalloc (at least in the way they currently do). Effectively, they consider this a bug in libdrmaa and others like it. >From a Debian packaging PoV, a) I trust their judgement in evaluating this tricky trade-off b) I think it's too late in the bullseye cycle to be considering such a high-risk change that could result in weird to debug crashes or deadlocks. Let me know if you disagree! I realize this probably not the news you were hoping for. I welcome your thoughts and further discussion here, so not marking this as wontfix/resolved yet. Hope this helps! Best, Faidon 1: https://gitter.im/jemalloc/jemalloc?at=602a62a49ba13e72e42f0ba5

