fio segfault when running with interception library libpil4dfs.so

Description

when run fio with libpil4dfs.so, it seems the fio will report error, even with D_IL_COMPATIBLE=1 set.

LD_PRELOAD=/usr/local/daos/lib64/libpil4dfs.so /home/zj/fio/fio --name=daos-test --ioengine=libaio --rw=write --bs=256k --size=1G  --directory=/tmp/daos_test2 --numjobs=32 --iodepth=32  --direct=1 --buffered=0 --randrepeat=0 --runtime=120 --time_based=1 --group_reporting
daos-test: (g=0): rw=write, bs=(R) 256KiB-256KiB, (W) 256KiB-256KiB, (T) 256KiB-256KiB, ioengine=libaio, iodepth=32
...
fio-3.38-4-gcd56
Starting 32 processes
fio: pid=2047384, err=22/file:ioengines.c:506, func=io commit, error=Invalid argument
fio: pid=2047383, err=22/file:ioengines.c:506, func=io commit, error=Invalid argument
client ERR  src/client/api/event.c:886 daos_eq_destroy() daos_eq_lookup() failed: DER_NONEXIST(-1005): 'The specified entity does not exist'
[waikikibeach45:2047384:0:2047384] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x7fedcfc68ff8)
client ERR  src/client/api/event.c:886 daos_eq_destroy() daos_eq_lookup() failed: DER_NONEXIST(-1005): 'The specified entity does not exist'
==== backtrace (tid:2047384) ====
 0  /usr/local/daos/prereq/release/ucx/lib64/libucs.so.0(ucs_handle_error+0x2e4) [0x7fedd0689204]
 1  /usr/local/daos/prereq/release/ucx/lib64/libucs.so.0(+0x303ff) [0x7fedd06893ff]
 2  /usr/local/daos/prereq/release/ucx/lib64/libucs.so.0(+0x306e6) [0x7fedd06896e6]
 3  /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fedd2042520]
 4  /lib/x86_64-linux-gnu/libc.so.6(free+0x1e) [0x7fedd20a53fe]
 5  /usr/local/daos/lib64/libpil4dfs.so(io_destroy+0x46) [0x7fedd33cbea6]
 6  /home/zj/fio/fio(+0xad201) [0x55c49c510201]
 7  /home/zj/fio/fio(close_ioengine+0x2a) [0x55c49c492e6a]
 8  /home/zj/fio/fio(+0x81368) [0x55c49c4e4368]
 9  /home/zj/fio/fio(+0x84e58) [0x55c49c4e7e58]
10  /home/zj/fio/fio(fio_backend+0x108) [0x55c49c4e7f68]
11  /home/zj/fio/fio(main+0x9b) [0x55c49c48381b]
12  /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fedd2029d90]
13  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fedd2029e40]
14  /home/zj/fio/fio(_start+0x25) [0x55c49c483845]

Activity

Show:

LEI HUANGJanuary 29, 2025 at 2:45 PM

was just landed to release/2.6.

LEI HUANGJanuary 28, 2025 at 9:13 PM

PR for 2.6 finished all tests in CI without issues. Waiting for reviews.

LEI HUANGJanuary 24, 2025 at 4:59 PM

PR for release/2.6 was just created.

LEI HUANGJanuary 21, 2025 at 8:01 PM

Shall we backport this PR to release/2.6? It is a simple PR for libpil4dfs. Thank you!

LEI HUANGDecember 5, 2024 at 8:54 PM

The PR was just landed to master. We will create a backport to release/2.6 after it is reopen and we get the approval.

Fixed

Details

Assignee

Reporter

Priority

Labels

Components

Patch URL

Story Points

Customer Impact

Medium

Bug Exposure

3-Medium

Bug Source

Product Bug

Number of Occurrences

1

Approved to Merge

Created November 13, 2024 at 8:46 AM
Updated January 29, 2025 at 2:45 PM
Resolved January 29, 2025 at 2:45 PM