public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32344]  New: Exception handling crash on multi-threaded Solaris/Sparc
@ 2007-06-14 16:23 a dot l dot sveikauskas at gmail dot com
  2007-06-14 16:25 ` [Bug c++/32344] " a dot l dot sveikauskas at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: a dot l dot sveikauskas at gmail dot com @ 2007-06-14 16:23 UTC (permalink / raw)
  To: gcc-bugs

On multiprocessor Solaris Sparc machines, if multiple threads are concurrently
throwing exceptions, and another thread is calling exit() or returning from
main(), there are messages such as:

   terminate called recursively
   terminate called after throwing an instance of '

And sometimes core is dumped with an abort signal.

I have been able to reproduce this on a number of different gcc versions
(4.2.0, 4.1.2, 2.95.2).  You can find the code I use to reproduce it at:
http://www.csug.rochester.edu/users/ugrads/asveikau/exception_bug.cc  Note that
running it once without incident does not mean the system is unaffected by the
bug; keep running it until it dumps core.

The code runs file on: SunPRO C++ on the affected systems, gcc 4.1.1 on i386
linux, and gcc 3.2.3 on i386 linux.  This is why I concluded that the issue is
specific to either gcc on Solaris or gcc on Sparc.  Since it works fine on
Sun's compiler, I don't think it is Solaris's fault.  I don't have access to
sparc linux or x86 solaris, so I couldn't narrow it down beyond that.


-- 
           Summary: Exception handling crash on multi-threaded Solaris/Sparc
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: a dot l dot sveikauskas at gmail dot com
 GCC build triplet: sparc-sun-solaris2.10, sparc-sun-solaris2.9, sparc-sun-
                    solaris2.
  GCC host triplet: sparc-sun-solaris2.10, sparc-sun-solaris2.9, sparc-sun-
                    solaris2.
GCC target triplet: sparc-sun-solaris2.10, sparc-sun-solaris2.9, sparc-sun-
                    solaris2.


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


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

* [Bug c++/32344] Exception handling crash on multi-threaded Solaris/Sparc
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
@ 2007-06-14 16:25 ` a dot l dot sveikauskas at gmail dot com
  2007-06-23 10:33 ` [Bug c++/32344] Exception handling crash in multi-threaded program ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: a dot l dot sveikauskas at gmail dot com @ 2007-06-14 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from a dot l dot sveikauskas at gmail dot com  2007-06-14 16:25 -------
Created an attachment (id=13703)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13703&action=view)
Code that reproduces the problem


-- 


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


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

* [Bug c++/32344] Exception handling crash in multi-threaded program
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
  2007-06-14 16:25 ` [Bug c++/32344] " a dot l dot sveikauskas at gmail dot com
@ 2007-06-23 10:33 ` ebotcazou at gcc dot gnu dot org
  2008-11-30 12:17 ` [Bug c++/32344] crash with EH on multiprocessor machines ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2007-06-23 10:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
           Severity|major                       |normal
  GCC build triplet|sparc-sun-solaris2.10,      |sparc-sun-solaris2.*
                   |sparc-sun-solaris2.9, sparc-|
                   |sun-solaris2.               |
   GCC host triplet|sparc-sun-solaris2.10,      |sparc-sun-solaris2.*
                   |sparc-sun-solaris2.9, sparc-|
                   |sun-solaris2.               |
 GCC target triplet|sparc-sun-solaris2.10,      |sparc-sun-solaris2.*
                   |sparc-sun-solaris2.9, sparc-|
                   |sun-solaris2.               |
            Summary|Exception handling crash on |Exception handling crash in
                   |multi-threaded Solaris/Sparc|multi-threaded program


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


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

* [Bug c++/32344] crash with EH on multiprocessor machines
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
  2007-06-14 16:25 ` [Bug c++/32344] " a dot l dot sveikauskas at gmail dot com
  2007-06-23 10:33 ` [Bug c++/32344] Exception handling crash in multi-threaded program ebotcazou at gcc dot gnu dot org
@ 2008-11-30 12:17 ` ebotcazou at gcc dot gnu dot org
  2008-11-30 12:25 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-11-30 12:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-30 12:16:09
               date|                            |
            Summary|Exception handling crash in |crash with EH on
                   |multi-threaded program      |multiprocessor machines


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


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

* [Bug c++/32344] crash with EH on multiprocessor machines
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
                   ` (2 preceding siblings ...)
  2008-11-30 12:17 ` [Bug c++/32344] crash with EH on multiprocessor machines ebotcazou at gcc dot gnu dot org
@ 2008-11-30 12:25 ` ebotcazou at gcc dot gnu dot org
  2008-12-01  0:11 ` [Bug target/32344] " pinskia at gcc dot gnu dot org
  2009-11-16 17:51 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-11-30 12:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ebotcazou at gcc dot gnu dot|
                   |org                         |
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-11-30 12:16:09         |2008-11-30 12:24:24
               date|                            |


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


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

* [Bug target/32344] crash with EH on multiprocessor machines
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
                   ` (3 preceding siblings ...)
  2008-11-30 12:25 ` ebotcazou at gcc dot gnu dot org
@ 2008-12-01  0:11 ` pinskia at gcc dot gnu dot org
  2009-11-16 17:51 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-01  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-01 00:10 -------
Hmm, shouldn't the unwinder using pthreads mutex's already?

What is the output of "gcc -v" is the thread model set to single?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target


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


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

* [Bug target/32344] crash with EH on multiprocessor machines
  2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
                   ` (4 preceding siblings ...)
  2008-12-01  0:11 ` [Bug target/32344] " pinskia at gcc dot gnu dot org
@ 2009-11-16 17:51 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2009-11-16 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebotcazou at gcc dot gnu dot org  2009-11-16 17:51 -------
I can reproduce with mainline on a bi-processor machine (Sun-Fire-V240) running
Solaris 10 but neither on a bi-processor machine (Sun-Fire-V240) runnning
Solaris 9 nor on a quadri-processor machine (Sun-Fire-V440) running Solaris 8.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2008-11-30 12:24:24         |2009-11-16 17:51:47
               date|                            |


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


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

end of thread, other threads:[~2009-11-16 17:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 16:23 [Bug c++/32344] New: Exception handling crash on multi-threaded Solaris/Sparc a dot l dot sveikauskas at gmail dot com
2007-06-14 16:25 ` [Bug c++/32344] " a dot l dot sveikauskas at gmail dot com
2007-06-23 10:33 ` [Bug c++/32344] Exception handling crash in multi-threaded program ebotcazou at gcc dot gnu dot org
2008-11-30 12:17 ` [Bug c++/32344] crash with EH on multiprocessor machines ebotcazou at gcc dot gnu dot org
2008-11-30 12:25 ` ebotcazou at gcc dot gnu dot org
2008-12-01  0:11 ` [Bug target/32344] " pinskia at gcc dot gnu dot org
2009-11-16 17:51 ` ebotcazou at gcc dot gnu dot 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).