Bug#442073: hugs: Crashes when using ByteString and cpphs

2007-09-13 Thread Ross Paterson
This is caused by a bug in cpphs, which is used in preparing the
libraries for Hugs.  Simple test case:

% cat test
{-
#if 1
foo
#else
bar
#endif
-}
% cpphs --noline test
{-
#if 1
foo
#else


-}



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#442073: hugs: Crashes when using ByteString and cpphs

2007-09-12 Thread John Goerzen
Package: hugs
Version: 98.200609.21-5
Severity: important

When run under -98 +o -Fcpphs --noline, hugs crashes like this:

runhugs: Error occurred
ERROR /usr/lib/hugs/packages/base/Data/ByteString.hs:1924 -
Unterminated nested comment {- ...

And, in fact, about a page after that, we see:

  -- finalizer, excellent idea.
#if !defined(__OpenBSD__)
 let unmap = c_munmap p l  return ()
#else

With no corresponding #endif.  So the closing -} is eliminated by the
preprocessor.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages hugs depends on:
ii  libc6 2.6-2  GNU C Library: Shared libraries
ii  libhugs-base-bundled [lib 98.200609.21-5 Basic libraries
ii  libhugs-haskell98-bundled 98.200609.21-5 Compatibility with Haskell 98
ii  libncurses5   5.6-3  Shared libraries for terminal hand
ii  libreadline5  5.2-3  GNU readline and history libraries

Versions of packages hugs recommends:
pn  libhugs-alut  none (no description available)
pn  libhugs-cabal none (no description available)
pn  libhugs-fgl   none (no description available)
pn  libhugs-glut  none (no description available)
pn  libhugs-haskell-src   none (no description available)
pn  libhugs-haxml none (no description available)
pn  libhugs-hgl   none (no description available)
ii  libhugs-hunit-bundled [li 98.200609.21-5 A unit testing framework for Haske
ii  libhugs-mtl-bundled [libh 98.200609.21-5 Monad transformer library
ii  libhugs-network-bundled [ 98.200609.21-5 Networking-related facilities
pn  libhugs-openalnone (no description available)
pn  libhugs-openglnone (no description available)
ii  libhugs-parsec-bundled [l 98.200609.21-5 Monadic parser combinators
ii  libhugs-quickcheck-bundle 98.200609.21-5 Automatic testing of Haskell progr
pn  libhugs-stm   none (no description available)
pn  libhugs-time  none (no description available)
ii  libhugs-unix-bundled [lib 98.200609.21-5 POSIX functionality
pn  libhugs-x11   none (no description available)
pn  libhugs-xhtml none (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]