aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] Valgrind error...


From: Kevin Atkinson
Subject: Re: [aspell-devel] Valgrind error...
Date: Tue, 29 Jun 2004 05:21:25 -0400 (EDT)

On Tue, 29 Jun 2004, Matthew Allen wrote:

> As no-one replied to my previous post about this, I'm raising it again.
> 
> I get this error when running Aspell under valgrind:
> 
> ==14447== Source and destination overlap in strcpy(0x3CDE0B61, 0x3CDE0B62)
> ==14447==    at 0x3C01FC60: strcpy (mac_replace_strmem.c:102)
> ==14447==    by 0x3E9C890B: aspeller::phonet(char const*, char*, 
> aspeller::PhonetParms const&) (stl_vector.h:289)
> ==14447==    by 0x3E9D53D9: 
> aspeller::PhonetSoundslike::to_soundslike(acommon::ParmString) const 
> (parm_string.hpp:56)
> ==14447==    by 0x3E9C3FF3: 
> aspeller_default_writable_wl::WritableWS::add(acommon::ParmString) 
> (clone_ptr.hpp:44)
> ==14447==    by 0x3E9C3999: 
> aspeller_default_writable_wl::WritableWS::merge(acommon::FStream&, 
> acommon::ParmString, acommon::Config*) (basic_string.h:388)
> ==14447==    by 0x3E9AE426: 
> aspeller::WritableBaseCode::load(acommon::ParmString, acommon::Config*) 
> (basic_string.h:388)
> ==14447==    by 0x3E9C6858: 
> aspeller::WritableBase<aspeller::WritableWordSet>::load(acommon::ParmString, 
> acommon::Config*, aspeller::SpellerImpl*, aspeller::LocalWordSetInfo const*) 
> (writable_base.hpp:59)
> ==14447==    by 0x3E9B3602: aspeller::SpellerImpl::setup(acommon::Config*) 
> (basic_string.h:388)
> ==14447==    by 0x3E98D776: acommon::new_speller(acommon::Config*) 
> (stack_ptr.hpp:40)
> ==14447==    by 0x3E988FD0: new_aspell_speller (speller-c.cpp:26)
> ==14447==    by 0x3CB0F4E5: ASpell::new_aspell_speller(AspellConfig*) 
> (Scribe_Spell.cpp:196)
> ==14447==    by 0x3CB0E479: Aspell_TextPipe::OnCommand(GView*, int, char*&, 
> int&, bool) (Scribe_Spell.cpp:618)
> 
> It appears to be doing something untoward with strcpy.

I believe this is fixed with Aspell 0.60.  The fix is to create a "strmove" 
function and use it.

> BTW I tried to build aspell from CVS on redhat 9 and got stuck here:
> lemon% ./autogen
> File "interfaces/cc/aspell.h" unchanged.
> File "common/type_id.hpp" unchanged.
> [ snip ]
> Will not write over "lib/info-c.cpp".
> File "lib/string_list-c.cpp" unchanged.
> File "lib/string_map-c.cpp" unchanged.
> File "lib/string_pair_enumeration-c.cpp" unchanged.
> File "common/errors.cpp" unchanged.
> mk-src.pod pod syntax OK.
> cvs [checkout aborted]: no such tag gettext-0_13
> /usr/bin/autopoint: line 259: fatal_error: command not found
> find: tmpwrk28263/archive: No such file or directory
> configure.ac: installing `./install-sh'
> configure.ac: installing `./mkinstalldirs'
> configure.ac: installing `./missing'
> Makefile.am: installing `./compile'
> Makefile.am: installing `./depcomp'
> Use of uninitialized value in concatenation (.) or string at 
> /usr/local/bin/automake line 6246, <GEN131> line 16.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/local/bin/automake line 6246, <GEN131> line 16.
> lib5/Makefile.am:16: endif without if:
> manual/Makefile.am:2: installing `manual/texinfo.tex'

It looks like you don't have all the right tools installed.

You can use the snapshots which are distributed like a release would be 
and don't require any special tools (except Perl).

-- 
http://kevin.atkinson.dhs.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]