Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 1999 19:39:26 +0300 (EEST)
From:      Vladimir Tchoukharev <chu@gpz.gpz.fi>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/12550: bc overflour
Message-ID:  <199907071639.TAA18288@gpz.gpz.fi>

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

>Number:         12550
>Category:       gnu
>Synopsis:       bc overflour
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul  7 09:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Tchoukharev
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

World was made a week ago from -stable.

>Description:

bc (bc(1) - An arbitrary precision calculator language) dumps core 
on long line input (127 chars or more). The input doesn't matter.
 
>How-To-Repeat:

$ bc -l
bc 1.04

Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567
Segmentation fault (core dumped)

$ cd /src/gnu/usr.bin/bc
$ file bc
bc: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, not stripped
$ gdb bc ~/bc.core 
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `bc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libreadline.so.3...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libtermcap.so.2...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0  0x280e6378 in strncpy () from /usr/lib/libc.so.3
(gdb) bt
#0  0x280e6378 in strncpy () from /usr/lib/libc.so.3
#1  0x804be82 in rl_input ()
#2  0x804c7e8 in yy_get_next_buffer ()
#3  0x804c5b5 in yylex ()
#4  0x8048dd1 in yyparse ()
#5  0x804bbff in main ()
#6  0x8048bbd in _start ()
(gdb) q

>Fix:
	
Regret, didn't find (yet).


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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