public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/47852] New: crash with g++ -lpthread on irix
@ 2011-02-22 22:47 bugzilla-gcc at thewrittenword dot com
  2011-02-25 18:50 ` [Bug target/47852] " ro at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-gcc at thewrittenword dot com @ 2011-02-22 22:47 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: crash with g++ -lpthread on irix
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bugzilla-gcc@thewrittenword.com
                CC: ro@CeBiTec.Uni-Bielefeld.DE
              Host: mips-sgi-irix6.5
            Target: mips-sgi-irix6.5
             Build: mips-sgi-irix6.5


gcc-4.4.5 on IRIX 6.5 produces an executable that crashes at runtime if
-lpthread appears before -lstdc++ on the link line.


% echo 'int main() {}' >a.cpp
% g++ a.cpp -lpthread -pthread; ./a.out; echo $?
zsh: segmentation fault (core dumped)  ./a.out
139


See also the discussion here:

http://gcc.gnu.org/ml/gcc-help/2011-02/msg00335.html

http://gcc.gnu.org/ml/gcc-help/2011-02/msg00368.html


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
@ 2011-02-25 18:50 ` ro at gcc dot gnu.org
  2011-03-25 20:00 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-25 18:50 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.02.25 18:31:39
                 CC|                            |ro at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |ro at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-25 18:31:39 UTC ---
Mine.  As suspected, libstdc++.so needs to be linked with -lpthread since
emutls
uses pthread_* functions, while libc provides only stubs for some of them.

I'll regtest the corresponding trivial patch over the weekend.


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
  2011-02-25 18:50 ` [Bug target/47852] " ro at gcc dot gnu.org
@ 2011-03-25 20:00 ` jakub at gcc dot gnu.org
  2011-04-28 16:31 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-25 20:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.6.1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-25 19:52:37 UTC ---
GCC 4.6.0 is being released, adjusting target milestone.


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
  2011-02-25 18:50 ` [Bug target/47852] " ro at gcc dot gnu.org
  2011-03-25 20:00 ` jakub at gcc dot gnu.org
@ 2011-04-28 16:31 ` rguenth at gcc dot gnu.org
  2012-01-12 10:23 ` ro at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.1                       |---


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
                   ` (2 preceding siblings ...)
  2011-04-28 16:31 ` rguenth at gcc dot gnu.org
@ 2012-01-12 10:23 ` ro at gcc dot gnu.org
  2012-01-17 15:46 ` ro at gcc dot gnu.org
  2012-01-17 16:05 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2012-01-12 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2012-01/msg00607.htm
                   |                            |l
   Target Milestone|---                         |4.7.0

--- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> 2012-01-12 10:23:01 UTC ---
Patch submitted.


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
                   ` (3 preceding siblings ...)
  2012-01-12 10:23 ` ro at gcc dot gnu.org
@ 2012-01-17 15:46 ` ro at gcc dot gnu.org
  2012-01-17 16:05 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2012-01-17 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> 2012-01-17 15:41:17 UTC ---
Author: ro
Date: Tue Jan 17 15:41:10 2012
New Revision: 183251

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183251
Log:
Link libstdc++ with -lpthread on IRIX 6 (PR target/47852)

    PR target/47852
    * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/configure.host


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

* [Bug target/47852] crash with g++ -lpthread on irix
  2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
                   ` (4 preceding siblings ...)
  2012-01-17 15:46 ` ro at gcc dot gnu.org
@ 2012-01-17 16:05 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2012-01-17 16:05 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

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

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> 2012-01-17 15:45:59 UTC ---
Fixed for 4.7.0.


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

end of thread, other threads:[~2012-01-17 15:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 22:47 [Bug driver/47852] New: crash with g++ -lpthread on irix bugzilla-gcc at thewrittenword dot com
2011-02-25 18:50 ` [Bug target/47852] " ro at gcc dot gnu.org
2011-03-25 20:00 ` jakub at gcc dot gnu.org
2011-04-28 16:31 ` rguenth at gcc dot gnu.org
2012-01-12 10:23 ` ro at gcc dot gnu.org
2012-01-17 15:46 ` ro at gcc dot gnu.org
2012-01-17 16:05 ` ro 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).