[Bug 271927] benchmarks/fio: fio 3.35 segfaults with external I/O engine
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jun 2023 22:33:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271927 Bug ID: 271927 Summary: benchmarks/fio: fio 3.35 segfaults with external I/O engine Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: krion@FreeBSD.org Reporter: asomers@FreeBSD.org Flags: maintainer-feedback?(krion@FreeBSD.org) Assignee: krion@FreeBSD.org When using the external I/O engine, the latest fio-3.35 package from the official package server immediately segfaults on 14.0-CURRENT amd64. But it does NOT segfault on 13-STABLE, or if I rebuild fio-3.35 locally either from ports, with Poudriere, or directly from fio's git repo. I am not well-equipped to determine the difference between the official package and the locally built one, but I can do any experiments that the maintainer suggests. Steps to Reproduce on 14.0-CURRENT amd64 ======================================== pkg install -y c-blosc isa-l fio fusefs-libs llvm pkgconf fetch https://sh.rustup.rs -o rustup.sh sh rustup.sh -y --profile=minimal $HOME/.cargo/bin/rustup toolchain install nightly sysctl vfs.aio.enable_unsafe=1 # Not sure if this part is necessary . $HOME/.cargo/env git clone git@github.com:bfffs/bfffs.git cd bfffs cargo +nightly build --all-features --all truncate -s 1g /tmp/bfffs.img cargo +nightly run --all-features --bin bfffs -- pool create testpool /tmp/bfffs.img fio bfffs-fio/data/ci.fio Output ====== fio_test_file: (g=0): rw=rw, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB, ioengine=bfffs, iodepth=4 fio-3.35 Starting 1 thread fish: Job 1, 'fio bfffs-fio/data/ci.fio' terminated by signal SIGSEGV (Address boundary error) Analysis ======== The segfault happens in the ioengine's "init" method, where the thread_data's ".eo" field is NULL. So it doesn't seem timing-related. And it's 100% reproducible. And every alternative way I can find to rebuild fio fixes the crash, so it seems like there's something wrong with the package. -- You are receiving this mail because: You are the assignee for the bug.