|
RE: calling back to Haskell from several C threads: msg#00090lang.haskell.glasgow.bugs
On 14 April 2005 20:52, Simon Marlow wrote: > On 12 April 2005 15:32, Bulat Ziganshin wrote: > >> attached program crashes under GHC-6.2.1/mingw32 and GHC-6.4/mingw32 >> >> algorithm: >> >> 1. we create several threads with forkOS >> 2. each thread calls C function >> 3. C function in each thread made several calls back to Haskell >> 4. called Haskell functions do some work with memory >> 5. all these threads ended because C functions returns >> 6. we create another several threads... >> >> after repeating these steps several times program crashes > > That shouldn't happen. Thanks for sending the test program, I'll > take a look next week. It's a bug, thanks for the report. I've fixed it in CVS; if you can build from source then grab the 6.4 branch from CVS or use a snapshot from tonight's build. Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1183455 ] Possible error using concurrency, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-1186431 ] mkGraph Stack Overflow, SourceForge.net |
| Previous by Thread: | RE: calling back to Haskell from several C threads, Simon Marlow |
| Next by Thread: | [ ghc-Bugs-1183455 ] Possible error using concurrency, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |