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 &quot;show copying&quot; to see the conditions.<br>There is absolutely no warranty for GDB.&nbsp; Type &quot;show warranty&quot; for details.<br>
 This GDB was configured as &quot;i386-marcel-freebsd&quot;...(no debugging symbols<br>found)...</code><code><br>(gdb) break main<br>Function &quot;main&quot; 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 &quot;main&quot; 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 &lt;read+0&gt;:&nbsp; &nbsp;mov&nbsp; &nbsp; $0x3,%eax<br>0x281f83d1 &lt;read+5&gt;:&nbsp; &nbsp;int&nbsp; &nbsp; $0x80<br>0x281f83d3 &lt;read+7&gt;:&nbsp; &nbsp;jb&nbsp; &nbsp; &nbsp;0x281f83b8 &lt;write+12&gt;<br>0x281f83d5 &lt;read+9&gt;:&nbsp; &nbsp;ret&nbsp; &nbsp; <br>0x281f83d6 &lt;read+10&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>
 0x281f83d7 &lt;read+11&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83d8 &lt;read+12&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83d9 &lt;read+13&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83da &lt;read+14&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83db &lt;read+15&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83dc &lt;read+16&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>
 0x281f83dd &lt;read+17&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83de &lt;read+18&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83df &lt;read+19&gt;:&nbsp; &nbsp;nop&nbsp; &nbsp; <br>0x281f83e0 &lt;read+20&gt;:&nbsp; &nbsp;push&nbsp; &nbsp;%ebp<br>0x281f83e1 &lt;read+21&gt;:&nbsp; &nbsp;mov&nbsp; &nbsp; %esp,%ebp<br>0x281f83e3 &lt;read+23&gt;:&nbsp; &nbsp;push&nbsp; &nbsp;%ebx<br>
 0x281f83e4 &lt;read+24&gt;:&nbsp; &nbsp;call&nbsp; &nbsp;0x2813f6f7 &lt;_fini+200803&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br>0x281f83e9 &lt;read+29&gt;:&nbsp; &nbsp;add&nbsp; &nbsp; $0x1040f,%ebx<br>0x281f83ef &lt;read+35&gt;:&nbsp; &nbsp;sub&nbsp; &nbsp; $0x34,%esp<br>0x281f83f2 &lt;read+38&gt;:&nbsp; &nbsp;mov&nbsp; &nbsp; 0x147a4(%ebx),%eax<br>
 0x281f83f8 &lt;read+44&gt;:&nbsp; &nbsp;test&nbsp; &nbsp;%eax,%eax<br>---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>0x281f83fa &lt;read+46&gt;:&nbsp; &nbsp;je&nbsp; &nbsp; &nbsp;0x281f8402 &lt;read+54&gt;<br>0x281f83fc &lt;read+48&gt;:&nbsp; &nbsp;add&nbsp; &nbsp; $0x34,%esp<br>
 0x281f83ff &lt;read+51&gt;:&nbsp; &nbsp;pop&nbsp; &nbsp; %ebx<br>0x281f8400 &lt;read+52&gt;:&nbsp; &nbsp;pop&nbsp; &nbsp; %ebp<br>0x281f8401 &lt;read+53&gt;:&nbsp; &nbsp;ret&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br>---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>
 (gdb) break *0x281f8401<br>Breakpoint 3 at 0x281f8401<br>(gdb) cont<br>Continuing.<br>%&quot;`perl -e &quot;print &#39;A&#39; x1024&quot;` * 0&quot;<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&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x8092ef4&nbsp; &nbsp;134819572<br>ecx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0xc&nbsp; &nbsp;12<br>edx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x8092ef4&nbsp; &nbsp;134819572<br>ebx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x282087f8&nbsp; &nbsp;673220600<br>
 esp&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0xbfbfe7b0&nbsp; &nbsp;0xbfbfe7b0<br>ebp&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0xbfbfe7f8&nbsp; &nbsp;0xbfbfe7f8<br>esi&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x8000000&nbsp; &nbsp;134217728<br>edi&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x1&nbsp; &nbsp;1<br>eip&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x28183862&nbsp; &nbsp;0x28183862<br>eflags&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x10297&nbsp; &nbsp;66199<br>
 cs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x33&nbsp; &nbsp;51<br>ss&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x3b&nbsp; &nbsp;59<br>ds&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x3b&nbsp; &nbsp;59<br>es&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x3b&nbsp; &nbsp;59<br>fs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x3b&nbsp; &nbsp;59<br>gs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0x1b&nbsp; &nbsp;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