public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35080]  New: __thread generators a.out that creates segmentation fault
@ 2008-02-04 18:27 xindong at ccs dot neu dot edu
  2008-09-06 21:29 ` [Bug c++/35080] " vz-gcc at zeitlins dot org
  0 siblings, 1 reply; 2+ messages in thread
From: xindong at ccs dot neu dot edu @ 2008-02-04 18:27 UTC (permalink / raw)
  To: gcc-bugs

We were using g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6.9) on Linux 2.6.24.14 SMP
X86_64 GNU/Linux 4-core Intel @2.66GHz.

We executed: g++ -O0 test.cc

             ./a.out

./a.out causes segmentation fault.

The file test.cc folows below:

__thread int testarray[2];

int main()
{
  int i = 2;
  testarray[i-1] = 1;
  int p;
  p = testarray[i-1];
  p = p + 1;
  printf("%d\n", p);
  return 0;
}


-- 
           Summary: __thread generators a.out that creates segmentation
                    fault
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: xindong at ccs dot neu dot edu


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


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

* [Bug c++/35080] __thread generators a.out that creates segmentation fault
  2008-02-04 18:27 [Bug c++/35080] New: __thread generators a.out that creates segmentation fault xindong at ccs dot neu dot edu
@ 2008-09-06 21:29 ` vz-gcc at zeitlins dot org
  0 siblings, 0 replies; 2+ messages in thread
From: vz-gcc at zeitlins dot org @ 2008-09-06 21:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from vz-gcc at zeitlins dot org  2008-09-06 21:27 -------
I found this bug while searching for __thread-related problems and FWIW I can't
reproduce this on a very similar system with g++ 4.1.2 from Debian stable so
maybe this can be closed as fixed.


-- 


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


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

end of thread, other threads:[~2008-09-06 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 18:27 [Bug c++/35080] New: __thread generators a.out that creates segmentation fault xindong at ccs dot neu dot edu
2008-09-06 21:29 ` [Bug c++/35080] " vz-gcc at zeitlins 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).