From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 7 06:10:04 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEF7D106567E for ; Mon, 7 Jul 2008 06:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B5888FC14 for ; Mon, 7 Jul 2008 06:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m676A4KS078689 for ; Mon, 7 Jul 2008 06:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m676A4LF078688; Mon, 7 Jul 2008 06:10:04 GMT (envelope-from gnats) Date: Mon, 7 Jul 2008 06:10:04 GMT Message-Id: <200807070610.m676A4LF078688@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Dmitry Andrianov" <666.root@gmail.com> Cc: Subject: Re: bin/125185: csh(1) exit on signal 11 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Andrianov <666.root@gmail.com> List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 06:10:04 -0000 The following reply was made to PR bin/125185; it has been noted by GNATS. From: "Dmitry Andrianov" <666.root@gmail.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/125185: csh(1) exit on signal 11 Date: Mon, 7 Jul 2008 09:50:57 +0400 ------=_Part_14193_4801070.1215409858025 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Possibly, you will be helped by a next text. ==== [root@zingel /]# gdb /bin/csh 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"...(no debugging symbols found)... (gdb) break main Function "main" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (main) pending. (gdb) r Starting program: /bin/csh (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...% (gdb) break main Function "main" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 2 (main) pending. (gdb) disass Dump of assembler code for function read: 0x281f83cc : mov $0x3,%eax 0x281f83d1 : int $0x80 0x281f83d3 : jb 0x281f83b8 0x281f83d5 : ret 0x281f83d6 : nop 0x281f83d7 : nop 0x281f83d8 : nop 0x281f83d9 : nop 0x281f83da : nop 0x281f83db : nop 0x281f83dc : nop 0x281f83dd : nop 0x281f83de : nop 0x281f83df : nop 0x281f83e0 : push %ebp 0x281f83e1 : mov %esp,%ebp 0x281f83e3 : push %ebx 0x281f83e4 : call 0x2813f6f7 <_fini+200803> 0x281f83e9 : add $0x1040f,%ebx 0x281f83ef : sub $0x34,%esp 0x281f83f2 : mov 0x147a4(%ebx),%eax 0x281f83f8 : test %eax,%eax ---Type to continue, or q to quit--- 0x281f83fa : je 0x281f8402 0x281f83fc : add $0x34,%esp 0x281f83ff : pop %ebx 0x281f8400 : pop %ebp 0x281f8401 : ret ---Type to continue, or q to quit--- (gdb) break *0x281f8401 Breakpoint 3 at 0x281f8401 (gdb) cont Continuing. %"`perl -e "print 'A' x1024"` * 0" Unmatched `. Program received signal SIGSEGV, Segmentation fault. 0x28183862 in calloc () from /lib/libc.so.7 (gdb) i r eax 0x8092ef4 134819572 ecx 0xc 12 edx 0x8092ef4 134819572 ebx 0x282087f8 673220600 esp 0xbfbfe7b0 0xbfbfe7b0 ebp 0xbfbfe7f8 0xbfbfe7f8 esi 0x8000000 134217728 edi 0x1 1 eip 0x28183862 0x28183862 eflags 0x10297 66199 cs 0x33 51 ss 0x3b 59 ds 0x3b 59 es 0x3b 59 fs 0x3b 59 gs 0x1b 27 (gdb)quit ===== Thank you. ------=_Part_14193_4801070.1215409858025 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Possibly, you will be helped by a next text.

====
[root@zingel /]# gdb /bin/csh
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"...(no debugging symbols
found)...

(gdb) break main
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (main) pending.
(gdb) r
Starting program: /bin/csh
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...%
(gdb) break main
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 2 (main) pending.
(gdb) disass
Dump of assembler code for function read:
0x281f83cc <read+0>:   mov    $0x3,%eax
0x281f83d1 <read+5>:   int    $0x80
0x281f83d3 <read+7>:   jb     0x281f83b8 <write+12>
0x281f83d5 <read+9>:   ret   
0x281f83d6 <read+10>:   nop   
0x281f83d7 <read+11>:   nop   
0x281f83d8 <read+12>:   nop   
0x281f83d9 <read+13>:   nop   
0x281f83da <read+14>:   nop   
0x281f83db <read+15>:   nop   
0x281f83dc <read+16>:   nop   
0x281f83dd <read+17>:   nop   
0x281f83de <read+18>:   nop   
0x281f83df <read+19>:   nop   
0x281f83e0 <read+20>:   push   %ebp
0x281f83e1 <read+21>:   mov    %esp,%ebp
0x281f83e3 <read+23>:   push   %ebx
0x281f83e4 <read+24>:   call   0x2813f6f7 <_fini+200803>            
0x281f83e9 <read+29>:   add    $0x1040f,%ebx
0x281f83ef <read+35>:   sub    $0x34,%esp
0x281f83f2 <read+38>:   mov    0x147a4(%ebx),%eax
0x281f83f8 <read+44>:   test   %eax,%eax
---Type <return> to continue, or q <return> to quit---
0x281f83fa <read+46>:   je     0x281f8402 <read+54>
0x281f83fc <read+48>:   add    $0x34,%esp
0x281f83ff <read+51>:   pop    %ebx
0x281f8400 <read+52>:   pop    %ebp
0x281f8401 <read+53>:   ret                                    
---Type <return> to continue, or q <return> to quit---
(gdb) break *0x281f8401
Breakpoint 3 at 0x281f8401
(gdb) cont
Continuing.
%"`perl -e "print 'A' x1024"` * 0"
Unmatched `.

Program received signal SIGSEGV, Segmentation fault.
0x28183862 in calloc () from /lib/libc.so.7
(gdb) i r
eax            0x8092ef4   134819572
ecx            0xc   12
edx            0x8092ef4   134819572
ebx            0x282087f8   673220600
esp            0xbfbfe7b0   0xbfbfe7b0
ebp            0xbfbfe7f8   0xbfbfe7f8
esi            0x8000000   134217728
edi            0x1   1
eip            0x28183862   0x28183862
eflags         0x10297   66199
cs             0x33   51
ss             0x3b   59
ds             0x3b   59
es             0x3b   59
fs             0x3b   59
gs             0x1b   27
(gdb)quit

=====

Thank you.

------=_Part_14193_4801070.1215409858025--