public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm
@ 2011-11-29 19:37 roman at tsisyk dot com
  2011-11-29 19:43 ` [Bug c++/51347] " roman at tsisyk dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: roman at tsisyk dot com @ 2011-11-29 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51347
           Summary: [trans-mem] Segfault on templates with -O1 -fgnu-tm
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: roman@tsisyk.com
             Build: trunk Revision 181801


Created attachment 25946
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25946
Testcase

I am doing some experiments with the transaction memory feature, which has
recently been merged to the main trunk. Currently, one of my tests causes g++
segfault. 
---
main.cpp: In member function 'void BugContainer<ValueType>::bug() [with
ValueType = Info]':
main.cpp:35:1: internal compiler error: Segmentation fault
---

It is always reproducible and tested on various configurations. 
I simplified code and made reduced testcase.

gcc from the trunk rev 181801 date 20111129. 
Debian gcc-snapshot 20111114 has some problems.

--
Configured with: ../configure --prefix=/usr/lib/gcc-snapshot
--disable-bootstrap --enable-languages=c,c++ --enable-shared
--enable-linker-build-id --with-system-zlib --disable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
--with-arch-directory=amd64 --with-arch-32=i586 --with-tune=generic
--disable-werror --enable-checking=yes --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.0 20111129 (experimental) (GCC) 
--


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

* [Bug c++/51347] [trans-mem] Segfault on templates with -O1 -fgnu-tm
  2011-11-29 19:37 [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm roman at tsisyk dot com
@ 2011-11-29 19:43 ` roman at tsisyk dot com
  2011-12-03  2:24 ` patrick.marlier at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: roman at tsisyk dot com @ 2011-11-29 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Roman Tsisyk <roman at tsisyk dot com> 2011-11-29 18:59:31 UTC ---
Created attachment 25947
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25947
gcc output 20111129


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

* [Bug c++/51347] [trans-mem] Segfault on templates with -O1 -fgnu-tm
  2011-11-29 19:37 [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm roman at tsisyk dot com
  2011-11-29 19:43 ` [Bug c++/51347] " roman at tsisyk dot com
@ 2011-12-03  2:24 ` patrick.marlier at gmail dot com
  2011-12-03 10:37 ` roman at tsisyk dot com
  2011-12-12 16:45 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: patrick.marlier at gmail dot com @ 2011-12-03  2:24 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Marlier <patrick.marlier at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |patrick.marlier at gmail
                   |                            |dot com

--- Comment #2 from Patrick Marlier <patrick.marlier at gmail dot com> 2011-12-03 02:24:12 UTC ---
Proposed patch here:
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00225.html

Thanks for reporting!
Patrick Marlier.


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

* [Bug c++/51347] [trans-mem] Segfault on templates with -O1 -fgnu-tm
  2011-11-29 19:37 [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm roman at tsisyk dot com
  2011-11-29 19:43 ` [Bug c++/51347] " roman at tsisyk dot com
  2011-12-03  2:24 ` patrick.marlier at gmail dot com
@ 2011-12-03 10:37 ` roman at tsisyk dot com
  2011-12-12 16:45 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: roman at tsisyk dot com @ 2011-12-03 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Roman Tsisyk <roman at tsisyk dot com> 2011-12-03 10:37:02 UTC ---
Works for me.
Thanks for the fix.


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

* [Bug c++/51347] [trans-mem] Segfault on templates with -O1 -fgnu-tm
  2011-11-29 19:37 [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm roman at tsisyk dot com
                   ` (2 preceding siblings ...)
  2011-12-03 10:37 ` roman at tsisyk dot com
@ 2011-12-12 16:45 ` aldyh at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: aldyh at gcc dot gnu.org @ 2011-12-12 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |aldyh at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2011-12-12 16:39:34 UTC ---
This was actually fixed here:

http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00427.html

The proposed patch seems to be fixing something else, as discussed in this
thread:

http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00427.html

Closing...


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

end of thread, other threads:[~2011-12-12 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 19:37 [Bug c++/51347] New: [trans-mem] Segfault on templates with -O1 -fgnu-tm roman at tsisyk dot com
2011-11-29 19:43 ` [Bug c++/51347] " roman at tsisyk dot com
2011-12-03  2:24 ` patrick.marlier at gmail dot com
2011-12-03 10:37 ` roman at tsisyk dot com
2011-12-12 16:45 ` aldyh 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).