🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.ocaml.maint
1 messages
1 total messages Started by Debian Bug Tracking System Tue, 24 Nov 2026 12:30
Bug#524908: marked as done (libcairo-ocaml-dev: memory leak in Cairo_bigarray)
#662
Author: Debian Bug Tracking System
Date: Tue, 24 Nov 2026 12:30
245 lines
11790 bytes
This is a multi-part message in MIME format...

------------=_1795522864-2277695-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Tue, 24 Nov 2026 12:19:40 +0000
with message-id <179552278035.25286.15089813591119982970@fasolo.debian.org>
and subject line Bug#1154481: Removed package(s) from unstable
has caused the Debian Bug report #524908,
regarding libcairo-ocaml-dev: memory leak in Cairo_bigarray
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
524908: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D524908
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1795522864-2277695-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 20 Apr 2009 18:46:11 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 90; hammy, 150; neutral, 78; spammy,
	1. spammytokens:0.987-1--surfaces hammytokens:0.000-+--Severity,
	0.000-+--UD:UTF-8, 0.000-+--charmap, 0.000-+--LC_CTYPE, 0.000-+--Locale
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	SPF_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <havleoto@gmail.com>
Received: from mail-bw0-f164.google.com ([209.85.218.164])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <havleoto@gmail.com>)
	id 1LvyVP-0002nE-E3
	for submit@bugs.debian.org; Mon, 20 Apr 2009 18:46:11 +0000
Received: by bwz8 with SMTP id 8so1051813bwz.41
        for <submit@bugs.debian.org>; Mon, 20 Apr 2009 11:46:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:subject:content-type
         :content-transfer-encoding;
        bh=Wwq10RXgzUHUooNzLLEOXdlDIhi3UkPPJ5+T6q0WPRM=;
        b=veoZ/RiJ1RErrPuuYaJJGfLymlgGh0vhegKEdgbzG1JrPS4wIuKN40ueS54P3THd/6
         ujZDS1mPKH1G58ljDeB2Se68XnYX/BmE74tyeA4+Fw8hplE2N4bZBxzFfpOiFa0qUZWG
         GB8X1LGjDlS5VYTwk5vX7sgSajqq7vOUShCOI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject
         :content-type:content-transfer-encoding;
        b=Nk/Nz+miCj3oMtKi7GzlVneM3uxphQ2tbruuPaBABQrEh9txggz6oubI0637VFCgsY
         X7IEj0J/8rOi/Y7QRycbOMerwvJI3xvBRogY2+MoPP0BRFB7dhkd5tUf69oD1dFvyddq
         W4FDhO7NvUz/yM1G9VLlseV/1a18cX4/9glRg=
Received: by 10.204.70.135 with SMTP id d7mr5661872bkj.87.1240253165170;
        Mon, 20 Apr 2009 11:46:05 -0700 (PDT)
Received: from ?192.168.1.21? (195.70.145.197.adsl.nextra.cz [195.70.145.197])
        by mx.google.com with ESMTPS id z10sm10857966fka.38.2009.04.20.11.46.03
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 20 Apr 2009 11:46:04 -0700 (PDT)
Message-ID: <49ECC2EB.1030204@gmail.com>
Date: Mon, 20 Apr 2009 20:46:03 +0200
From: Oto Havle <havleoto@gmail.com>
User-Agent: Thunderbird 1.5.0.7 (X11/20060927)
MIME-Version: 1.0
To:  submit@bugs.debian.org
Subject: libcairo-ocaml-dev: memory leak in Cairo_bigarray
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org

Package: libcairo-ocaml-dev
Version: 20070908-1+b2
Severity: normal

OCaml programs which create Cairo surfaces via Cairo_bigarray leak memory.
Following test program reproduces the bug. The program allocates many 100Mb arrays, but 
explicit garbage collector invocation should keep the total memory usage low.


$ cat bug.ml
#use "topfind"
#require "bigarray,cairo"

open Bigarray

let test () =
   let u = Array2.create int8_unsigned c_layout 10000 10000 in
   ignore (Cairo_bigarray.of_bigarr_8 u)

