|
[ ghc-Bugs-1035575 ] Parallel array comprehension related crash: msg#00056lang.haskell.glasgow.bugs
Bugs item #1035575, was opened at 2004-09-27 19:33 Message generated for change (Comment added) made by ekarttun You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1035575&group_id=8032 Category: Compiler Group: None Status: Open Resolution: None Priority: 5 Submitted By: Einar Karttunen (ekarttun) Assigned to: Nobody/Anonymous (nobody) Summary: Parallel array comprehension related crash Initial Comment: The following code panics with both 6.2 and the Debian ghc-cvs snapshot. The problem appears to be in the comprehension. {-# OPTIONS -fparr -fglasgow-exts #-} module Main (main) where import GHC.PArr ary = let arr1 = toP [1..10] arr2 = toP [1..10] f = [: i1 + i2 | i1 <- arr1 | i2 <- arr2 :] in f !: 1 main = print ary and the error (from the cvs snapshot): ghc-6.3: panic! (the `impossible' happened, GHC version 6.3): applyTypeToArgs GHCziPArr.mapP{v} {- 01l -} @ (GHCziBase.Z0T{tc} {- (w) 40 -}, GHCziNum.Integer{tc} {- 314 -}) (\ (ds{v}_d1On T :: (GHCziBase.Z0T{tc} {- (w) 40 -}, GHCziNum.Integer{tc} {- 314 -})) -> case ds{v}_d1On of wild{v}_B1 T { (ds{v}_d1Ot T, i2{v} {- v aAO -} T) -> case ds{v}_d1Ot of wild{v}_B1 T { () -> let { ds{v}_d1OB T :: GHCziBase.Z0T{tc} {- (w) 40 -} ds{v}_d1OB = __letrec { } in GHCziBase.Z0T{v} {- (w) 71 -} } in (ds{v}_d1On, ds{v}_d1OB) } }) (GHCziPArr.crossP{v} {- 01o -} @ GHCziBase.Z0T{tc} {- (w) 40 -} @ GHCziNum.Integer{tc} {- 314 -} (GHCziPArr.replicateP{v} {- 01k -} @ GHCziBase.Z0T{tc} {- (w) 40 -} (GHCziBase.Izh{v} {- (w) 6d -} 1) GHCziBase.Z0T{v} {- (w) 71 -}) (GHCziPArr.filterP{v} {- 01m -} @ GHCziNum.Integer{tc} {- 314 -} (\ (ds{v}_d1Oj T :: GHCziNum.Integer{tc} {- 314 -}) -> let { i2{v} {- v aAO -} T :: GHCziNum.Integer{tc} {- 314 -} i2{v} {- v aAO -} = ds{v}_d1Oj } in GHCziBase.True{v} {- (w) 6v -}) arr2{v} {- v aAA -})) Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, or http://sourceforge.net/projects/ghc/. ---------------------------------------------------------------------- >Comment By: Einar Karttunen (ekarttun) Date: 2004-10-22 02:42 Message: Logged In: YES user_id=665422 With ghc-6.2.2 one gets: ghc-6.2.2: panic! (the `impossible' happened, GHC version 6.2.2): Name.mkTupNameStr: 1 ??? And with the cvs-snapshot from 20041017 undefined references: aa.o(.text+0x367): In function `s1TL_info': : undefined reference to `DataziTuple_Z1T_con_info' aa.o(.text+0x5e7): In function `s1TV_info': : undefined reference to `DataziTuple_Z1T_con_info' collect2: ld returned 1 exit status ---------------------------------------------------------------------- Comment By: Einar Karttunen (ekarttun) Date: 2004-09-27 19:45 Message: Logged In: YES user_id=665422 The cvs version packaged with debian is quite old: e@casca:~$ dpkg -s ghc-cvs | grep Version Version: 20040725-2 I can try to compile a newer ghc if that would potentially help. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1035575&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: OS X framework + ghci linker + RTS flags = bus error?, Wolfgang Thaller |
|---|---|
| Next by Date: | [ ghc-Bugs-1052706 ] Dependency on glut.h not in rpm spec file, SourceForge.net |
| Previous by Thread: | Missing symbols from libraries on Mac OS X builds: Addendum, Sean Seefried |
| Next by Thread: | [ ghc-Bugs-1052706 ] Dependency on glut.h not in rpm spec file, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |