From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14798 invoked by alias); 17 Apr 2007 13:03:28 -0000 Received: (qmail 14759 invoked by uid 48); 17 Apr 2007 13:03:13 -0000 Date: Tue, 17 Apr 2007 13:03:00 -0000 Message-ID: <20070417130313.14758.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/31604] Segfault at runtime on I/O with OpenMP and static linking In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg01221.txt.bz2 ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-04-17 14:03 ------- It also fails with non-preconnected unit, if the unit is opened outside the parallel region: $ cat hello.f90 integer :: tid open (10, file="foo") !$omp parallel private(tid) tid = 0 if (tid .eq. 0) write(10,*) 'hello' !$omp end parallel end $ gfortran -fopenmp hello.f90 -g -static && ./a.out zsh: segmentation fault ./a.out -- fxcoudert 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 |2007-04-17 14:03:13 date| | Summary|Segfault at runtime on I/O |Segfault at runtime on I/O |to preconnected unit with |with OpenMP and static |OpenMP |linking http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31604