Re: zfs send -R segfault, anyone else?

From: Thomas Backman <serenity_at_exscape.org>
Date: Fri, 15 May 2009 11:30:22 +0200
On May 15, 2009, at 12:28 AM, James R. Van Artsdalen wrote:

> Thomas Backman wrote:
>> [root_at_chaos ~]# zfs send -R -I $OLD tank_at_$NOW > diff-snap
>> [root_at_chaos ~]# cat diff-snap | zfs recv -Fvd slave
>> Segmentation fault: 11 (core dumped)
>>
>> Same kinda backtrace, but what's up with strcmp()?
>> I suppose the issue stems from libzfs, and is not within libc:
>
> Different problem  The SIGSEGV is happening in strcmp because it is
> called with strcmp(0,0)
> and tries to dereference address -4 (probably another bug itself).
>
> This hack gets around the issue but someone familiar with this needs  
> to
> decide the correct action.
>
> The first change is actually unrelated (a sorry attempt at fixing the
> previous zfs send bug).
>
> The last change may be unnecessary as that case may never happen  
> unless
> the pool can be renamed?
>
> [... patch ...]

Thanks! This list is pretty impressive. :)
I can't validate how correct the fix is, considering my lacking  
knowledge in C (I know the basics, but kernel/related programming? no  
way!), but I CAN say that it appears to work just fine!

Regards,
Thomas
Received on Fri May 15 2009 - 07:31:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC