From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Watkins Subject: Re: Assertion error in librados Date: Tue, 25 Feb 2014 11:26:15 -0800 Message-ID: References: <20140225144900.GA30739@philipgian-mac> <20140225155838.GB30739@philipgian-mac> <530CD824.2000107@inktank.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-qc0-f172.google.com ([209.85.216.172]:35189 "EHLO mail-qc0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132AbaBYT0Q (ORCPT ); Tue, 25 Feb 2014 14:26:16 -0500 Received: by mail-qc0-f172.google.com with SMTP id w7so9336726qcr.31 for ; Tue, 25 Feb 2014 11:26:15 -0800 (PST) In-Reply-To: <530CD824.2000107@inktank.com> Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Josh Durgin Cc: Filippos Giannakos , Gregory Farnum , "ceph-devel@vger.kernel.org" , synnefo-devel@googlegroups.com On Tue, Feb 25, 2014 at 9:51 AM, Josh Durgin wrote: > That's a good idea. This particular assert in a Mutex is almost always > a use-after-free of the Mutex or structure containing it though. I think that a use-after-free will also throw an EINVAL (assuming it isn't a pathalogical case) as pthread_mutex_lock checks an initialization magic variable. I think that particular mutex isn't initialized with flags that would cause any of the other possible return values.