From: Mykola Golub <trociny@FreeBSD.org>
To: cmogstored-public@bogomips.org
Subject: FreeBSD: sleeper using ppoll does not sleep forever
Date: Mon, 9 Mar 2015 17:18:55 +0200 [thread overview]
Message-ID: <20150309151851.GC2195@gmail.com> (raw)
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
next reply other threads:[~2015-03-09 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-09 15:18 Mykola Golub [this message]
2015-03-09 20:35 ` FreeBSD: sleeper using ppoll does not sleep forever Eric Wong
2015-03-09 20:49 ` [PATCH 1/2] Fix assertion failure during startup Eric Wong
2015-03-09 20:49 ` [PATCH 2/2] avoid relying on ppoll as a cancellation point Eric Wong
2015-03-10 19:23 ` FreeBSD: sleeper using ppoll does not sleep forever Mykola Golub
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/cmogstored/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150309151851.GC2195@gmail.com \
--to=trociny@freebsd.org \
--cc=cmogstored-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/cmogstored.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).