Package: haddock
Version: 2.4.1-3
Severity: grave

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Kaol,

I was about to start packaging libraries for ghc6.10 (haskell-X11 to be
precise), using the just built haddock from incoming, when I this
this problem:

$ /usr/bin/haddock 
--read-interface=/usr/share/doc/ghc6-doc/libraries/base,/usr/share/doc/ghc6-doc/libraries/base/base.haddock
 
haddock: out of memory (requested 6579890946048 bytes)
$

The out of memory comes instantanious.

A strace shows that it tries to mmap a large region, after opening that file
open("/usr/share/doc/ghc6-doc/libraries/base/base.haddock", 
O_RDONLY|O_NOCTTY|O_NONBLOCK) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=652796, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff1df5ce90) = -1 ENOTTY 
(Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0644, st_size=652796, ...}) = 0
mmap(0x7f6c14600000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x7f6c14300000
select(4, [3], [], NULL, {0, 0})        = 1 (in [3], left {0, 0})
read(3, 
"\r\f\372\316\0\4\0\t\213\206\0\t$y\377\0\0\6u\0\0\0\0\0\0\0\0\0\0\0\1\0\0"..., 
652796) = 652796
close(3)                                = 0
mmap(0x7f6c14500000, 6579890946048, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)

Note that this is on amd64, with the just built ghc packages:

ii  ghc6            6.10.1+dfsg1-10 GHC - the Glasgow Haskell Compilation system
ii  ghc6-doc        6.10.1+dfsg1-10 Documentation for the Glasgow Haskell 
Compilat
ii  ghc6-prof       6.10.1+dfsg1-10 Profiling libraries for the Glasgow Haskell 
Co


The file in question is this:
$ ls -l /usr/share/doc/ghc6-doc/libraries/base/base.haddock
- -rw-r--r-- 1 root root 652796 17. Feb 18:52 
/usr/share/doc/ghc6-doc/libraries/base/base.haddock
$ md5sum /usr/share/doc/ghc6-doc/libraries/base/base.haddock
31b9337459e9ebf3d59ca24cd03c827c  
/usr/share/doc/ghc6-doc/libraries/base/base.haddock

if this is interesting at all.

Is there anything else I can do to help you debug this problem?

Greetings,
Joachim


- -- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages haddock depends on:
ii  libc6                    2.9-1           GNU C Library: Shared libraries
ii  libedit2                 2.11~20080614-1 BSD editline and history libraries
ii  libffi5                  3.0.7-1         Foreign Function Interface library
ii  libgmp3c2                2:4.2.2+dfsg-3  Multiprecision arithmetic library
ii  libncurses5              5.7+20090214-1  shared libraries for terminal hand

haddock recommends no packages.

haddock suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmd9sYACgkQ9ijrk0dDIGyiPACgrj1nz933aAwmhuJd+9qoM0A+
rDQAmwRJTuQ2Q5SSIDd6K2Sv09InSybN
=BSQ2
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to