Re: [pure-lang-users] Segfault using lambda
Status: Beta
Brought to you by:
agraef
|
From: Albert G. <Dr....@t-...> - 2008-05-02 04:02:16
|
> Chris Double wrote: >> I get a segfault using current SVN (r10) with the following: >> >>> let y=(\a b -> a+b);y 1 5; >> Am I misunderstanding how let works? > > No, it's a bug. Apparently the closure gets garbage-collected while it's > still bound by the variable. I think I already know where that happens. Ok, that one is now fixed, too. This was a bit trickier than expected, since not the runtime representation of the closure was garbage-collected too early, but the executable code associated with it, causing wrong machine code to be executed. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |