Actually this bug does not seem to be 64-related at all. It's just easier to reproduce on 64 for some reason (i.e. my std.parallelism unit tests can reproduce it). However, I just tried to use the latest beta in 32-bit mode on real-world code that uses std.parallelism, and it segfaults in pthread_cond_wait, too. This does not happen when I use 2.051, again in 32-bit mode.<br>
<br><div class="gmail_quote">On Mon, Feb 14, 2011 at 9:36 AM, David Simcha <span dir="ltr"><<a href="mailto:dsimcha@gmail.com">dsimcha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Unfortunately I found one more segfault bug that was masked by some of the other bugs I filed last night (i.e. I thought it was a manifestation of the same bug). I'm not 100% sure it's not a bug in my code (it is horribly complicated multithreaded code, after all), though my code works on 32-bit so I'm fairly sure.<br>
<br>
I don't have time to reduce it right now (maybe tonight or tomorrow). In case anyone else wants to try, the second unit test block of std.parallelism (<a href="http://dsource.org/projects/scrapple/browser/trunk/parallelFuture/std_parallelism.d" target="_blank">http://dsource.org/projects/scrapple/browser/trunk/parallelFuture/std_parallelism.d</a>) segfaults, but only on 64-bit builds. This happens sometimes even with -O enabled, but much more often without. According to GDB the segfaults occur in pthread_condition_wait, called from core.sync.condition.wait(). Apparently bogus arguments are getting passed somewhere.<div>
<div></div><div class="h5"><br>
<br>
On 2/14/2011 1:44 AM, Walter Bright wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
more disastrous 64 bit bugs fixed<br>
<br>
<a href="http://ftp.digitalmars.com/dmd1beta.zip" target="_blank">http://ftp.digitalmars.com/dmd1beta.zip</a><br>
<a href="http://ftp.digitalmars.com/dmd2beta.zip" target="_blank">http://ftp.digitalmars.com/dmd2beta.zip</a><br>
_______________________________________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com" target="_blank">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a><br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>