public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48338] New: [4.7 Regression] Glibc miscompiled
@ 2011-03-29 14:51 hjl.tools at gmail dot com
  2011-03-29 22:48 ` [Bug target/48338] " hjl.tools at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-29 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] Glibc miscompiled
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


On Linux/ia32, GCC 4.7.0 revision 171601 miscompiled glibc trunk.
I got

[hjl@gnu-6 glibc-32bit]$
GCONV_PATH=/export/build/gnu/glibc-32bit/build-i686-linux/iconvdata LC_ALL=C  
/export/build/gnu/glibc-32bit/build-i686-linux/elf/ld-linux.so.2 --library-path
/export/build/gnu/glibc-32bit/build-i686-linux:/export/build/gnu/glibc-32bit/build-i686-linux/math:/export/build/gnu/glibc-32bit/build-i686-linux/elf:/export/build/gnu/glibc-32bit/build-i686-linux/dlfcn:/export/build/gnu/glibc-32bit/build-i686-linux/nss:/export/build/gnu/glibc-32bit/build-i686-linux/nis:/export/build/gnu/glibc-32bit/build-i686-linux/rt:/export/build/gnu/glibc-32bit/build-i686-linux/resolv:/export/build/gnu/glibc-32bit/build-i686-linux/crypt:/export/build/gnu/glibc-32bit/build-i686-linux/nptl
/export/build/gnu/glibc-32bit/build-i686-linux/nptl/tst-cancel17 --direct
going to cancel tf in-time
Segmentation fault
[hjl@gnu-6 glibc-32bit]$
GCONV_PATH=/export/build/gnu/glibc-32bit/build-i686-linux/iconvdata LC_ALL=C  
/export/build/gnu/glibc-32bit/build-i686-linux/elf/ld-linux.so.2 --library-path
/export/build/gnu/glibc-32bit/build-i686-linux:/export/build/gnu/glibc-32bit/build-i686-linux/math:/export/build/gnu/glibc-32bit/build-i686-linux/elf:/export/build/gnu/glibc-32bit/build-i686-linux/dlfcn:/export/build/gnu/glibc-32bit/build-i686-linux/nss:/export/build/gnu/glibc-32bit/build-i686-linux/nis:/export/build/gnu/glibc-32bit/build-i686-linux/rt:/export/build/gnu/glibc-32bit/build-i686-linux/resolv:/export/build/gnu/glibc-32bit/build-i686-linux/crypt:/export/build/gnu/glibc-32bit/build-i686-linux/nptl
/export/build/gnu/glibc-32bit/build-i686-linux/nptl/tst-cancelx17 --direct
going to cancel tf in-time
Segmentation fault
[hjl@gnu-6 glibc-32bit]$


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
@ 2011-03-29 22:48 ` hjl.tools at gmail dot com
  2011-03-29 22:49 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-29 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |4.7.0

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-29 22:35:08 UTC ---
It is caused by revision 171450:

http://gcc.gnu.org/ml/gcc-cvs/2011-03/msg00874.html


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
  2011-03-29 22:48 ` [Bug target/48338] " hjl.tools at gmail dot com
@ 2011-03-29 22:49 ` hjl.tools at gmail dot com
  2011-03-30  2:11 ` hp at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-29 22:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-29 22:36:52 UTC ---
I used

CC="gcc -m32" CXX="g++ -m32" CFLAGS="-O2 -g -march=i686"
/export/gnu/import/git/glibc/configure --enable-add-ons=nptl --prefix=/usr
--without-cvs --enable-multi-arch --enable-test-multi-arch --target=i686-linux
--build=i686-linux --host=i686-linux --enable-kernel=2.6.35

to configure glibc on Linux/x86-64.


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2011-03-30  2:11 ` hp at gcc dot gnu.org
@ 2011-03-30  2:11 ` hp at gcc dot gnu.org
  2011-03-30  8:39 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-03-30  2:11 UTC (permalink / raw)
  To: gcc-bugs

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

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu.org

--- Comment #3 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-03-30 01:45:20 UTC ---
I'm guessing this is the recent RA changes in r171649.


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
  2011-03-29 22:48 ` [Bug target/48338] " hjl.tools at gmail dot com
  2011-03-29 22:49 ` hjl.tools at gmail dot com
@ 2011-03-30  2:11 ` hp at gcc dot gnu.org
  2011-03-30  2:11 ` hp at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-03-30  2:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-03-30 01:48:45 UTC ---
(In reply to comment #3)
> I'm guessing this is the recent RA changes in r171649.

Oops, sorry; you already triaged it.


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2011-03-30  2:11 ` hp at gcc dot gnu.org
@ 2011-03-30  8:39 ` rguenth at gcc dot gnu.org
  2011-04-13 10:38 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-30  8:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.03.30 08:28:55
     Ever Confirmed|0                           |1

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-30 08:28:55 UTC ---
Testcase?  (early FRE probably only triggers latent bugs)


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2011-03-30  8:39 ` rguenth at gcc dot gnu.org
@ 2011-04-13 10:38 ` jakub at gcc dot gnu.org
  2011-04-13 11:07 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-13 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-13 10:37:54 UTC ---
Seems aio_suspend.c is problematic.  Strangely, it segfaults even when
aio_suspend.c is built with gcc 4.5 or 4.4, but with -O0 -D__OPTIMIZE__ instead
of
-O2, so it probably relies on some optimization that is no longer occurring
after the FRE changes.


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2011-04-13 10:38 ` jakub at gcc dot gnu.org
@ 2011-04-13 11:07 ` jakub at gcc dot gnu.org
  2011-08-19 14:39 ` hjl.tools at gmail dot com
  2011-08-23 13:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-13 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-13 11:06:48 UTC ---
With gcc 4.6 built aio_suspend.os, it works even with -O0 or -O2 -fno-inline,
if __pthread_cleanup_routine has __attribute__((always_inline)).
With current trunk, even if that routine is inlined it crashes though.


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2011-04-13 11:07 ` jakub at gcc dot gnu.org
@ 2011-08-19 14:39 ` hjl.tools at gmail dot com
  2011-08-23 13:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-19 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-19 14:34:33 UTC ---
This may be a glibc bug:

http://sourceware.org/ml/libc-alpha/2011-08/msg00063.html


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

* [Bug target/48338] [4.7 Regression] Glibc miscompiled
  2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2011-08-19 14:39 ` hjl.tools at gmail dot com
@ 2011-08-23 13:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-08-23 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-23 13:29:04 UTC ---
As discussed on the libc-alpha mailing list, this is a glibc bug.


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

end of thread, other threads:[~2011-08-23 13:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 14:51 [Bug target/48338] New: [4.7 Regression] Glibc miscompiled hjl.tools at gmail dot com
2011-03-29 22:48 ` [Bug target/48338] " hjl.tools at gmail dot com
2011-03-29 22:49 ` hjl.tools at gmail dot com
2011-03-30  2:11 ` hp at gcc dot gnu.org
2011-03-30  2:11 ` hp at gcc dot gnu.org
2011-03-30  8:39 ` rguenth at gcc dot gnu.org
2011-04-13 10:38 ` jakub at gcc dot gnu.org
2011-04-13 11:07 ` jakub at gcc dot gnu.org
2011-08-19 14:39 ` hjl.tools at gmail dot com
2011-08-23 13:50 ` jakub 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).