g++-3.3 report internal error even on simplest program

Bug #6888 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
gcc-3.3 (Debian)
Fix Released
Unknown
gcc-3.3 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #256668
http://bugs.debian.org/256668

Revision history for this message
In , Matthias Klose (doko-cs) wrote : Re: Bug#256668: g++-3.3 report internal error even on simplest program

what is the version of libgcc1 installed? If it's 1:3.4.0-2, please
upgrade to 1:3.4.0-4, available in http://incoming.debian.org, or
tonight in the experimental distribution.

I'm unable to reproduce this behaviour.

Hongzheng Wang writes:
> Subject: g++-3.3 report internal error even on simplest program
> Package: g++-3.3
> Version: 1:3.3.4-2
> Severity: serious
> Justification: unkown
>
> *** Please type your report below this line ***
> Hi,
> I found g++-3.3 can't work, even on the simplest program `hello
> world`.
>
> The source is:
>
> //test.cpp
> #include <iostream>
>
> int main()
> {
> std::cout << "hello" << std::endl;
> return 0;
> }
>
> When I use g++ to compile it, g++ report internal error:
>
> $ g++ test.cpp -o test
>
> In file included from /usr/include/c++/3.3/i486-linux/bits/c++locale.h:42,
> from /usr/include/c++/3.3/iosfwd:46,
> from /usr/include/c++/3.3/ios:44,
> from /usr/include/c++/3.3/ostream:45,
> from /usr/include/c++/3.3/iostream:45,
> from test.cpp:1:
> /usr/include/langinfo.h:280: internal compiler error: Segmentation fault
> Please submit a full bug report, with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
>
> Since this program is simple enough, I think it should be a g++ bug.
>
> BTW: I found this problem when re-make one of my program written in
> C++.
>
> -- System Information:
> Debian Release: testing/unstable
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.6
> Locale: LANG=C, LC_CTYPE=zh_CN.GBK
>
> Versions of packages g++-3.3 depends on:
> ii gcc-3.3 1:3.3.4-2 The GNU C compiler
> ii gcc-3.3-base 1:3.3.4-2 The GNU Compiler Collection
> (base
> ii libc6 2.3.2.ds1-13 GNU C Library: Shared
> libraries an
> ii libstdc++5-3.3-dev 1:3.3.4-2 The GNU Standard C++
> Library v3 (d
>
> -- no debconf information
>
> --
> Hongzheng Wang
> Department of Electronic Engineering
> Tsinghua University
> Beijing 100084, China
> Tel: (+86 10) 6278 2690
>
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact <email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #256668
http://bugs.debian.org/256668

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Message-ID: <email address hidden>
Date: Mon, 28 Jun 2004 19:46:44 +0800
From: Hongzheng Wang <email address hidden>
To: <email address hidden>
Subject: g++-3.3 report internal error even on simplest program

Subject: g++-3.3 report internal error even on simplest program
Package: g++-3.3
Version: 1:3.3.4-2
Severity: serious
Justification: unkown

*** Please type your report below this line ***
Hi,
  I found g++-3.3 can't work, even on the simplest program `hello
  world`.

  The source is:

  //test.cpp
  #include <iostream>

  int main()
  {
      std::cout << "hello" << std::endl;
      return 0;
  }

  When I use g++ to compile it, g++ report internal error:

  $ g++ test.cpp -o test

  In file included from /usr/include/c++/3.3/i486-linux/bits/c++locale.h:42,
                   from /usr/include/c++/3.3/iosfwd:46,
                   from /usr/include/c++/3.3/ios:44,
                   from /usr/include/c++/3.3/ostream:45,
                   from /usr/include/c++/3.3/iostream:45,
                   from test.cpp:1:
  /usr/include/langinfo.h:280: internal compiler error: Segmentation fault
  Please submit a full bug report, with preprocessed source if appropriate.
  See <URL:http://gcc.gnu.org/bugs.html> for instructions.
  For Debian GNU/Linux specific bug reporting instructions, see
  <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

  Since this program is simple enough, I think it should be a g++ bug.

  BTW: I found this problem when re-make one of my program written in
  C++.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG=C, LC_CTYPE=zh_CN.GBK

Versions of packages g++-3.3 depends on:
ii gcc-3.3 1:3.3.4-2 The GNU C compiler
ii gcc-3.3-base 1:3.3.4-2 The GNU Compiler Collection
(base
ii libc6 2.3.2.ds1-13 GNU C Library: Shared
libraries an
ii libstdc++5-3.3-dev 1:3.3.4-2 The GNU Standard C++
Library v3 (d

-- no debconf information

--
Hongzheng Wang
Department of Electronic Engineering
Tsinghua University
Beijing 100084, China
Tel: (+86 10) 6278 2690

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 28 Jun 2004 19:05:56 +0200
From: Matthias Klose <email address hidden>
To: Hongzheng Wang <email address hidden>, <email address hidden>
Subject: Re: Bug#256668: g++-3.3 report internal error even on simplest program

what is the version of libgcc1 installed? If it's 1:3.4.0-2, please
upgrade to 1:3.4.0-4, available in http://incoming.debian.org, or
tonight in the experimental distribution.

I'm unable to reproduce this behaviour.

Hongzheng Wang writes:
> Subject: g++-3.3 report internal error even on simplest program
> Package: g++-3.3
> Version: 1:3.3.4-2
> Severity: serious
> Justification: unkown
>
> *** Please type your report below this line ***
> Hi,
> I found g++-3.3 can't work, even on the simplest program `hello
> world`.
>
> The source is:
>
> //test.cpp
> #include <iostream>
>
> int main()
> {
> std::cout << "hello" << std::endl;
> return 0;
> }
>
> When I use g++ to compile it, g++ report internal error:
>
> $ g++ test.cpp -o test
>
> In file included from /usr/include/c++/3.3/i486-linux/bits/c++locale.h:42,
> from /usr/include/c++/3.3/iosfwd:46,
> from /usr/include/c++/3.3/ios:44,
> from /usr/include/c++/3.3/ostream:45,
> from /usr/include/c++/3.3/iostream:45,
> from test.cpp:1:
> /usr/include/langinfo.h:280: internal compiler error: Segmentation fault
> Please submit a full bug report, with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
>
> Since this program is simple enough, I think it should be a g++ bug.
>
> BTW: I found this problem when re-make one of my program written in
> C++.
>
> -- System Information:
> Debian Release: testing/unstable
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.6
> Locale: LANG=C, LC_CTYPE=zh_CN.GBK
>
> Versions of packages g++-3.3 depends on:
> ii gcc-3.3 1:3.3.4-2 The GNU C compiler
> ii gcc-3.3-base 1:3.3.4-2 The GNU Compiler Collection
> (base
> ii libc6 2.3.2.ds1-13 GNU C Library: Shared
> libraries an
> ii libstdc++5-3.3-dev 1:3.3.4-2 The GNU Standard C++
> Library v3 (d
>
> -- no debconf information
>
> --
> Hongzheng Wang
> Department of Electronic Engineering
> Tsinghua University
> Beijing 100084, China
> Tel: (+86 10) 6278 2690
>
>
>
> --
> To UNSUBSCRIBE, email to <email address hidden>
> with a subject of "unsubscribe". Trouble? Contact <email address hidden>

Revision history for this message
Matt Zimmerman (mdz) wrote :

According to the maintainer's comments, this is most likely a bug in a version
of libgcc from experimental

Revision history for this message
In , Hongzheng Wang (wanghz02) wrote :

Hi,

The only experimental package in my system is libgcc1, which is
1:3.4.0-2 indeed. Because a software need it, I installed from
experimental serveral days ago.

According to your help, I downloaded libgcc1_3.4.0-4_i386.deb from
package.debian.org and installed it. However, the problem still occured.
The error is the same. :(

I tried to reinstall libgcc1 in SID, it could not work too.

What additional information can I provide?

Thank you all.

BTW: I attached a gziped source and preprocessed source.

Matthias Klose wrote:

>what is the version of libgcc1 installed? If it's 1:3.4.0-2, please
>upgrade to 1:3.4.0-4, available in http://incoming.debian.org, or
>tonight in the experimental distribution.
>
>I'm unable to reproduce this behaviour.
>
>

--
Hongzheng Wang
Department of Electronic Engineering
Tsinghua University
Beijing 100084, China
Tel: (+86 10) 6278 2690

Revision history for this message
In , Hongzheng Wang (wanghz02) wrote :

Hi, all

I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.
Thank you all :-)

--
Hongzheng Wang
Department of Electronic Engineering
Tsinghua University
Beijing 100084, China
Tel: (+86 10) 6278 2690

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Message-ID: <email address hidden>
Date: Tue, 29 Jun 2004 11:28:11 +0800
From: Hongzheng Wang <email address hidden>
To: <email address hidden>
Subject: Re: Bug#256668: g++-3.3 report internal error even on simplest program

Hi, all

I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.
Thank you all :-)

--
Hongzheng Wang
Department of Electronic Engineering
Tsinghua University
Beijing 100084, China
Tel: (+86 10) 6278 2690

Revision history for this message
Matt Zimmerman (mdz) wrote :

doko confirms that this is not a problem for Warty; it only concerns g++-3.4

Revision history for this message
In , Matthias Klose (doko-cs) wrote :

tags 256668 +unreproducible
tags 256668 +help
tags 256668 +moreinfo
thanks

Hongzheng Wang writes:
> Hi, all
>
> I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.

more than strange. I don't know what's going on.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 2 Jul 2004 07:24:45 +0200
From: Matthias Klose <email address hidden>
To: Hongzheng Wang <email address hidden>, <email address hidden>
Subject: Re: Bug#256668: g++-3.3 report internal error even on simplest program

tags 256668 +unreproducible
tags 256668 +help
tags 256668 +moreinfo
thanks

Hongzheng Wang writes:
> Hi, all
>
> I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.

more than strange. I don't know what's going on.

Revision history for this message
In , Matthias Klose (doko-cs) wrote : tag gcc report

tags 256668 +unreproducible
tags 256668 +help
severity 256668 important
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 4 Jul 2004 15:57:35 +0200
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: tag gcc report

tags 256668 +unreproducible
tags 256668 +help
severity 256668 important
thanks

Revision history for this message
In , Matthias Klose (doko-cs) wrote : closing report as unreproducible

closing report as unreproducible

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 21 Nov 2004 11:01:40 +0100
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: closing report as unreproducible

closing report as unreproducible

Revision history for this message
In , Matthias Klose (doko-cs) wrote : Re: Bug#256668: g++-3.3 report internal error even on simplest program

Hongzheng Wang writes:
> Hi, all
>
> I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.
> Thank you all :-)

closing the report.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 21 Nov 2004 12:06:55 +0100
From: Matthias Klose <email address hidden>
To: Hongzheng Wang <email address hidden>,
        <email address hidden>
Subject: Re: Bug#256668: g++-3.3 report internal error even on simplest program

Hongzheng Wang writes:
> Hi, all
>
> I downgraded g++ from 3.3.4-2 to 3.3.4-1, and problem was solved.
> Thank you all :-)

closing the report.

Revision history for this message
In , Reid Priedhorsky (reid-reidster) wrote : Another data point for this bug 256668

Dear friendly Debian GCC folks,

I believe I've encountered this bug as well. Here's the scenario: I'm
starting to work on a package (homework, so I'm starting with half a dozen
source files alreay), tinkering away, happily compiling, when suddenly:

  In file included from /usr/include/string.h:114,
                   from /usr/include/c++/3.3/cstring:51,
                   from /usr/include/c++/3.3/bits/char_traits.h:45,
                   from /usr/include/c++/3.3/string:47,
                   from scene.h:1,
                   from createdata.cpp:1:
  /usr/include/xlocale.h:29: internal compiler error: Segmentation fault

... and following this, all other files I try, which only a few minutes ago
compiled *just fine*, fail with the same error. Compiler flags don't seem to
matter.

This is with g++3.3 version 1:3.3.4-13. After "apt-get install --reinstall
g++-3.3", everything is back to normal... ???

Thanks,

Reid

p.s. I do observe the bug number contains the string '666'. Hmmmm.... ;)

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 13 Dec 2004 20:42:48 -0600
From: Reid Priedhorsky <email address hidden>
To: <email address hidden>
Subject: Another data point for this bug 256668

Dear friendly Debian GCC folks,

I believe I've encountered this bug as well. Here's the scenario: I'm
starting to work on a package (homework, so I'm starting with half a dozen
source files alreay), tinkering away, happily compiling, when suddenly:

  In file included from /usr/include/string.h:114,
                   from /usr/include/c++/3.3/cstring:51,
                   from /usr/include/c++/3.3/bits/char_traits.h:45,
                   from /usr/include/c++/3.3/string:47,
                   from scene.h:1,
                   from createdata.cpp:1:
  /usr/include/xlocale.h:29: internal compiler error: Segmentation fault

... and following this, all other files I try, which only a few minutes ago
compiled *just fine*, fail with the same error. Compiler flags don't seem to
matter.

This is with g++3.3 version 1:3.3.4-13. After "apt-get install --reinstall
g++-3.3", everything is back to normal... ???

Thanks,

Reid

p.s. I do observe the bug number contains the string '666'. Hmmmm.... ;)

Revision history for this message
Daniel Robitaille (robitaille) wrote :

Marked closed in Debian in Nov 2004

Changed in gcc-3.3:
status: Unconfirmed → Rejected
Changed in gcc-3.3:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.