Bug#239813: marked as done (libglib2.0-0: heap corruption problems with glib)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 23 May 2004 23:48:05 -0700


Your message dated Mon, 24 May 2004 08:32:36 +0200
with message-id <1085380355.2600.1.camel@seb128>
and subject line libglib2.0-0: heap corruption problems with glib
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Mar 2004 14:06:02 +0000
>From hidden@balabit.hu Wed Mar 24 06:06:02 2004
Return-path: <hidden@balabit.hu>
Received: from mail.interware.hu [195.70.32.130] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B6918-0007Fg-00; Wed, 24 Mar 2004 06:06:02 -0800
Received: from balabit.hu ([195.70.34.196])
	by mail.interware.hu with esmtp (Exim 4.30 #1 (Debian))
	id 1B6913-0007r0-9N
	for <submit@bugs.debian.org>; Wed, 24 Mar 2004 15:05:57 +0100
Content-Type: multipart/mixed; boundary="===============2083835391=="
MIME-Version: 1.0
From: Krisztian KOVACS <hidden@balabit.hu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libglib2.0-0: heap corruption problems with glib
Date: Wed, 24 Mar 2004 13:49:26 +0100
Message-Id: <20040324124926.5E37818058@mail.balabit.hu>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_12 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_12
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============2083835391==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: libglib2.0-0
Version: 2.2.3-1
Severity: important
Tags: patch

GLib 2.2 (and possibly older versions) contains a bug which causes random
heap corruptions in multithreaded programs. It has been reported to the GLib
developers, and has been fixed in the GLib CVS. (GLib bug #127096) GLib 2.4
has this already fixed.

The GLib CVS diff is available at
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvs/gnome&subdir=glib/glib&command=DIFF_FRAMESET&file=gmem.c&rev2=1.43&rev1=1.42

This problem renders the zorp package quite unstable under heavy load, and
possibly causes problems with other GLib-based multithreaded software.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=C, LC_CTYPE=hu_HU

Versions of packages libglib2.0-0 depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

--===============2083835391==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="glib-memchunk-race.diff"

--- glib-2.0.1/glib/gmem.c.old	Sun Nov 16 12:04:45 2003
+++ glib-2.0.1/glib/gmem.c	Sun Nov 16 12:05:03 2003
@@ -719,12 +719,12 @@
       g_free (temp_area);
     }
   
+  g_mutex_lock (mem_chunks_lock);
   if (mem_chunk->next)
     mem_chunk->next->prev = mem_chunk->prev;
   if (mem_chunk->prev)
     mem_chunk->prev->next = mem_chunk->next;
   
-  g_mutex_lock (mem_chunks_lock);
   if (mem_chunk == mem_chunks)
     mem_chunks = mem_chunks->next;
   g_mutex_unlock (mem_chunks_lock);

--===============2083835391==--


---------------------------------------
Received: (at 239813-done) by bugs.debian.org; 24 May 2004 06:33:07 +0000
>From seb128@debian.org Sun May 23 23:33:07 2004
Return-path: <seb128@debian.org>
Received: from smtp4.wanadoo.fr (mwinf0404.wanadoo.fr) [193.252.22.27] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BS91H-0007ZA-00; Sun, 23 May 2004 23:33:07 -0700
Received: from seb128 (ANancy-111-1-5-12.w81-249.abo.wanadoo.fr [81.249.76.12])
	by mwinf0404.wanadoo.fr (SMTP Server) with ESMTP id 9AA183801275
	for <239813-done@bugs.debian.org>; Mon, 24 May 2004 08:32:36 +0200 (CEST)
Received: from seb128 by seb128 with local (Exim 3.36 #1 (Debian))
	id 1BS90m-0000gs-00
	for <239813-done@bugs.debian.org>; Mon, 24 May 2004 08:32:36 +0200
Subject: re: libglib2.0-0: heap corruption problems with glib
From: Sebastien Bacher <seb128@debian.org>
To: 239813-done@bugs.debian.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1085380355.2600.1.camel@seb128>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.5.7 
Date: Mon, 24 May 2004 08:32:36 +0200
Sender: Sebastien Bacher <seb128@debian.org>
Delivered-To: 239813-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-1.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

> GLib 2.2 (and possibly older versions) contains a bug which causes
random
> heap corruptions in multithreaded programs. It has been reported to
the GLib
> developers, and has been fixed in the GLib CVS. (GLib bug #127096)
GLib 2.4
> has this already fixed.

glib 2.4 is in experimental now, this fixed is fixed, I'm closing it.


Cheers,

Sebastien Bacher