[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#94955: marked as done ([mips] Linking with libstdc++ changes behavior of a program (which does not require libstdc++))



Your message dated Tue, 14 Oct 2003 13:38:44 -0700
with message-id <20031014203844.GG1092@cyberhqz.com>
and subject line bug #94955 reported against g++-2.95
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; 23 Apr 2001 06:31:20 +0000
>From phil@fifi.org Mon Apr 23 01:31:20 2001
Return-path: <phil@fifi.org>
Received: from dsl027-190-146.sfo1.dsl.speakeasy.net (tantale.fifi.org) [216.27.190.146] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14rZsV-000433-00; Mon, 23 Apr 2001 01:31:19 -0500
Received: from ceramic.fifi.org (root@ceramic.fifi.org [216.27.190.147])
	by tantale.fifi.org (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id XAA11823
	for <submit@bugs.debian.org>; Sun, 22 Apr 2001 23:31:18 -0700
Received: (from phil@localhost)
	by ceramic.fifi.org (8.9.3/8.9.3/Debian 8.9.3-21) id XAA32252;
	Sun, 22 Apr 2001 23:31:18 -0700
Sender: phil@fifi.org
To: submit@bugs.debian.org
Subject: Linking with libstdc++ changes behavior of a program (which does not require libstdc++)
From: Philippe Troin <phil@fifi.org>
Date: 22 Apr 2001 23:31:18 -0700
Message-ID: <8766fwt9e1.fsf@ceramic.fifi.org>
Lines: 66
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: submit@bugs.debian.org

Package: libstdc++2.10-glibc2.2
Version: 1:2.95.3-8

==== BEGIN TRANSCRIPT ================================================
phil@resume:~% cat foo.cpp
#include <unistd.h>

class EX
{
public:
  EX() { write(2,"XCR\n",4); }
  virtual ~EX() { write(2, "XD\n", 3); }
  EX(const EX&) { write(2, "XCP\n", 4); }
};

class EY : public virtual EX
{
public:
  EY() { write(2,"YCR\n",4); }
  ~EY() { write(2, "YD\n", 3); }
  EY(const EY&) { write(2, "YCP\n", 4); }
};

int main()
{
  try {
    throw EY();
  }
  catch(const EY&)
  {
  }
  return 0;
}
phil@resume:~% gcc -o foo foo.cpp         
phil@resume:~% ./foo
XCR
YCR
XCR
YCP
YD
XD
YD
XD
phil@resume:~% gcc -o foo foo.cpp -lstdc++
phil@resume:~% ./foo
XCR
YCR
XCR
YCP
YD
XD
zsh: 11278 illegal hardware instruction  ./foo
phil@resume:~% 
==== END TRANSCRIPT ================================================

This program does not require libstdc++... However, if libstdc++ is
linked in, the program crashes...

This problem occurs only on the mips architecture.

Well, actually, a bigger program (aleph package) has the same problem
(works when NOT linked with libstdc++, crashes when linked with
libstdc++) on both mips and arm. I isolated the problem to this simple
test case on mips.

Phil.

---------------------------------------
Received: (at 94955-done) by bugs.debian.org; 15 Oct 2003 00:55:44 +0000
>From rmurray@cyberhqz.com Tue Oct 14 19:55:11 2003
Return-path: <rmurray@cyberhqz.com>
Received: from h24-77-96-253.sbm.shawcable.net (straylight.cyberhqz.com) [24.77.96.253] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A9VwL-0007Ia-00; Tue, 14 Oct 2003 15:38:45 -0500
Received: by straylight.cyberhqz.com (Postfix, from userid 1000)
	id 641F354004; Tue, 14 Oct 2003 13:38:44 -0700 (PDT)
Date: Tue, 14 Oct 2003 13:38:44 -0700
From: Ryan Murray <rmurray@debian.org>
To: Matthias Klose <doko@cs.tu-berlin.de>
Cc: Philippe Troin <phil@fifi.org>, 94955-done@bugs.debian.org
Subject: Re: bug #94955 reported against g++-2.95
Message-ID: <20031014203844.GG1092@cyberhqz.com>
References: <16268.20687.29495.461937@gargle.gargle.HOWL>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="7CZp05NP8/gJM8Cl"
Content-Disposition: inline
In-Reply-To: <16268.20687.29495.461937@gargle.gargle.HOWL>
User-Agent: Mutt/1.3.28i
Delivered-To: 94955-done@bugs.debian.org
X-Spam-Status: No, hits=-5.7 required=4.0
	tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_10_13
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_13 (1.174.2.15-2003-03-30-exp)


--7CZp05NP8/gJM8Cl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 14, 2003 at 09:38:55PM +0200, Matthias Klose wrote:
> Please could you check, if this is fixed with our current default
> compiler (3.3.2)?

As I wrote in May of last year, this is almost certainly caused by the
horribly incomplete exception handling in 2.95.x on mips, which was fixed in
3.0.  There has been no response from Phil since then, and the package that
found the problem is built on mips and mipsel, so I'm closing the bug at th=
is
point.

--=20
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.

--7CZp05NP8/gJM8Cl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/jF7TN2Dbz/1mRasRAj6ZAKCHB5a77qacbsXt8xW5X5SYZaZX/gCguDFV
jWqNONclUlyQJ7q/Kw+6f78=
=lTc2
-----END PGP SIGNATURE-----

--7CZp05NP8/gJM8Cl--



Reply to: