bin/125185: csh(1) exit on signal 11
Dmitry Andrianov
666.root at gmail.com
Mon Jul 7 06:10:04 UTC 2008
The following reply was made to PR bin/125185; it has been noted by GNATS.
From: "Dmitry Andrianov" <666.root at gmail.com>
To: bug-followup at 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 at 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
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<code>Possibly, you will be helped by a next text.<br><br>====<br>[root at zingel /]# gdb /bin/csh <br>GNU gdb 6.1.1 [FreeBSD]<br>Copyright 2004 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>
welcome to change it and/or distribute copies of it under certain<br>conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols<br>found)...</code><code><br>(gdb) break main<br>Function "main" not defined.<br>Make breakpoint pending on future shared library load? (y or [n]) y<br>
<br>Breakpoint 1 (main) pending.<br>(gdb) r<br>Starting program: /bin/csh <br>(no debugging symbols found)...(no debugging symbols found)...(no debugging<br>symbols found)...(no debugging symbols found)...(no debugging symbols<br>
found)...%<br>(gdb) break main<br>Function "main" not defined.<br>Make breakpoint pending on future shared library load? (y or [n]) y<br><br>Breakpoint 2 (main) pending.<br>(gdb) disass<br>Dump of assembler code for function read:<br>
0x281f83cc <read+0>: mov $0x3,%eax<br>0x281f83d1 <read+5>: int $0x80<br>0x281f83d3 <read+7>: jb 0x281f83b8 <write+12><br>0x281f83d5 <read+9>: ret <br>0x281f83d6 <read+10>: nop <br>
0x281f83d7 <read+11>: nop <br>0x281f83d8 <read+12>: nop <br>0x281f83d9 <read+13>: nop <br>0x281f83da <read+14>: nop <br>0x281f83db <read+15>: nop <br>0x281f83dc <read+16>: nop <br>
0x281f83dd <read+17>: nop <br>0x281f83de <read+18>: nop <br>0x281f83df <read+19>: nop <br>0x281f83e0 <read+20>: push %ebp<br>0x281f83e1 <read+21>: mov %esp,%ebp<br>0x281f83e3 <read+23>: push %ebx<br>
0x281f83e4 <read+24>: call 0x2813f6f7 <_fini+200803> <br>0x281f83e9 <read+29>: add $0x1040f,%ebx<br>0x281f83ef <read+35>: sub $0x34,%esp<br>0x281f83f2 <read+38>: mov 0x147a4(%ebx),%eax<br>
0x281f83f8 <read+44>: test %eax,%eax<br>---Type <return> to continue, or q <return> to quit---<br>0x281f83fa <read+46>: je 0x281f8402 <read+54><br>0x281f83fc <read+48>: add $0x34,%esp<br>
0x281f83ff <read+51>: pop %ebx<br>0x281f8400 <read+52>: pop %ebp<br>0x281f8401 <read+53>: ret <br>---Type <return> to continue, or q <return> to quit---<br>
(gdb) break *0x281f8401<br>Breakpoint 3 at 0x281f8401<br>(gdb) cont<br>Continuing.<br>%"`perl -e "print 'A' x1024"` * 0"<br>Unmatched `.<br><br>Program received signal SIGSEGV, Segmentation fault.<br>
0x28183862 in calloc () from /lib/libc.so.7<br>(gdb) i r<br></code><code>eax 0x8092ef4 134819572<br>ecx 0xc 12<br>edx 0x8092ef4 134819572<br>ebx 0x282087f8 673220600<br>
esp 0xbfbfe7b0 0xbfbfe7b0<br>ebp 0xbfbfe7f8 0xbfbfe7f8<br>esi 0x8000000 134217728<br>edi 0x1 1<br>eip 0x28183862 0x28183862<br>eflags 0x10297 66199<br>
cs 0x33 51<br>ss 0x3b 59<br>ds 0x3b 59<br>es 0x3b 59<br>fs 0x3b 59<br>gs 0x1b 27<br>(gdb)quit<br><br>=====<br><br>Thank you.<br><br></code>
------=_Part_14193_4801070.1215409858025--
More information about the freebsd-bugs
mailing list