Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2004 20:31:10 +0400 (MSD)
From:      Maxim Maximov <mcsi@mcsi.pp.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/65821: /bin/sh coredumps
Message-ID:  <200404201631.i3KGVAtk000767@ultra.domain>
Resent-Message-ID: <200404201700.i3KH0fcK016306@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         65821
>Category:       bin
>Synopsis:       /bin/sh coredumps
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 20 10:00:41 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Maxim Maximov
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ultra.domain 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Apr 14 20:47:07 MSD 2004 mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA i386


	
>Description:
	/bin/sh dumps core when in 'while' loop after Ctrl-C been hit.
	
>How-To-Repeat:
	

Execute following script under /bin/sh:

csh# /bin/sh
$ while true
> do
> done

Let script run a minute. One minute is enough at least for my hardware (AthlonXP 2100+). Then hit Ctrl-C:

^C
sh in free(): error: recursive call
Аварийное завершение (core dumped)
Exit 134

gdb backtrace:
> gdb -c sh.core -se /bin/sh
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...(no debugging symbols found)...
Core was generated by `sh'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libedit.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libedit.so.4
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2813490f in kill () from /lib/libc.so.5
(gdb) bt
#0  0x2813490f in kill () from /lib/libc.so.5
#1  0x281299a8 in raise () from /lib/libc.so.5
#2  0x281a0ea3 in abort () from /lib/libc.so.5
#3  0x281408ce in ldexp () from /lib/libc.so.5
#4  0x28140918 in ldexp () from /lib/libc.so.5
#5  0x281413c0 in ldexp () from /lib/libc.so.5
#6  0x281415b1 in free () from /lib/libc.so.5
#7  0x0805567b in sigprocmask ()
#8  0x08054ed3 in sigprocmask ()
#9  0x08049c79 in sigprocmask ()
(gdb) 

>Fix:

	Unknown.
	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404201631.i3KGVAtk000767>