From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13538 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 16:51:03 -0600 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: References: <20181207154419.GD23599@brightrain.aerifal.cx> <20181207165217.GE23599@brightrain.aerifal.cx> <54b4d253-1660-3207-5d59-f23f1c25b2b9@adelielinux.org> <20181207182650.GF23599@brightrain.aerifal.cx> <03a5f237-87cd-5580-4148-a29fa22d3ef0@adelielinux.org> <20181207203532.GA2554@voyager> 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="eWkeozv5aGAwmLyG2IIlUnD4kXGnpqMRB" X-Trace: blaine.gmane.org 1544222871 24828 195.159.176.226 (7 Dec 2018 22:47:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2018 22:47:51 +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-13554-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 07 23:47:47 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 1gVOuR-0006N7-37 for gllmg-musl@m.gmane.org; Fri, 07 Dec 2018 23:47:47 +0100 Original-Received: (qmail 11667 invoked by uid 550); 7 Dec 2018 22:49:56 -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 11649 invoked from network); 7 Dec 2018 22:49:55 -0000 Openpgp: preference=signencrypt In-Reply-To: <20181207203532.GA2554@voyager> Xref: news.gmane.org gmane.linux.lib.musl.general:13538 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eWkeozv5aGAwmLyG2IIlUnD4kXGnpqMRB Content-Type: multipart/mixed; boundary="VOXvyzebjMBPR8PHgn05TQI55NTItZo1z"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: 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> <03a5f237-87cd-5580-4148-a29fa22d3ef0@adelielinux.org> <20181207203532.GA2554@voyager> In-Reply-To: <20181207203532.GA2554@voyager> --VOXvyzebjMBPR8PHgn05TQI55NTItZo1z Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 12/07/18 14:35, Markus Wichmann wrote: > On Fri, Dec 07, 2018 at 01:13:44PM -0600, A. Wilcox wrote: >> So, my best theory is that running inside a debugger (gdb, valgrind) >> makes it slow enough that it no longer races. >=20 > Two ideas to investigate further. 1: Produce a coredump ("ulimit -c > unlimited"). That won't interfere with timing, but I have no clue if > coredumps work with multithreading. Core was generated by `./aioWrite '. Program terminated with signal SIGSEGV, Segmentation fault. #0 __cp_end () at src/thread/powerpc64/syscall_cp.s:32 32 src/thread/powerpc64/syscall_cp.s: No such file or directory. [Current thread is 1 (LWP 5507)] (gdb) bt #0 __cp_end () at src/thread/powerpc64/syscall_cp.s:32 #1 0x00003fffa768f2a4 in __syscall_cp_c (nr=3D180, u=3D512512, v=3D0, w=3D= 0, x=3D0, y=3D0, z=3D0) at src/thread/pthread_cancel.c:35 #2 0x00003fffa768e008 in __syscall_cp (nr=3D, u=3D, v=3D, w=3D, x=3D, y=3D, z=3D) at src/thread/__syscall_cp.c:20= #3 0x00003fffa76969f4 in pwrite (fd=3D, buf=3D, size=3D, ofs=3D) at src/unistd/pwrite= =2Ec:7 #4 0x00003fffa763eddc in io_thread_func (ctx=3D) at src/aio/aio.c:240 #5 0x00003fffa768f76c in start (p=3D0x3fffa76e8af8) at src/thread/pthread_create.c:147 #6 0x00003fffa769b608 in __clone () at src/thread/powerpc64/clone.s:43 (gdb) thread 2 [Switching to thread 2 (LWP 5506)] #0 0x00003fffa7637144 in __syscall4 (d=3D0, c=3D-1, b=3D128, a=3D512, n=3D= 221) at =2E/arch/powerpc64/syscall_arch.h:54 54 ./arch/powerpc64/syscall_arch.h: No such file or directory. (gdb) bt #0 0x00003fffa7637144 in __syscall4 (d=3D0, c=3D-1, b=3D128, a=3D512, n=3D= 221) at =2E/arch/powerpc64/syscall_arch.h:54 #1 __wait (addr=3D0x200, waiters=3D0x0, val=3D, priv=3D) at src/thread/__wait.c:13 #2 0x00003fffa763f07c in aio_cancel (fd=3D, cb=3D0x3fffffafd2b8) at src/aio/aio.c:356 #3 0x000000012034c044 in main () 221 is SYS_futex. Wow, that looks wrong. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --VOXvyzebjMBPR8PHgn05TQI55NTItZo1z-- --eWkeozv5aGAwmLyG2IIlUnD4kXGnpqMRB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAlwK+VcACgkQyynLUZIr nRQaQhAAs9gQqPpEpJ5A0ymUeFK2D6U4wVYyjW7J1f2iSxekVO0eMk/p7VQf5xkI MYGcpmh8oX71Dcjh96qAT6THS/k5S83L056UrH86T3JdXb1YwhCK5MRmFoEOhiGs C17R2PokqQrF72KXuKs0K4+CtSFz3WvurJaoPTusqfl7fAzmTMsL4lglhiJM//U7 /vohPP9xACwAJ3e38Aax/rsrp2d6/3q6L1WvPYLLAr9LqxnA+ERSOPw9rmKk45C1 ga9yRzAHziKEbcmcEgzx+STaBbOOQ7Fsf/5K3ozY4sqhdw1yhEvFqYsvQORHHHA2 2ZvFXH23Q0Lu4sDtrH/qFJoKDXTJzF0FABwXKQVurRkssGJTWLiytbFW6vsw3+ci WygXGK14WN0w4/X0YonmS+9H/UjvYXFooyBn9s4bKTJnQG4aBqw1IYmT13ECnlq3 H0ocyD8GDgMx/1M5LfacKP8hFPycSEDyxi5LXaaLP3gHKN3QuVXWgyoZ1oGhvcpt XsdqwMXIKVOQGPUkozryKyId5tfCO712Oy9SvViXrvlGhpjhzOI2oQB3+oDOJeg2 3XBNArAmwIDf0J7JRQOUYD8Twwtsqz9lYyJkWLqWVdi2ikLq6sqJPrflin42S93s hZDjUGtmCI1j0vm4Dxw+T4cQDuFXKRjy/MMX0fiioHuoYQJbc20= =WC8W -----END PGP SIGNATURE----- --eWkeozv5aGAwmLyG2IIlUnD4kXGnpqMRB--