Date: Wed, 18 Mar 2015 19:58:59 +0800 From: Erich Dollansky <erichsfreebsdlist@alogt.com> To: "Molly (Dev Lists)" <mollydevlists@icloud.com> Cc: freebsd-arm@freebsd.org Subject: Re: pthread_create() munging malloc()ed memory? (malloc(), threads, and static linking) [RPI-B+, 10.1] Message-ID: <20150318195859.16ac515a@B85M-HD3-0.alogt.com> In-Reply-To: <6580F1DF-3A9F-42C1-A27F-75546FD73829@icloud.com> References: <6580F1DF-3A9F-42C1-A27F-75546FD73829@icloud.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Tue, 17 Mar 2015 23:31:52 -0500 "Molly (Dev Lists)" <mollydevlists@icloud.com> wrote: > I'm encountering some strange behavior where memory passed as an it is really strange. > Any ideas/suggestions? > > > This is running on a Raspberry Pi B+ using the 10.1-RELEASE image > (FreeBSD 10.1-RELEASE #0 r274401). clang is version 3.4.1 (the > version included in the base system). > I did some tests on the same hardware with a older r272167 revision and came to the same result. I found after some time that the error is not cause by the creation of the thread but by joining it. If you leave the join away, it works as expected. The error also comes back after 51 runs. I also ran your program on an amd64 without any problems. Erich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150318195859.16ac515a>