Open tonyhutter opened 8 months ago
I did a test on FreeBSD:
FreeBSD version: FreeBSD 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023
Zpool version: zpool version zfs-2.2.0-FreeBSD_g95785196f zfs-kmod-2.2.0-FreeBSD_g95785196f
running this command gives me the same result: segfault.
I've run this through gdb, and se segfault happens within zpool_find_vdev in this line: https://github.com/openzfs/zfs/blob/04bae5ec95f7273105237159a882d5b72ec2b998/lib/libzfs/libzfs_pool.c#L3056
`GI_____strtoul_l_internal (nptr=0x0, endptr=0x7fffffff8250, base=0, group=0, bin_cst=true, loc=0x7ffff7da33c0 <_nl_global_locale>) at ../stdlib/strtol_l.c:238 238 { (gdb) s 252 struct locale_data current = loc->__locales[LC_NUMERIC]; (gdb) s 264 if (__glibc_unlikely (group)) (gdb) s 295 if (base < 0 || base == 1 || base > 36) (gdb) s 304 while (ISSPACE (s)) (gdb) print s $4 = 0x0 (gdb) s
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7c197ff in __GI_____strtoul_l_internal (nptr=0x0, endptr=0x7fffffff8250, base=0, group=
The ISSPACE receives 0x0.
System information
Describe the problem you're observing
If you pass two vdevs to
zpool get
, it will segfault. Both vdevs need to be part of the pool.Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs