[Haskell-cafe] hmatrix's fitModel function crashes ghc(i)

Vivian McPhail haskell.vivian.mcphail at gmail.com
Sun Nov 7 21:57:59 EST 2010

On 7 November 2010 15:19, Vivian McPhail
<haskell.vivian.mcphail at gmail.com>wrote:

> Message: 29
>> Date: Sat, 6 Nov 2010 13:22:10 +0100
>> From: Roel van Dijk <vandijk.roel at gmail.com>
>> Subject: [Haskell-cafe] hmatrix's fitModel function crashes ghc(i)
>> To: Haskell Caf? <haskell-cafe at haskell.org>
>> Message-ID:
>>        <AANLkTim5eGSL_BZ+RUv-=d-Z3DB65Sc8o=cKQLTcyKT4 at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>> Hello,
>> I would like to use hmatrix to do some function fitting with the
>> Levenberg Marquardt algorithm. As an example I would like to fit the
>> very simple function "f x = a*x + b" on some data points. The problem
>> is that executing the 'fitModel' function crashes GHC(i) with a
>> segmentation fault. This makes debugging difficult. Can anyone spot
>> what I am doing wrong? Given all the lists of Double's it seems very
>> easy to make an error regarding the number of arguments with the model
>> function or the derivative.
> I think the problem is with linking static data in GHCi on x86_64.
> Hope this helps.  I seem to recall there might be a ghc trac ticket related
> to this but a quick search turned up nothing.
> Here's the ticket:


They aim to fix the problem (with fPIC) by ghc 7.2.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101107/c052cb65/attachment.html

More information about the Haskell-Cafe mailing list