public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
@ 2012-05-14 22:45 rct+gcc at thompsonclan dot org
  2012-05-15  1:01 ` [Bug c++/53350] " paolo.carlini at oracle dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-14 22:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

             Bug #: 53350
           Summary: Internal compiler error when compiling
                    boost/smart_ptr/intrusive_ptr.hpp 1.49
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rct+gcc@thompsonclan.org


When compiling boost 1.49 on Ubuntu 11.10 wigh GCC version 4.6.1-9ubuntu3, I
get an internal compiler error. The error happens when the following command is
run in tools/quickbook:

 "g++"  -ftemplate-depth-300 -O3 -finline-functions -Wno-inline -Wall -g -g0
-DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_NO_DEPRECATED
-DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG  -I"../.." -c -o
"../../bin.v2/tools/quickbook/src/gcc-4.6.1/release/debug-symbols-on/link-static/id_manager.o"
"src/id_manager.cpp"

The error is:

In file included from ../../boost/intrusive_ptr.hpp:16:0,
                 from src/fwd.hpp:15,
                 from src/values.hpp:20,
                 from src/id_manager.hpp:14,
                 from src/id_manager.cpp:9:
../../boost/smart_ptr/intrusive_ptr.hpp: In destructor
‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T = quickbook::file_info]’:
../../boost/smart_ptr/intrusive_ptr.hpp:94:5: internal compiler error:
Segmentation fault

I was building the boost library by downloading the sources from here:
http://packages.ubuntu.com/source/quantal/boost1.49 and using the "debuild"
tool to build installable packages. The build will fail at the above command,
and the command can then be repeated to consistently produce the error 

I have attached the preprocessed source of the offending file,
boost/smart_ptr/intrusive_ptr.hpp


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
@ 2012-05-15  1:01 ` paolo.carlini at oracle dot com
  2012-05-15  1:19 ` rct+gcc at thompsonclan dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-15  1:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-05-14
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-14 23:25:20 UTC ---
Nothing is attached.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
  2012-05-15  1:01 ` [Bug c++/53350] " paolo.carlini at oracle dot com
@ 2012-05-15  1:19 ` rct+gcc at thompsonclan dot org
  2012-05-15  1:49 ` paolo.carlini at oracle dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-15  1:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #2 from Ryan Thompson <rct+gcc at thompsonclan dot org> 2012-05-15 01:12:30 UTC ---
The attachment was too large. I've put it here instead:
http://mneme.dyndns.org/~ryan/cc0UmSiB.out


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
  2012-05-15  1:01 ` [Bug c++/53350] " paolo.carlini at oracle dot com
  2012-05-15  1:19 ` rct+gcc at thompsonclan dot org
@ 2012-05-15  1:49 ` paolo.carlini at oracle dot com
  2012-05-15  8:43 ` rct+gcc at thompsonclan dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-15  1:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-15 01:47:08 UTC ---
Please reduce it (http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction), and,
as an extrema ratio, attach it compressed. Thanks.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (2 preceding siblings ...)
  2012-05-15  1:49 ` paolo.carlini at oracle dot com
@ 2012-05-15  8:43 ` rct+gcc at thompsonclan dot org
  2012-05-15 14:57 ` marc.glisse at normalesup dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-15  8:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #4 from Ryan Thompson <rct+gcc at thompsonclan dot org> 2012-05-15 07:40:00 UTC ---
Ok, I will try to do it. This is my first time reporting a compile bug, so
please be patient with me.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (3 preceding siblings ...)
  2012-05-15  8:43 ` rct+gcc at thompsonclan dot org
@ 2012-05-15 14:57 ` marc.glisse at normalesup dot org
  2012-05-16 20:39 ` rct+gcc at thompsonclan dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marc.glisse at normalesup dot org @ 2012-05-15 14:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #5 from Marc Glisse <marc.glisse at normalesup dot org> 2012-05-15 14:50:42 UTC ---
You may first want to check whether you still get the bug with a more recent
gcc version.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (4 preceding siblings ...)
  2012-05-15 14:57 ` marc.glisse at normalesup dot org
@ 2012-05-16 20:39 ` rct+gcc at thompsonclan dot org
  2012-05-16 23:08 ` rct+gcc at thompsonclan dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-16 20:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #6 from Ryan Thompson <rct+gcc at thompsonclan dot org> 2012-05-16 20:30:29 UTC ---
The problem does not happen with g++ version 4.6.3 as provided in Ubuntu 12.04. 

I'm currently using multidelta to reduce the test case on my 11.10 system with
gcc 4.6.1 (the one that has the bug).


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (5 preceding siblings ...)
  2012-05-16 20:39 ` rct+gcc at thompsonclan dot org
@ 2012-05-16 23:08 ` rct+gcc at thompsonclan dot org
  2012-05-16 23:18 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-16 23:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #7 from Ryan Thompson <rct+gcc at thompsonclan dot org> 2012-05-16 23:07:38 UTC ---
Created attachment 27426
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27426
Test case reduced by multidelta


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (6 preceding siblings ...)
  2012-05-16 23:08 ` rct+gcc at thompsonclan dot org
