From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Dave Jones <davej@codemonkey.org.uk>
Cc: Vinson Lee <vlee@twopensource.com>, trinity@vger.kernel.org
Subject: Re: "invalid open call: O_CREAT or O_TMPFILE without mode" errors
Date: Wed, 18 Nov 2015 14:49:30 +0200 [thread overview]
Message-ID: <20151118124930.GA24208@node.shutemov.name> (raw)
In-Reply-To: <20150720145257.GB23521@codemonkey.org.uk>
On Mon, Jul 20, 2015 at 10:52:57AM -0400, Dave Jones wrote:
> On Thu, Jul 16, 2015 at 04:38:21PM -0700, Vinson Lee wrote:
> > Hi.
> >
> > trinity stops running very soon after launch with invalid open call errors.
> >
> > [main] Generating file descriptors
> > [main] Added 104 filenames from /dev
> > [main] Added 70615 filenames from /proc
> > [main] Added 29037 filenames from /sys
> > *** invalid open call: O_CREAT or O_TMPFILE without mode ***:
> > ./trinity terminated
>
> Ugh. Is that some shiny new glibc ?
>
> Probably something like this ?
>
> Totally untested, I don't have a lot of time right now.
There's one more source of such crashes: open_file() in fds/files.c
diff --git a/fds/files.c b/fds/files.c
index 2c7fa1ec1244..997cfea3fa18 100644
--- a/fds/files.c
+++ b/fds/files.c
@@ -321,7 +321,7 @@ retry_flags:
if (RAND_BOOL()) {
randflags = get_o_flags();
- fd = open(filename, flags | randflags | O_NONBLOCK);
+ fd = open(filename, flags | randflags | O_NONBLOCK, 0666);
} else {
fd = open_with_fopen(filename, flags);
fcntl_flags = random_fcntl_setfl_flags();
--
Kirill A. Shutemov
prev parent reply other threads:[~2015-11-18 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 23:38 "invalid open call: O_CREAT or O_TMPFILE without mode" errors Vinson Lee
2015-07-20 14:52 ` Dave Jones
2015-11-18 12:49 ` Kirill A. Shutemov [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151118124930.GA24208@node.shutemov.name \
--to=kirill@shutemov.name \
--cc=davej@codemonkey.org.uk \
--cc=trinity@vger.kernel.org \
--cc=vlee@twopensource.com \
/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.
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 NNTP newsgroup(s).