<div dir="auto">Does bytestring turn off some optimization flags (e.g., -fno-full-laziness) to make this work?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 5, 2018 8:48 AM, "Ben Franksen" <<a href="mailto:ben.franksen@online.de">ben.franksen@online.de</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 04.03.2018 um 22:48 schrieb Ben Gamari:<br>
<div class="quoted-text">>> Ben Franksen <<a href="mailto:ben.franksen@online.de">ben.franksen@online.de</a>> writes:<br>
>> Anyway. Would you perchance have any idea what could possibly make a<br>
>> program work fine with the first version of linesPS and crash with the<br>
>> second one? I find this pretty scary and would like to understand it.<br>
>><br>
> Indeed that is quite scary. The cause is not at all obvious. Do you have<br>
> an isolated reproducer that you could share?<br>
<br>
</div>Sharing is no problem, this happened with darcs, which notably has its<br>
own share of dark and dangerous corners. I have considered trying to<br>
cook this down to some small example but my hopes of succeeding with<br>
this are almost nil. As I said, I have no evidence whatsoever that the<br>
problem has even anything to do with that-what-must-not-be-named, it's<br>
been purely a guess.<br>
<br>
FWIW, I re-checked that the behavior is reproducible. I have uploaded a<br>
clone of darcs-screened with my patch applied on top to<br>
<a href="https://hub.darcs.net/bf/darcs-screened" rel="noreferrer" target="_blank">https://hub.darcs.net/bf/<wbr>darcs-screened</a><br>
To reproduce the crash, cabal configure with --enable-tests, then do<br>
./dist...whatever...darcs-test --shell=no<br>
Unpull the last patch and everything works.<br>
<div class="elided-text"><br>
Cheers<br>
Ben<br>
<br>
______________________________<wbr>_________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/libraries</a><br>
</div></blockquote></div><br></div>