Your message dated Fri, 2 Sep 2005 09:37:53 -0700
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #326221,
regarding libsigc++-2.0: Unable to disconnect parentless slots
to be marked as having been forwarded to the upstream software
author(s) libsigc-list@gnome.org, [EMAIL PROTECTED]

(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 326221-forwarded) by bugs.debian.org; 2 Sep 2005 16:44:45 +0000
>From [EMAIL PROTECTED] Fri Sep 02 09:44:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp2.vzavenue.net [66.171.59.141] (mirapoint)
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EBEej-0000Iw-00; Fri, 02 Sep 2005 09:44:45 -0700
Received: from mail.vzavenue.net (mail.vzavenue.net [66.171.59.142])
        by smtp2.vzavenue.net (MOS 3.4.8-GR)
        with ESMTP id CMR15972;
        Fri, 2 Sep 2005 12:38:08 -0400 (EDT)
Received: from [192.168.0.101] (244.173.171.66.subscriber.vzavenue.net 
[66.171.173.244])
        by mail.vzavenue.net (MOS 3.4.8-GR)
        with ESMTP id CWD21544;
        Fri, 2 Sep 2005 12:38:03 -0400 (EDT)
From: Daniel Burrows <[EMAIL PROTECTED]>
To: libsigc-list@gnome.org, [EMAIL PROTECTED]
Subject: Invalidating parentless slots
Date: Fri, 2 Sep 2005 09:37:53 -0700
User-Agent: KMail/1.7.2
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart1286955.hbIUNMgt62";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <[EMAIL PROTECTED]>
X-Junkmail-Status: score=10/50, host=smtp2.vzavenue.net
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

--nextPart1286955.hbIUNMgt62
Content-Type: multipart/mixed;
  boundary="Boundary-01=_h/HGDXi+vu5IgnK"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_h/HGDXi+vu5IgnK
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

  I got the attached message and (reversed) patch in the Debian BTS.

  Daniel

=2D-=20
/------------------- Daniel Burrows <[EMAIL PROTECTED]> -----------------=
=2D\
|             "Since TeX's value for infinity is quite low..."             =
 |
|               -- The LaTeX Companion                                     =
 |
\---------------- The Turtle Moves! -- http://www.lspace.org --------------=
=2D/

--Boundary-01=_h/HGDXi+vu5IgnK
Content-Type: message/rfc822;
  name="forwarded message"
Content-Transfer-Encoding: 7bit
Content-Description: Bas Wijnen <[EMAIL PROTECTED]>: Bug#326221: libsigc++-2.0: 
Unable to disconnect parentless slots
Content-Disposition: inline

Return-Path: <[EMAIL PROTECTED]>
Received: from tr11n04.aset.psu.edu (r02a07.cac.psu.edu [146.186.15.17])
        by seawolf.aset.psu.edu (8.12.11/8.12.11) with ESMTP id j82E8sWr2269242
        for <[EMAIL PROTECTED]>; Fri, 2 Sep 2005 10:08:54 -0400
Received: from spohr.debian.org (spohr.debian.org [140.211.166.43])
        by tr11n04.aset.psu.edu (8.13.2/8.13.2) with ESMTP id j82E8rl1041174
        for <[EMAIL PROTECTED]>; Fri, 2 Sep 2005 10:08:53 -0400
Received: from debbugs by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1EBC8G-0006KA-00; Fri, 02 Sep 2005 07:03:04 -0700
X-Loop: [EMAIL PROTECTED]
Subject: Bug#326221: libsigc++-2.0: Unable to disconnect parentless slots
Reply-To: Bas Wijnen <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED]
Resent-From: Bas Wijnen <[EMAIL PROTECTED]>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Daniel Burrows <[EMAIL PROTECTED]>
Resent-Date: Fri, 02 Sep 2005 14:03:02 UTC
Resent-Message-ID: <[EMAIL PROTECTED]>
X-Debian-PR-Message: report 326221
X-Debian-PR-Package: libsigc++-2.0
X-Debian-PR-Keywords: patch
Received: via spool by [EMAIL PROTECTED] id=B.112566876724903
          (code B ref -1); Fri, 02 Sep 2005 14:03:02 UTC
