bin/112408: tcsh causes gdb to hang

Abdullah Ibn Hamad Al-Marri almarrie at gmail.com
Fri May 4 08:10:14 UTC 2007


The following reply was made to PR bin/112408; it has been noted by GNATS.

From: "Abdullah Ibn Hamad Al-Marri" <almarrie at gmail.com>
To: "Steven G. Kargl" <kargl at troutmask.apl.washington.edu>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: bin/112408: tcsh causes gdb to hang
Date: Fri, 4 May 2007 04:46:14 -0300

 On 5/4/07, Steven G. Kargl <kargl at troutmask.apl.washington.edu> wrote:
 >
 > >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 at mobile.kargl.org:/usr/obj/usr/src/sys/MOBILE  i386
 
 Maybe you need to check this port problem.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=100067
 
 -- 
 Regards,
 
 -Abdullah Ibn Hamad Al-Marri
 Arab Portal
 http://www.WeArab.Net/


More information about the freebsd-bugs mailing list