Cannot import openvdb 6.2 on Focal due to jemalloc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jemalloc (Debian) |
Won't Fix
|
Unknown
|
|||
jemalloc (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
Focal |
Won't Fix
|
Medium
|
Unassigned | ||
openvdb (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
[Impact]
* This issue causes apps to be unable to dlopen libopenvdb6.2 or any shared libraries that depend directly or indirectly on libopenvdb6.2. Notably this includes libopenimageio2.1 and anything that depends on it. The python3-openvdb package also doesn't work in focal at present because of this issue.
* This issue is a good candidate for backporting to focal because (1) the fix is a very modest change to the build of the libopenvdb6.2 package; (2) this is a regression from the previous stable release of Ubuntu (bionic); (3) several packages are affected by it.
* The change already in groovy fixes this issue by not building libopenvdb with jemalloc.
[Test Case]
* `apt install python3-openvdb && python3 -c "import pyopenvdb"` should succeed, but because of this issue it currently fails with the error "cannot allocate memory in static TLS block".
* Also, the following C program should print a non-nil value to stdout:
```c
#include <dlfcn.h>
#include <stdio.h>
void main() {
printf("%p\n", dlopen(
}
```
[Regression Potential]
* Regressions are unlikely because the only change is to the choice of allocator for libopenvdb6.2 when configuring the build with CMake.
* There is no need for a patch to libopenvdb.
* The patch applied in groovy is https:/
[Other Info]
* There are workarounds for this issue, but each has its own drawbacks and may not be possible in every situation where this issue could occur.
* Upstream issue https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libopenvdb-dev 6.2.1-8ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun 10 19:49:55 2020
InstallationDate: Installed on 2020-05-15 (26 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: openvdb
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in jemalloc (Ubuntu): | |
status: | New → Confirmed |
Changed in jemalloc (Debian): | |
status: | Unknown → New |
Changed in jemalloc (Ubuntu): | |
importance: | Undecided → Medium |
Changed in jemalloc (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in openvdb (Ubuntu): | |
importance: | Undecided → Medium |
Changed in openvdb (Ubuntu Focal): | |
importance: | Undecided → Medium |
summary: |
- openvdb6.2 is non functionnal on Focal due to jemalloc + Cannot import openvdb 6.2 on Focal due to jemalloc |
tags: | added: patch |
Changed in jemalloc (Debian): | |
status: | New → Won't Fix |
tags: | added: regression-release |
Changed in jemalloc (Ubuntu): | |
status: | Confirmed → Won't Fix |
Changed in jemalloc (Ubuntu Focal): | |
status: | New → Won't Fix |
Changed in openvdb (Ubuntu Focal): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Status changed to 'Confirmed' because the bug affects multiple users.