From owner-freebsd-bugs@FreeBSD.ORG Fri May 4 05:30:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF93A16A403 for ; Fri, 4 May 2007 05:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9D95D13C448 for ; Fri, 4 May 2007 05:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l445U55p064503 for ; Fri, 4 May 2007 05:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l445U5Ck064500; Fri, 4 May 2007 05:30:05 GMT (envelope-from gnats) Resent-Date: Fri, 4 May 2007 05:30:05 GMT Resent-Message-Id: <200705040530.l445U5Ck064500@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Steven G. Kargl" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C629A16A403 for ; Fri, 4 May 2007 05:29:34 +0000 (UTC) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id A169413C44B for ; Fri, 4 May 2007 05:29:34 +0000 (UTC) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.1/8.13.8) with ESMTP id l445RLxB054155 for ; Thu, 3 May 2007 22:27:21 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.14.1/8.13.8/Submit) id l445RHCw054154; Thu, 3 May 2007 22:27:17 -0700 (PDT) (envelope-from kargl) Message-Id: <200705040527.l445RHCw054154@troutmask.apl.washington.edu> Date: Thu, 3 May 2007 22:27:17 -0700 (PDT) From: "Steven G. Kargl" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/112408: tcsh causes gdb to hang X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Steven G. Kargl" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 05:30:05 -0000 >Number: 112408 >Category: bin >Synopsis: tcsh causes gdb to hang >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 04 05:30:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Steven G. Kargl >Release: FreeBSD 7.0-CURRENT i386 >Organization: APL/UW >Environment: >Description: tcsh causes gdb to hang. I've compile gfortran 4.3 from gcc.gnu.org svn repository. Trying to debug a gfortran compiler bug via mobile:kargl[254] gdb ~/work/4x/libexec/gcc/i386-unknown-freebsd7.0/4.3.0/f951 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) run b.f90 Starting program: ~/work/4x/libexec/gcc/i386-unknown-freebsd7.0/4.3.0/f951 b.f90 leads to 43 processes: 3 running, 38 sleeping, 1 stopped, 1 zombie CPU states: 41.6% user, 0.0% nice, 57.6% system, 0.8% interrupt, 0.0% idle Mem: 104M Active, 283M Inact, 78M Wired, 27M Cache, 60M Buf, 1776K Free Swap: 712M Total, 712M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 97164 kargl 1 127 0 30364K 28192K RUN 0:30 66.97% gdb 97166 kargl 1 106 0 3240K 1580K STOP 0:10 23.67% tcsh where tcsh sits in a stopped state. If I do mobile:kargl[253] setenv SHELL /bin/sh mobile:kargl[254] gdb ~/work/4x/libexec/gcc/i386-unknown-freebsd7.0/4.3.0/f951 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) run b.f90 Starting program: ~/work/4x/libexec/gcc/i386-unknown-freebsd7.0/4.3.0/f951 b.f90 b.f90:1.16: character(len=2.3) :: s 1 Error: Expression at (1) must be of INTEGER type b.f90:1.16: character(len=2.3) :: s 1 Error: Expression at (1) must be of INTEGER type Program received signal SIGSEGV, Segmentation fault. 0x287c4cf1 in __gmpn_copyi () from /usr/local/lib/libgmp.so.7 (gdb) bt (gdb) bt #0 0x287c4cf1 in __gmpn_copyi () from /usr/local/lib/libgmp.so.7 #1 0x287b5413 in __gmpz_set () from /usr/local/lib/libgmp.so.7 #2 0x0809495b in gfc_simplify_len (e=0x28932260) at ../../gcc4x/gcc/fortran/simplify.c:2143 #3 0x0806ba1d in do_simplify (specific=0x28941b70, e=0x28932200) at ../../gcc4x/gcc/fortran/intrinsic.c:3134 #4 0x0806bde1 in gfc_intrinsic_func_interface (expr=0x28932200, error_flag=680567168) at ../../gcc4x/gcc/fortran/intrinsic.c:3395 #5 0x08089b91 in gfc_resolve_expr (e=0x28932200) at ../../gcc4x/gcc/fortran/resolve.c:1456 #6 0x0808bf4d in resolve_code (code=0x2892c9c0, ns=0x28938000) at ../../gcc4x/gcc/fortran/resolve.c:5091 #7 0x0808d7ee in gfc_resolve_blocks (b=0x2892ca00, ns=0x28938000) at ../../gcc4x/gcc/fortran/resolve.c:5024 #8 0x0808bf31 in resolve_code (code=0x2892ca80, ns=0x28938000) at ../../gcc4x/gcc/fortran/resolve.c:5083 #9 0x0808ee65 in resolve_codes (ns=0x28938000) at ../../gcc4x/gcc/fortran/resolve.c:7386 #10 0x0808ee93 in gfc_resolve (ns=0x28938000) at ../../gcc4x/gcc/fortran/resolve.c:7405 #11 0x08084032 in gfc_parse_file () at ../../gcc4x/gcc/fortran/parse.c:3248 #12 0x080a0b10 in gfc_be_parse_file (set_yydebug=0) at ../../gcc4x/gcc/fortran/f95-lang.c:305 #13 0x082b4bcd in toplev_main (argc=2, argv=0xbfbfe8a3) at ../../gcc4x/gcc/toplev.c:1051 #14 0x080d795b in main (argc=2, argv=0xbfbfe734) at ../../gcc4x/gcc/main.c:35 This is the expected backtrace. >How-To-Repeat: Use FreeBSD-i386 with the newest tcsh code. Build gfortran from GCC repository. Try to debug this program mobile:kargl[256] cat b.f90 character(len=2.3) :: s print *, len(s) end >Fix: Revert the recent tcsh upgrade. >Release-Note: >Audit-Trail: >Unformatted: >Environmentle:kargl[255] uname -a FreeBSD mobile.kargl.org 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sun Apr 29 10:49:22 PDT 2007 root@mobile.kargl.org:/usr/obj/usr/src/sys/MOBILE i386