@ 2012-05-16 23:18 ` pinskia at gcc dot gnu.org
  2012-05-17  1:52 ` rct+gcc at thompsonclan dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-16 23:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-16 23:17:04 UTC ---
Works with:
Using built-in specs.
COLLECT_GCC=/home/apinski/local-gcc/bin/gcc
COLLECT_LTO_WRAPPER=/home/apinski/local-gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/apinski/src/gcc-fsf/local//gcc/configure
--prefix=/home/apinski/local-gcc
Thread model: posix
gcc version 4.8.0 20120428 (experimental) [trunk revision 186934] (GCC)


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (7 preceding siblings ...)
  2012-05-16 23:18 ` pinskia at gcc dot gnu.org
@ 2012-05-17  1:52 ` rct+gcc at thompsonclan dot org
  2012-05-17  6:15 ` glisse at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rct+gcc at thompsonclan dot org @ 2012-05-17  1:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #9 from Ryan Thompson <rct+gcc at thompsonclan dot org> 2012-05-17 00:44:30 UTC ---
The main issue is that it doesn't work in 6.4.1, which is the version provided
in Ubuntu 11.10, which means that anyone running 11.10 won't be able to compile
programs that use this boost header.

Should I file a bug in Launchpad to get the fix backported or something?


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (8 preceding siblings ...)
  2012-05-17  1:52 ` rct+gcc at thompsonclan dot org
@ 2012-05-17  6:15 ` glisse at gcc dot gnu.org
  2012-05-17  6:18 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: glisse at gcc dot gnu.org @ 2012-05-17  6:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #10 from Marc Glisse <glisse at gcc dot gnu.org> 2012-05-17 06:11:43 UTC ---
(In reply to comment #9)
> The main issue is that it doesn't work in 6.4.1, which is the version provided
> in Ubuntu 11.10, which means that anyone running 11.10 won't be able to compile
> programs that use this boost header.
> 
> Should I file a bug in Launchpad to get the fix backported or something?

Contacting your distributor is indeed the only way of getting the fix in your
distribution (don't know what their policy is). Since you say the problem does
not appear with 4.6.3, I guess we can close the bug report here. By the way,
when you say the problem doesn't exist with 4.6.3, did you give it the original
program or the preprocessed sources?


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (9 preceding siblings ...)
  2012-05-17  6:15 ` glisse at gcc dot gnu.org
@ 2012-05-17  6:18 ` pinskia at gcc dot gnu.org
  2012-05-20 20:12 ` rct at thompsonclan dot org
  2012-05-22  7:19 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-17  6:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.3

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-17 06:16:20 UTC ---
Already reported as fixed in 4.6.3 so closing as such.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (10 preceding siblings ...)
  2012-05-17  6:18 ` pinskia at gcc dot gnu.org
@ 2012-05-20 20:12 ` rct at thompsonclan dot org
  2012-05-22  7:19 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: rct at thompsonclan dot org @ 2012-05-20 20:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

--- Comment #12 from rct at thompsonclan dot org 2012-05-20 20:10:09 UTC ---
On 05/16/2012 11:11 PM, glisse at gcc dot gnu.org wrote:
> when you say the problem doesn't exist with 4.6.3, did you give it the 
> original program or the preprocessed sources? 
I gave the same preprocessed source file to g++ 4.6.3 (Ubuntu 12.04), 
and it did not encounter the problem. I never tried to compile the 
original sources with 4.6.3.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug c++/53350] Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
  2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
                   ` (11 preceding siblings ...)
  2012-05-20 20:12 ` rct at thompsonclan dot org
@ 2012-05-22  7:19 ` pinskia at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-22  7:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-22 06:03:10 UTC ---
Fixed as mentioned already.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-05-22  7:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 22:45 [Bug c++/53350] New: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 rct+gcc at thompsonclan dot org
2012-05-15  1:01 ` [Bug c++/53350] " paolo.carlini at oracle dot com
2012-05-15  1:19 ` rct+gcc at thompsonclan dot org
2012-05-15  1:49 ` paolo.carlini at oracle dot com
2012-05-15  8:43 ` rct+gcc at thompsonclan dot org
2012-05-15 14:57 ` marc.glisse at normalesup dot org
2012-05-16 20:39 ` rct+gcc at thompsonclan dot org
2012-05-16 23:08 ` rct+gcc at thompsonclan dot org
2012-05-16 23:18 ` pinskia at gcc dot gnu.org
2012-05-17  1:52 ` rct+gcc at thompsonclan dot org
2012-05-17  6:15 ` glisse at gcc dot gnu.org
2012-05-17  6:18 ` pinskia at gcc dot gnu.org
2012-05-20 20:12 ` rct at thompsonclan dot org
2012-05-22  7:19 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).