let () =
   for k = 1 to 100 do Gc.compact (); test () done

$ ocaml bug.ml
Out of memory during evaluation.


It seems that the OCaml runtime does not free memory associated with the bigarray "u". 
Curiously, following program works as expected. Note the last line of function "test", which 
prevents deallocation of the bigarray in preceding GC run.


$ cat nobug.ml
#use "topfind"
#require "bigarray,cairo"

open Bigarray

let test () =
   let u = Array2.create int8_unsigned c_layout 10000 10000 in
   ignore (Cairo_bigarray.of_bigarr_8 u);
   Gc.compact ();
   ignore u

let () =
   for k = 1 to 100 do Gc.compact (); test () done

$ ocaml nobug.ml
(no output)




-- System Information:
Debian Release: 5.0
   APT prefers stable
   APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-mrkev (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libcairo-ocaml-dev depends on:
ii  libcairo-ocaml             20070908-1+b2 OCaml bindings for Cairo
ii  libcairo2-dev              1.6.4-7       Development files for the Cairo 2D
ii  liblablgtk2-ocaml-dev      2.10.1-2      OCaml bindings to Gtk+ version 2
ii  ocaml-nox [ocaml-nox-3.10. 3.10.2-3      ML language implementation with a

libcairo-ocaml-dev recommends no packages.

Versions of packages libcairo-ocaml-dev suggests:
ii  ocaml-findlib                 1.2.1-5    Management tool for OCaml programm

-- no debconf information



------------=_1795522864-2277695-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 524908-done) by bugs.debian.org; 24 Nov 2026 12:19:42 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-109.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HAS_BUG_NUMBER,
	SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST,VERSION autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 134; neutral, 33; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--H*r:sk:fasolo.,
	0.000-+--H*MI:fasolo, 0.000-+--H*m:fasolo
Return-path: <envelope@ftp-master.debian.org>
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:52860)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVpUt-009YLO-1q;
	Tue, 24 Nov 2026 12:19:42 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVpUr-008Clk-10;
	Tue, 24 Nov 2026 12:19:41 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Message-Id:Date:
	Content-Transfer-Encoding:Content-Type:Subject:MIME-Version:Cc:To:From:
	Reply-To:Content-ID:Content-Description:In-Reply-To:References;
	bh=d7TJ+K6WbAVRUKIdv635TlDResx1OxW2CjbPdOgQ7dE=; b=kkGixejExEpZLAqGSlGwcIeTcp
	ijL95aDeIElcpSx5broECqqeqLwBi5jKGlPkKuYDGgySEk3QJt65SYptOctsUKPKz5rIypO1cZF5M
	Zxy4fWxsJ54m+Ua++HnqT9KiQcrgX2d+57ZGDrTtW6JY3D15BJheli+Tn+Eu3X8i7JFiKSkV7YTzS
	PoAZOHLLi9ZW+rpyRVRuwcApulvvhb2AzPS4yaWhjqgSW2Y04Qnhyt1/4MIgZs9SMK2HLirfJ8OZe
	H1UxnnvuWnWE2HnAR14zxHA2Orb20SPmJ7c3W7wVwdtbu0Evn5YXLPB5XjRWFBYi6ltnSP16ywKjj
	CfqlBNRg==;
Received: from alteholz by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVpUq-000000006aT-1Z2v;
	Tue, 24 Nov 2026 12:19:40 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 524908-done@bugs.debian.org,932166-done@bugs.debian.org,
X-DAK: dak rm
Cc: cairo-ocaml@packages.debian.org
X-Filler: 42
X-Debian: DAK
Debian: DAK
MIME-Version: 1.0
Subject: Bug#1154481: Removed package(s) from unstable
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 24 Nov 2026 12:19:40 +0000
Message-Id: <179552278035.25286.15089813591119982970@fasolo.debian.org>

Version: 1:1.2.0-10+rm

Dear submitter,

as the package cairo-ocaml has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1154481

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)
------------=_1795522864-2277695-0--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads