Bug#786727: crashes with segfault when drawLineH is called

2015-10-13 Thread John Millikin
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

Bug#786727: crashes with segfault when drawLineH is called

2015-06-06 Thread John Millikin
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

Bug#786727: crashes with segfault when drawLineH is called

2015-06-05 Thread Joey Hess
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 is

Bug#786727: crashes with segfault when drawLineH is called

2015-06-04 Thread John Millikin
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

Bug#786727: crashes with segfault when drawLineH is called

2015-05-24 Thread Joey Hess
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