Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2008 03:38:53 +0300 (EEST)
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/126083: aspell core dumps
Message-ID:  <200807300038.m6U0crlt063206@kobe.laptop>
Resent-Message-ID: <200807300040.m6U0e2Vg066600@freefall.freebsd.org>

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

>Number:         126083
>Category:       ports
>Synopsis:       aspell core dumps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 30 00:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Giorgos Keramidas
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kobe 8.0-CURRENT FreeBSD 8.0-CURRENT #1:\
Tue Jul 22 17:31:18 EEST 2008 build@kobe:/home/build/obj/home/build/src/sys/KOBE i386

>Description:

When spell-checking 'HTH' aspell core dumps here.  From a gdb run, it
seems that this is a double-free bug.

>How-To-Repeat:

: Script started on Wed Jul 30 03:22:04 2008
: keramida@kobe:/home/keramida$ echo HTH | aspell -a
: @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
: Segmentation fault: 11 (core dumped)
: keramida@kobe:/home/keramida$ gdb /usr/local/bin/aspell aspell.core
: 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 symbol table is loaded.  Use the "file" command.
: 
: Core was generated by `aspell'.
: Program terminated with signal 11, Segmentation fault.
: Reading symbols from /usr/local/lib/libaspell.so.16...done.
: Loaded symbols for /usr/local/lib/libaspell.so.16
: Reading symbols from /lib/libncursesw.so.7...done.
: Loaded symbols for /lib/libncursesw.so.7
: Reading symbols from /usr/local/lib/libintl.so.8...done.
: Loaded symbols for /usr/local/lib/libintl.so.8
: Reading symbols from /usr/local/lib/libiconv.so.3...done.
: Loaded symbols for /usr/local/lib/libiconv.so.3
: Reading symbols from /usr/lib/libstdc++.so.6...done.
: Loaded symbols for /usr/lib/libstdc++.so.6
: Reading symbols from /lib/libm.so.5...done.
: Loaded symbols for /lib/libm.so.5
: Reading symbols from /lib/libgcc_s.so.1...done.
: Loaded symbols for /lib/libgcc_s.so.1
: Reading symbols from /lib/libc.so.7...done.
: Loaded symbols for /lib/libc.so.7
: Reading symbols from /libexec/ld-elf.so.1...done.
: Loaded symbols for /libexec/ld-elf.so.1
: #0  memset () at /home/build/src/lib/libc/i386/string/memset.S:78
: 78              rep
: (gdb) bt
: #0  memset () at /home/build/src/lib/libc/i386/string/memset.S:78
: #1  0x0812d000 in ?? ()
: #2  0x28438e27 in idalloc (ptr=0x812da60) at /home/build/src/lib/libc/stdlib/malloc.c:3219
: #3  0x284390a7 in free (ptr=0x812da60) at /home/build/src/lib/libc/stdlib/malloc.c:4662
: #4  0x28107c1e in acommon::HashTable<acommon::HashSetParms<acommon::String, acommon::HashString<acommon::String>, std::equal_to<acommon::String>, false> >::del () from /usr/local/lib/libaspell.so.16
: #5  0x28100f38 in (anonymous namespace)::Working::transfer () from /usr/local/lib/libaspell.so.16
: #6  0x28104685 in (anonymous namespace)::Working::get_suggestions () from /usr/local/lib/libaspell.so.16
: #7  0x2810515c in (anonymous namespace)::SuggestImpl::suggest () from /usr/local/lib/libaspell.so.16
: #8  0x28116974 in aspeller::SpellerImpl::suggest () from /usr/local/lib/libaspell.so.16
: #9  0x28149be0 in aspell_speller_suggest () from /usr/local/lib/libaspell.so.16
: #10 0x0805dc32 in pipe ()
: #11 0x0806174a in main ()
: Current language:  auto; currently asm
: (gdb) x/100b 0x812da60
: 0x812da60:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da68:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da70:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da78:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da80:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da88:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da90:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812da98:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812daa0:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812daa8:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812dab0:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812dab8:      0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a    0x5a
: 0x812dac0:      0x5a    0x5a    0x5a    0x5a
: (gdb) quit
: keramida@kobe:/home/keramida$ exit
: exit
: 
: Script done on Wed Jul 30 03:22:32 2008

>Fix:

Unknown yet...  I've opened issue #2032049 in the bug tracker of aspell
at Sourceforge:

http://sourceforge.net/tracker/index.php?func=detail&aid=2032049&group_id=245&atid=100245

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



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