redis-server crashes with jemalloc error if activedefrag is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redis (Debian) |
Incomplete
|
Unknown
|
|||
redis (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
journalctl output:
Aug 05 18:20:25 mhall-xps redis-server[
Aug 05 18:20:25 mhall-xps redis-server[
Aug 05 18:20:25 mhall-xps redis-server[
Aug 05 18:20:25 mhall-xps redis-server[
I am in the process of debugging this more fully, but it appears that part of the problem is caused by the difference between the USE_JEMALLOC and USE_SYSTEM_JEMALLOC flags in the debian/rules and debian/patches for the package.
When you run ldd on redis-server, it is linked against libjemalloc, but it seems that the logic in the redis-server binary itself is not detecting this because the ifdefs involved depend on USE_JEMALLOC being set and the packaging code is not setting this flag. However, rebuilding the package from the Ubuntu source with the flag set did not seem to help.
The latest Debian source on Git is giving me some FTBFS issues, probably user error because I am not that familiar with using the special Debian package Git repos and some of the distro specific patches probably did not get applied:
cc: error: ../deps/
cc: error: ../deps/
...
cc: error: ../deps/
Using the Debian source from the latest unstable tarball, 6.0.6, the error received changes:
Aug 05 19:43:23 mhall-xps redis-server[
Reading the code some more from there, it appears that, when using the system jemalloc, as the Redis package is trying to do, because the system jemalloc does not define the symbol JEMALLOC_FRAG_HINT checked in zmalloc.h to fully enable defrag support.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: redis-server 5:5.0.7-2
ProcVersionSign
Uname: Linux 5.4.0-42-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Aug 5 19:03:06 2020
InstallationDate: Installed on 2020-07-28 (8 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: redis
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
Changed in redis (Debian): | |
status: | Unknown → Incomplete |