mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Arkadiusz Sienkiewicz <sienkiewiczarkadiusz@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: aio_cancel segmentation fault for in progress write requests
Date: Fri, 7 Dec 2018 11:52:17 -0500	[thread overview]
Message-ID: <20181207165217.GE23599@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAO=yjR1xdDHijaCAv0UpCKZCXBmyL_21SGBOQjQd+Z9dmjb2aw@mail.gmail.com>

On Fri, Dec 07, 2018 at 05:04:07PM +0100, Arkadiusz Sienkiewicz wrote:
> Ok, maybe stacktrace is misleading due to some problem in GDB. However,

It's not just the backtrace that's misleading, but also the point of
crash. The point gdb has stopped at is prior to the crash. However...

> that doesn't explain why I'm getting segmentation fault when I execute test
> program without gdb. Also commenting aio_cancel line will "fix" seg fault,
> so that function is most probable culprit.

it seems from your output, which lacks the message:

    aio_write/1-1.c cancelationStatus : 2

that the crash happened before the printf was reached. It's not clear
to me what could have caused it though. Calling close also performs
the equivalent of aio_cancel on the fd. Can you try running under
strace (with -f option) or anything else that might give further clues
as to where/why it crashed? valgrind might also be a good idea.

Rich


  parent reply	other threads:[~2018-12-07 16:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-07 12:52 Arkadiusz Sienkiewicz
2018-12-07 15:44 ` Rich Felker
2018-12-07 16:04   ` Arkadiusz Sienkiewicz
2018-12-07 16:52     ` Orivej Desh
2018-12-07 16:52     ` Rich Felker [this message]
2018-12-07 17:31       ` A. Wilcox
2018-12-07 18:26         ` Rich Felker
2018-12-07 19:05           ` A. Wilcox
2018-12-07 20:07             ` Rich Felker
2018-12-07 19:13           ` A. Wilcox
2018-12-07 20:21             ` Rich Felker
2018-12-07 20:35             ` Markus Wichmann
2018-12-07 21:12               ` Rich Felker
2018-12-07 22:51               ` A. Wilcox
2018-12-07 23:50                 ` Rich Felker
2018-12-07 20:06           ` Florian Weimer
2018-12-07 20:14             ` Rich Felker
2018-12-08 16:18               ` Florian Weimer
2018-12-10  9:05                 ` Arkadiusz Sienkiewicz
2018-12-12  0:36                   ` Rich Felker
2018-12-17 14:21                     ` Arkadiusz Sienkiewicz
2018-12-17 17:29                       ` Rich Felker

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=20181207165217.GE23599@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=sienkiewiczarkadiusz@gmail.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).