Received: (at submit) by bugs.debian.org; 2 Sep 2005 13:46:07 +0000
Received: from smtp1.rug.nl [129.125.50.11] 
        by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
        id 1EBBrq-0006GO-00; Fri, 02 Sep 2005 06:46:07 -0700
Received: from smtp1.rug.nl ([129.125.50.11])
 by smtp1.rug.nl (SMSSMTP 4.1.0.19) with SMTP id M2005090215453328958
 for <[EMAIL PROTECTED]>; Fri, 02 Sep 2005 15:45:33 +0200
Received: from pcbcn10.phys.rug.nl (pcbcn10.phys.rug.nl [129.125.47.90])
        by smtp1.rug.nl (8.12.11/8.12.11) with ESMTP id j82DjUG5006831;
        Fri, 2 Sep 2005 15:45:30 +0200 (MEST)
Received: from shevek by pcbcn10.phys.rug.nl with local (Exim 4.52)
        id 1EBBrG-0005XU-PH; Fri, 02 Sep 2005 15:45:30 +0200
Content-Type: multipart/mixed;
  boundary="===============1255800447=="
MIME-Version: 1.0
From: Bas Wijnen <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.17
Date: Fri, 02 Sep 2005 15:45:30 +0200
Message-Id: <[EMAIL PROTECTED]>
X-Scanned-By: milter-spamc/0.25.320 (smtp1.rug.nl [129.125.50.11]); Fri, 02 Sep 
2005 15:45:33 +0200
Delivered-To: [EMAIL PROTECTED]
Resent-Sender: Debian BTS <[EMAIL PROTECTED]>
X-Virus-Scanned: amavisd-sophos
X-PSU-Spam-Flag: NO
X-PSU-Spam-Hits: -2.599
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on jester
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
        version=3.0.4
X-UID: 
X-KDE-PR-Keywords: debbugs

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

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

Package: libsigc++-2.0
Severity: normal
Tags: patch

sigc::slot can be used as a function pointer with the advantage of being
able to add function arguments with sigc::bind, etc.  However,
disconnecting such slots does not work, because it doesn't do anything
if there is no parent to notify.

In my programs it is quite usual that there isn't a parent, because I
know what happens to the slot, so I don't need a notification.  However,
I still need to invalidate the slot sometimes, and even
slot = sigc::slot0 <void> ();
doesn't work, because that simply calls disconnect ().

The attached patch invalidates the slot on disconnect, even if there is
no parent.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

--===============1255800447==
Content-Type: text/x-c++; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="sigc.patch"

--- slot_base.cc        2005-09-02 15:39:48.000000000 +0200
+++ libsigc++-2.0.10/sigc++/functors/slot_base.cc       2005-02-11 
11:59:07.000000000 +0100
@@ -40,11 +40,11 @@ void slot_rep::operator delete(void* p)
 
 void slot_rep::disconnect()
 {
-  call_ = 0;            // Invalidate the slot.
-                        // _Must_ be done here because parent_ might defer the 
actual
-                        // destruction of the slot_rep and try to invoke it 
before that point.
   if (parent_)
   {
+    call_ = 0;          // Invalidate the slot.
+                        // _Must_ be done here because parent_ might defer the 
actual
+                        // destruction of the slot_rep and try to invoke it 
before that point.
     void* data_ = parent_;
     parent_ = 0;        // Just a precaution.
     (cleanup_)(data_);  // Notify the parent (might lead to destruction of 
this!).

--===============1255800447==--

--Boundary-01=_h/HGDXi+vu5IgnK
Content-Type: message/rfc822;
  name="forwarded message"
Content-Transfer-Encoding: 7bit
Content-Description: Bas Wijnen <[EMAIL PROTECTED]>: Bug#326221: the patch
Content-Disposition: inline

Return-Path: <[EMAIL PROTECTED]>
Received: from tr11n04.aset.psu.edu (r02a07.cac.psu.edu [146.186.15.17])
        by seawolf.aset.psu.edu (8.12.11/8.12.11) with ESMTP id j82EoXSj1101914
        for <[EMAIL PROTECTED]>; Fri, 2 Sep 2005 10:50:33 -0400
Received: from spohr.debian.org (spohr.debian.org [140.211.166.43])
        by tr11n04.aset.psu.edu (8.13.2/8.13.2) with ESMTP id j82EoWoM109546
        for <[EMAIL PROTECTED]>; Fri, 2 Sep 2005 10:50:33 -0400
Received: from debbugs by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1EBCq2-0000Hm-00; Fri, 02 Sep 2005 07:48:18 -0700
X-Loop: [EMAIL PROTECTED]
Subject: Bug#326221: the patch
Reply-To: Bas Wijnen <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED]
Resent-From: Bas Wijnen <[EMAIL PROTECTED]>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Daniel Burrows <[EMAIL PROTECTED]>
Resent-Date: Fri, 02 Sep 2005 14:48:18 UTC
Resent-Message-ID: <[EMAIL PROTECTED]>
X-Debian-PR-Message: report 326221
X-Debian-PR-Package: libsigc++-2.0
X-Debian-PR-Keywords: patch
Received: via spool by [EMAIL PROTECTED] id=B326221.112567115710865
          (code B ref 326221); Fri, 02 Sep 2005 14:48:18 UTC
