Could you open a ticket on trac for this issue?  Also have you tried to reproduce it on other architectures?<span></span><br><br>On Saturday, June 15, 2013, Stephen Paul Weber  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This may not be integer-simple, but that&#39;s my immediate suspicion.  The following two programs crash with SIGSEGV and core dump when run on my BB10 device after being cross-compiled with my GHC-to-QNXNTO-ARM cross-compiling GHC:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
module Main (main) where<br>
<br>
import Data.Bits<br>
import Data.ByteString<br>
import qualified Data.ByteString.Char8 as C8<br>
<br>
os2ip :: ByteString -&gt; Integer<br>
os2ip = foldl&#39; (\a b -&gt; (256 * a) .|. (fromIntegral b)) 0<br>
<br>
main :: IO ()<br>
main = do<br>
        print $ os2ip x<br>
        where<br>
        x = C8.pack &quot;\NUL\STX\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\NUL\ETX\SOH\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255\255\255\255\255\<u></u>255\255\255&quot;<br>

</blockquote>
<br>
---<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
module Main (main) where<br>
<br>
main :: IO ()<br>
main = print 169821641172389640937095636777<u></u>672117931888945045504182713271<u></u>897430274187839083732143233634<u></u>367563316254925040331580602942<u></u>790529924419031237257992694047<u></u>545188803054325440702792009735<u></u>658578224936744314329623399862<u></u>853427161588994478038000957583<u></u>036049445212750560294647972107<u></u>700330648403394932373528288706<u></u>138101730866129542001812796094<u></u>504052779945357555018210304989<u></u>340497464935845180607042646690<u></u>920787035715174921382511732745<u></u>931975718868480005317353569848<u></u>454618331425749699355019762926<u></u>384123909468814180690222898222<u></u>556785716853422930906736084397<u></u>064171894642825018414586574929<u></u>919999999999999999999999999999<u></u>999999999999999999999999999999<u></u>999999999999999999999999999999<u></u>999<br>

</blockquote>
<br>
---<br>
<br>
So, it seems to be a problem with forcing very large integers.  I&#39;m not sure if this is my integer-simple build, integer-simple in general, or something strange in the way I built GHC.<br>
<br>
Can one of the people working on Android and/or Raspberry Pi ports try this code out and let me know if it works for you?  I&#39;ll try to do a native (non-cross-compile) build of GHC with integer-simple as well, to test this on.<br>

<br>
-- <br>
Stephen Paul Weber, @singpolyma<br>
See &lt;<a href="http://singpolyma.net" target="_blank">http://singpolyma.net</a>&gt; for how I prefer to be contacted<br>
edition right joseph<br>
<br>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a>ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</blockquote>