From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: cmogstored-public@bogomips.org Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9A1F21F5AF for ; Mon, 9 Mar 2015 15:19:00 +0000 (UTC) Received: by labge10 with SMTP id ge10so4542327lab.7 for ; Mon, 09 Mar 2015 08:18:59 -0700 (PDT) X-Received: by 10.112.63.165 with SMTP id h5mr25979665lbs.16.1425914338845; Mon, 09 Mar 2015 08:18:58 -0700 (PDT) Received: from localhost ([91.225.202.37]) by mx.google.com with ESMTPSA id mm7sm876306lbb.30.2015.03.09.08.18.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 08:18:57 -0700 (PDT) Sender: Mykola Golub Date: Mon, 9 Mar 2015 17:18:55 +0200 From: Mykola Golub To: cmogstored-public@bogomips.org Subject: FreeBSD: sleeper using ppoll does not sleep forever Message-ID: <20150309151851.GC2195@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: Hi, I have been observing the following assertion failure when starting cmogstored on recent versions of FreeBSD: Assertion failed: (0 && "init_once did not get cancelled"), function init_once, file mnt.c, line 139. On these versions ppoll is available and the crush is observed only when built with HAVE_PPOLL. According to ktrace, ppoll (called by sleeper) returns immediately with EINTR: 86352 cmogstored CALL ppoll(0,0,0,0x63dc28) 86352 cmogstored CALL thr_kill(0x18f47,SIG 32) 86352 cmogstored RET thr_kill 0 86352 cmogstored RET ppoll -1 errno 4 Interrupted system call 86352 cmogstored PSIG SIG 32 caught handler=0x800867f30 mask=0x7ffefeff code=SI_LWP 86352 cmogstored CALL _umtx_op(0x801406800,UMTX_OP_WAIT,0x18f47,0,0) 86352 cmogstored CALL sigreturn(0x7fffdfffdb40) 86352 cmogstored RET sigreturn JUSTRETURN 86352 cmogstored CALL write(0x2,0x7fffdfffd900,0x66) 86352 cmogstored GIO fd 2 wrote 102 bytes "Assertion failed: (0 && "init_once did not get cancelled"), function init_once, file mnt.c, line 13\ 9. " I have workarounded this by building without HAVE_PPOLL. -- Mykola Golub