Received: (at 326221) by bugs.debian.org; 2 Sep 2005 14:25:57 +0000
Received: from smtp1.rug.nl [129.125.50.11] 
        by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
        id 1EBCUP-0002l5-00; Fri, 02 Sep 2005 07:25:57 -0700
Received: from smtp1.rug.nl ([129.125.50.11])
 by smtp1.rug.nl (SMSSMTP 4.1.0.19) with SMTP id M2005090216252531549
 for <[EMAIL PROTECTED]>; Fri, 02 Sep 2005 16:25:25 +0200
Received: from pcbcn10.phys.rug.nl (pcbcn10.phys.rug.nl [129.125.47.90])
        by smtp1.rug.nl (8.12.11/8.12.11) with ESMTP id j82EPPph015985
        for <[EMAIL PROTECTED]>; Fri, 2 Sep 2005 16:25:25 +0200 (MEST)
Received: from shevek by pcbcn10.phys.rug.nl with local (Exim 4.52)
        id 1EBCTt-0007bi-C2
        for [EMAIL PROTECTED]; Fri, 02 Sep 2005 16:25:25 +0200
Date: Fri, 2 Sep 2005 16:25:25 +0200
From: Bas Wijnen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed;
  micalg=pgp-sha1;
  protocol="application/pgp-signature";
  boundary="XOIedfhf+7KOe/yw"
Content-Disposition: inline
User-Agent: Mutt/1.5.10i
X-Scanned-By: milter-spamc/0.25.320 (smtp1.rug.nl [129.125.50.11]); Fri, 02 Sep 
2005 16:25:25 +0200
Delivered-To: [EMAIL PROTECTED]
Resent-Sender: Debian BTS <[EMAIL PROTECTED]>
X-Virus-Scanned: amavisd-sophos
X-PSU-Spam-Flag: NO
X-PSU-Spam-Hits: -2.571
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on jester
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,
        NORMAL_HTTP_TO_IP autolearn=ham version=3.0.4
X-UID: 
X-KDE-PR-Keywords: debbugs


--XOIedfhf+7KOe/yw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I just noticed the patch is reversed, so you need -R to apply it.  Sorry ab=
out
that.

--=20
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html

--XOIedfhf+7KOe/yw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFDGGDVFShl+2J8z5URApsnAKClQMqgoPPk952TGoiDyMpzRNoymwCcDgIn
B8GsXr92z3MkuSOXdjVHykc=
=vwAM
-----END PGP SIGNATURE-----

--XOIedfhf+7KOe/yw--

--Boundary-01=_h/HGDXi+vu5IgnK--

--nextPart1286955.hbIUNMgt62
Content-Type: application/pgp-signature

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

iD8DBQBDGH/nch6xsM7kSXgRAhsOAJ47HV8hwiRDQZyutO3upOe2+82ghACgl8z/
Ksi6Bs5OOsFuZphOC4QZRjQ=
=A/ja
-----END PGP SIGNATURE-----

--nextPart1286955.hbIUNMgt62--


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

Reply via email to