[zfs-devel] Segmentation fault during zfs receive

J. Roeleveld joost at antarean.org
Sun Mar 25 04:25:33 EDT 2018

NOTE: Resending to devel-list as user-list doesn't seem to work.

Hi all,

I am getting consistent segmentation faults when trying to send/receive 
incremental snapshots to a different host.
The issue occurs when the filesystem has sub-filesystems:


Both have been succesfully sync'd to the other host. But when trying to do an 
incremental on "zdata/files/homes", the receive-process fails with a 
segmentation fault.

Using gdb and the core-file, I got the following stack-trace:

# gdb /sbin/zfs /home/admin/core 
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /sbin/zfs...Reading symbols from /usr/lib64/debug//sbin/
zfs.debug...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 27725]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `zfs receive -v -F zartdata/san1/zdata/files/homes'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f48f5565476 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f48f5565476 in strlen () from /lib64/libc.so.6
#1  0x00007f48f5f3a952 in entity_namecheck () from /lib64/libzpool.so.2
#2  0x00007f48f5cbedca in zfs_validate_name () from /lib64/libzfs.so.2
#3  0x00007f48f5cbf69c in zfs_open () from /lib64/libzfs.so.2
#4  0x00007f48f5ce597a in sa_enable_share () from /lib64/libzfs.so.2
#5  0x00007f48f5cce04a in zfs_share_proto () from /lib64/libzfs.so.2
#6  0x00007f48f5cbcfa5 in changelist_postfix () from /lib64/libzfs.so.2
#7  0x00007f48f5ce083c in zfs_receive () from /lib64/libzfs.so.2
#8  0x0000561ca5c7fce9 in zfs_do_receive ()
#9  0x0000561ca5c77ce5 in main ()


I am not certain how to debug this further. 

I am using ZFS version 0.7.6 on the target host.
The source is running 0.7.5.
Both are running Gentoo.

I am currently not able to upgrade ZFS on the source, this is planned for next 
month. Are there known incompatibilities that can be causing this?

Many thanks,


More information about the zfs-devel mailing list