From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28338 invoked by alias); 29 Jul 2002 10:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28320 invoked by uid 71); 29 Jul 2002 10:36:00 -0000 Resent-Date: 29 Jul 2002 10:36:00 -0000 Resent-Message-ID: <20020729103600.28319.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Thorsten@meinl.bnv-bamberg.de Received: (qmail 24489 invoked by uid 61); 29 Jul 2002 10:26:48 -0000 Message-Id: <20020729102648.24488.qmail@sources.redhat.com> Date: Mon, 29 Jul 2002 03:36:00 -0000 From: Thorsten@meinl.bnv-bamberg.de Reply-To: Thorsten@meinl.bnv-bamberg.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/7429: SEGV in linuxthreads with gcc 3.1.1 and omit-fp or -O3 X-SW-Source: 2002-07/txt/msg00760.txt.bz2 List-Id: >Number: 7429 >Category: optimization >Synopsis: SEGV in linuxthreads with gcc 3.1.1 and omit-fp or -O3 >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Jul 29 03:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Thorsten@meinl.bnv-bamberg.de >Release: gcc 3.1.1 >Organization: >Environment: Linux 2.4.18, glibc 2.2.5, gcc 3.1.1, Athlon XP 1800+ >Description: When compiling linuxthreads with omit-fp or optimization level > -O2 applications linked against it segfault, e.g. ls from fileutils. I tracked down the error place to __errno_location (it happens for example when you call opendir). When you do not link against it everything works fine with all optimization levels. Also statical linkage works. Also the test ex1 for linuxthreads does not work (but this may be another problem). >How-To-Repeat: Compile glibc-2.2.5 + linuxthreads with "-O3 -fomit-frame-pointer -march=athlon -pipe" and afterwards fileutils. ls will the segfault in __errno_location. Or use opendir in any program and link it dynamically against pthreads. >Fix: >Release-Note: >Audit-Trail: >Unformatted: