From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17041 invoked by alias); 10 Dec 2006 20:08:54 -0000 Received: (qmail 16301 invoked by uid 48); 10 Dec 2006 20:08:35 -0000 Date: Sun, 10 Dec 2006 20:08:00 -0000 Message-ID: <20061210200835.16299.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29975] [meta-bugs] [4.1 and 4.2 only] ICEs with CP2K In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jv244 at cam dot ac dot uk" 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: 2006-12/txt/msg00877.txt.bz2 ------- Comment #29 from jv244 at cam dot ac dot uk 2006-12-10 20:08 ------- Created an attachment (id=12777) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12777&action=view) CP2K input file that causes segfault gcc version 4.3.0 20061210 (experimental) now compiles CP2K (tested on opteron), but unfortunately all CP2K regtests segfault immediately. In order to reproduce, compile the file from comment #1 and link to blas & lapack to get an executable. Try './a.out H2O-1-GENPOT.inp' where the latter file is attached. I'm getting the following backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0000002a95af3f20 in _int_free () from /lib64/tls/libc.so.6 (gdb) bt #0 0x0000002a95af3f20 in _int_free () from /lib64/tls/libc.so.6 #1 0x0000002a95af4367 in free () from /lib64/tls/libc.so.6 #2 0x0000002a956e5ae4 in fd_close (s=Variable "s" is not available. ) at /scratch/vondele/gcc_trunk/gcc/libgfortran/io/unix.c:751 #3 0x0000002a956e480e in close_unit_1 (u=Variable "u" is not available. ) at /scratch/vondele/gcc_trunk/gcc/libgfortran/io/unit.c:593 #4 0x0000000000439628 in __cp_files__close_file (unit_number=@0x1d51bc8, file_status=0x0, _file_status=0) at all_cp2k_gfortran.f90:7000 #5 0x000000000050aae7 in __cp_parser__parser_release (parser=@0x7fbfffbfa8, error=@0x7fbfffe0f0) at all_cp2k_gfortran.f90:32731 #6 0x0000000000679988 in __input_cp2k__create_cp2k_input_reading (file_path=@0x7fbfffef10, para_env=@0x7fbfffe788, error=@0x7fbfffe0f0, _file_path=80) at all_cp2k_gfortran.f90:87724 #7 0x000000000100fdb2 in __cp2k_runs__cp2k_run (input_file_name=@0x7fbfffef10, output_unit=@0x7fbfffeabc, mpi_comm=@0x1934698, _input_file_name=80) at all_cp2k_gfortran.f90:412339 #8 0x000000000100d0b8 in __cp2k_runs__run_input (input_file_path=@0x7fbfffef10, output_file_path=@0x7fbfffeec0, ierr=@0x7fbfffeffc, mpi_comm=0x0, _input_file_path=80, _output_file_path=80) at all_cp2k_gfortran.f90:412970 #9 0x000000000103372f in MAIN__ () at all_cp2k_gfortran.f90:421842 #10 0x00000000016373ce in main (argc=Variable "argc" is not available. ) at /scratch/vondele/gcc_trunk/gcc/libgfortran/fmain.c:18 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975