Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2009 03:06:49 -0600
From:      "James R. Van Artsdalen" <james-freebsd-fs2@jrv.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: zfs send -R dumps core on -CURRENT
Message-ID:  <49AA5029.3080200@jrv.org>
In-Reply-To: <49A9DEC2.90701@jrv.org>
References:  <49A9DEC2.90701@jrv.org>

next in thread | previous in thread | raw e-mail | index | archive | help
James R. Van Artsdalen wrote:
> svn r189099, amd64
>
> /# zfs send -Rv bigtex@now > x
> Segmentation fault: 11 (core dumped)
> /#
>   

This one is over my head.  It crashes almost immediately while
traversing the properties for the first element to be sent, presumably
"bigtex" and not yet a child filesystem.

These properties are processed by zfs_name_to_prop OK:
"mountpoint","used","quota","reservation","compressratio","usedbysnapshots","usedbydataset","usedbyrefreservation","usedbychildren","available","referenced","creation"

Then send_iterate_prop() does zfs_name_to_prop("createtxg") which
returns ZPROP_INVAL (-1).  zfs_prop_readonly crashes on the arg of -1.

        while ((elem = nvlist_next_nvpair(zhp->zfs_props, elem)) != NULL) {
            char *propname = nvpair_name(elem);
=>          zfs_prop_t prop = zfs_name_to_prop(propname);
            nvlist_t *propnv;
    
=>          if (!zfs_prop_user(propname) && zfs_prop_readonly(prop))





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49AA5029.3080200>