On 05/24/12 11:49 AM, Kern Sibbald wrote:
> On 05/24/2012 09:06 AM, Simone Caronni wrote:
>> Thanks,
>>
>> disabling xattr in the FileSet solves the problem. I discovered it
>> happens only on one system, and that system has btrfs as its
>> underlying filesystem instead of ext4.
>> Has Bacula been tested with such a filesystem?
> I doubt that Bacula with xattrs was ever tested on a
> btrfs file seystem.  I have asked the developer to comment on
> this.
>
Nope never tested there by me as I live on Solaris and there we have ZFS.
I also was under the impression that BTRFS was still somewhat alpha/beta
quality but then again Fedora seems to have switched to it.


>> Is there anything I can do on helping debugging this?
>
> Yes, I am sure, but I would rather have the community developer
> (Marco) work with you.
>
I think I already nailed it, simple fix could it be that on btrfs we receive
a ENOENT error on the lgetxattr for a file ? If so we trigger a code path
that we never tested. An extra memset makes sure the value pointer
is NULL and no longer is freed. I'm bitten by the Bacula allocator who puts
0x55555 in the pointer. Not to bad this time as we trigger a nice bug.

>> I don't have a btrfs system at hand but I can setup one.
> Let's see what Marco says.
Being on btrfs is probably just a coincidence.

>>
>> Before removing the compilation flags I would pursue other directions
>> as those are the default options nto which the whole distribution is
>> compiled.
>
> Are you a distribution packager?  If so, what distribution?
>
> Unfortunately, we cannot handle bugs (this clearly seems to be a bug)
> by email, so please open a bug report on this and include all the 
> pertinent
> info from the emails.
>
I'll assign the bug to me in a moment and attach a proposed patch for 
you to test.

Marco

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to