I've uploaded version 0.2.12 to Hackage and my site with a fix for this
crash. It replaces the c2hs-based setters with a plain call to a C
function, which handles the struct initialization.
Version 0.2.12 also has unrelated changes to add new functionality. If
you'd prefer to cherrypick the fixes
I've verified the crash occurs when building with c2hs-0.25.2, and does not
occur when building with c2hs-0.18.2.
The generated code for withGlyph in 0.18.2 is:
(\(CCharT ptr) val -> do {pokeByteOff ptr 0 (val::CULong)}) (CCharT
pBuf) cAttrs
(\(CCharT ptr) val -> do {pokeByteOff p
John Millikin wrote:
> I've not been able to reproduce this on my workstation, which is running
> Jessie. Installed package versions:
>
> ghc: [7.6.3, 7.8.4, 7.10.1]
> c2hs: [0.17.2]
> haskell-ncurses: [0.2.7, 0.2.11]
> libncursesw5-dev: [5.9+20140913-1+b1]
>
> That stack trace posted in the OP i
I've not been able to reproduce this on my workstation, which is running
Jessie. Installed package versions:
ghc: [7.6.3, 7.8.4, 7.10.1]
c2hs: [0.17.2]
haskell-ncurses: [0.2.7, 0.2.11]
libncursesw5-dev: [5.9+20140913-1+b1]
That stack trace posted in the OP is suspicious. It looks like drawBorder
Package: libghc-ncurses-dev
Version: 0.2.11-1+b1
Severity: normal
This program crashes with a segfault.
import UI.NCurses
main = runCurses $ do
w <- defaultWindow
updateWindow w $ do
drawLineH (Just (Glyph ' ' [])) 80
This didn't used to happen; the library was wo
5 matches
Mail list logo