Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libzfs.so.6: undefined symbol: lzc_pool_prefetch after upgrade openzfs-zfsutils to 2.3.0 #17031

Open
n0099 opened this issue Feb 6, 2025 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@n0099
Copy link

n0099 commented Feb 6, 2025

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 24.04.1
Kernel Version 6.8.0-1021-azure
Architecture x86_64
OpenZFS Version 2.3.0

Describe the problem you're observing

Trying to upgrade zfs from 2.2.7 to 2.3.0.
This symbol is introduced in commit 62e7d3c.

$ readelf -Ws /lib/x86_64-linux-gnu/libzfs.so.6 | grep lzc_pool_prefetch
   237: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND lzc_pool_prefetch
$ ldd $(which zfs) | grep libzfs
        libzfs.so.6 => /lib/x86_64-linux-gnu/libzfs.so.6 (0x000070bc5656a000)
        libzfs_core.so.3 => /lib/x86_64-linux-gnu/libzfs_core.so.3 (0x000070bc5655a000)

Describe how to reproduce the problem

# syntax=docker/dockerfile:latest
FROM ubuntu:24.04 AS build
WORKDIR /
ENV ZFS_VERSION=2.3.0
# https://mywiki.wooledge.org/BashFAQ/105
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]

RUN <<BASH
sed -i 's/archive\.ubuntu\.com/azure.\0/' /etc/apt/sources.list.d/*
apt-get update
# https://github.com/openzfs/zfs/issues/15586
apt-get install -y \
    build-essential autoconf automake libtool gawk \
    fakeroot libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev \
    libaio-dev libattr1-dev libelf-dev \
    python3 python3-dev python3-setuptools python3-cffi libffi-dev \
    python3-packaging debhelper-compat dh-python po-debconf \
    python3-all-dev python3-sphinx \
    dkms dh-dkms libtirpc-dev libcurl4-openssl-dev libpam0g-dev \
    linux-headers-azure git
BASH

RUN <<BASH
# https://github.com/openzfs/zfs/issues/15404
git clone --depth 1 --branch zfs-$ZFS_VERSION https://github.com/openzfs/zfs
cd zfs
# https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html#debian-and-ubuntu
./autogen.sh
./configure
make native-deb-utils
BASH

RUN <<BASH
mkdir /artifacts
cp ../*.deb /artifacts
BASH

FROM scratch
COPY --from=build /artifacts /
docker build -o out .
cd out
sudo apt install ./openzfs-{{lib{uutil,nvpair,zpool,zfs},zfsutils},zfs-{dkms,zed}}*

Include any warning/errors/backtraces from the system logs

@n0099 n0099 added the Type: Defect Incorrect behavior (e.g. crash, hang) label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant