From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13531 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: aio_cancel segmentation fault for in progress write requests Date: Fri, 7 Dec 2018 13:13:44 -0600 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <03a5f237-87cd-5580-4148-a29fa22d3ef0@adelielinux.org> References: <20181207154419.GD23599@brightrain.aerifal.cx> <20181207165217.GE23599@brightrain.aerifal.cx> <54b4d253-1660-3207-5d59-f23f1c25b2b9@adelielinux.org> <20181207182650.GF23599@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gf1uqcfvQ1DFJH8MOjSmKV5FSzfyP4u1J" X-Trace: blaine.gmane.org 1544209845 3655 195.159.176.226 (7 Dec 2018 19:10:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2018 19:10:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: musl@lists.openwall.com Original-X-From: musl-return-13547-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 07 20:10:41 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gVLWJ-0000pr-9I for gllmg-musl@m.gmane.org; Fri, 07 Dec 2018 20:10:39 +0100 Original-Received: (qmail 14186 invoked by uid 550); 7 Dec 2018 19:12:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 14168 invoked from network); 7 Dec 2018 19:12:47 -0000 Openpgp: preference=signencrypt In-Reply-To: <20181207182650.GF23599@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13531 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gf1uqcfvQ1DFJH8MOjSmKV5FSzfyP4u1J Content-Type: multipart/mixed; boundary="Piop6KD8eQnyCahMMbSUcBen1eYPHYn2j"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: <03a5f237-87cd-5580-4148-a29fa22d3ef0@adelielinux.org> Subject: Re: [musl] aio_cancel segmentation fault for in progress write requests References: <20181207154419.GD23599@brightrain.aerifal.cx> <20181207165217.GE23599@brightrain.aerifal.cx> <54b4d253-1660-3207-5d59-f23f1c25b2b9@adelielinux.org> <20181207182650.GF23599@brightrain.aerifal.cx> In-Reply-To: <20181207182650.GF23599@brightrain.aerifal.cx> --Piop6KD8eQnyCahMMbSUcBen1eYPHYn2j Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Okay, it's a race of some kind: awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so musl libc (powerpc64) Version 1.1.20-git-156-gb1c58cb9 Dynamic Program Loader Usage: lib/libc.so [options] [--] pathname [args] awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite aio_write/1-1.c cancelationStatus : 2 Test PASSED awilcox on gwyn [pts/7 Fri 7 13:12] musl: lib/libc.so ~/aioWrite zsh: segmentation fault lib/libc.so ~/aioWrite So, my best theory is that running inside a debugger (gdb, valgrind) makes it slow enough that it no longer races. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --Piop6KD8eQnyCahMMbSUcBen1eYPHYn2j-- --gf1uqcfvQ1DFJH8MOjSmKV5FSzfyP4u1J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAlwKxmgACgkQyynLUZIr nRTtFQ//eKbWCiBHqobZ2J3s7MrIM8rX0Xd1rjafYjOfCii/2Anu/TzTQKcN3M6J SyRx8c7hPO+OGzXn6jhNXsYgr4LbT9iie8d+XRzzLeSWlTb9LX0SFBRH0pA4g0pN Agxfpv15r5n41LJ+hX5UC7K1Z4NrF6bcQxaw+tsjUnSCrvlUGBILBuUYkXBq4EXn DSvqXZ3y5QpUMuva+ysF3sF2yef4YqndYaOyVCub1C+tzHWp0/kdcaNDQnD70u7r xs4NIv1QASI33ljn3vmPeHPLjDFJNTG4deII0kLjsy6Fcyf+yG7XOToD61hvkajh oG5IMAoxJWMPwzPDFzhmRADVkNloYOOomMzjEs0deh9Jpj5GtOYzg4qgGiUCHFp5 0qhQqT8993DzB/Ho20c3mN3xS+Z1I8StGijSoeDxG9UIhpVTmHbX5lw0wWhdNEfR 6OYXqiDc5wrQjqqpv8npP09Th3LCBapznnDynXHVIeESYiAAVtPTy0zivsFDaKnZ DT5j6fZJJX5Oiz4tuqZftwcu8qZxkQlxEYiLunAxfdn3kJU4tGKEiz9chQWVSs00 2D+/Cr2X54Ox6ko/OaXZR/TRcmj1XUWqrO/b2W42bmnPoKv7q+TdTnWpuWOF0pK5 jw3eF+GoAMQCxMz81lgcxWFrenvaFcsaLJcbkwiJOFNtSezZJlA= =3kA9 -----END PGP SIGNATURE----- --gf1uqcfvQ1DFJH8MOjSmKV5FSzfyP4u1J--