Opened 10 years ago

Last modified 4 years ago

#3903 new bug

DPH bad sliceP causes RTS panic "allocGroup: requested zero blocks"

Reported by: benl Owned by: benl
Priority: low Milestone:
Component: Data Parallel Haskell Version: 6.13
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Test Case:
Blocked By: #7330 Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

$ ghci -XPArr
...
Prelude> :m GHC.PArr
Prelude GHC.PArr> sliceP 10 10 [::]
<interactive>: internal error: allocGroup: requested zero blocks
    (GHC version 6.12.1 for i386_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Abort trap

sliceP 10 10 [::] is bogus. This should have been picked up in the libraries before hitting the RTS assertion.

Change History (11)

comment:1 Changed 10 years ago by igloo

Milestone: 6.12.3
Priority: normalhigh

comment:2 Changed 9 years ago by igloo

Milestone: 6.12.36.14.1

comment:3 Changed 9 years ago by benl

So DPH doesn't do array bounds checks because they interfere with optimisations. I think in the long term we'll want to provide a Safe API as well as an Unsafe one. The idea being that the programmer develops and tests their program with the Safe API, before switching to the Unsafe (and faster) one.

comment:4 Changed 9 years ago by igloo

Milestone: 6.14.16.16.1
Priority: highnormal

OK, sounds like there's nothing to do here for 6.14.1 then.

comment:5 Changed 8 years ago by igloo

Milestone: 7.4.17.6.1
Priority: normallow

comment:6 Changed 7 years ago by igloo

Milestone: 7.6.17.6.2

comment:7 Changed 7 years ago by benl

Blocked By: 7330 added

comment:8 Changed 5 years ago by thoughtpolice

Milestone: 7.6.27.10.1

Moving to 7.10.1.

comment:9 Changed 5 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:10 Changed 4 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

comment:11 Changed 4 years ago by bgamari

Milestone: 8.0.1

Moving DPH tickets out to _|_ as the project is more or less stagnant.

Note: See TracTickets for help on using tickets.