Hi! On Mon, Oct 25, 2010 at 12:41:21AM +0200, Samuel Thibault wrote: > Hello, > > audsp from festival systematically crashes so that I can't do anything > with it. valgrind shows the following output: > > ==13225== Mismatched free() / delete / delete [] > ==13225== at 0x4C23A8B: operator delete[](void*) (vg_replace_malloc.c:409) > ==13225== by 0x52E58D1: EST_TSimpleMatrix<short>::resize(int, int, int) > (EST_TSimpleMatrix.cc:166) > ==13225== by 0x52925EB: EST_Wave::free_wave() (EST_Wave.cc:99) > ==13225== by 0x5292615: EST_Wave::~EST_Wave() (EST_Wave.cc:105) > ==13225== by 0x40336D: check_new_output() (audsp.cc:472) > ==13225== by 0x403A8C: auspl_main(int, char**) (audsp.cc:225) > ==13225== by 0x403EF8: main (audsp.cc:194) > ==13225== Address 0x72c56f0 is 0 bytes inside a block of size 1 alloc'd > ==13225== at 0x4C2380C: calloc (vg_replace_malloc.c:467) > ==13225== by 0x5328515: safe_walloc (walloc.c:92) > ==13225== by 0x5290BCE: load_wave_nist(EST_TokenStream&, short**, int*, > int*, int*, int*, EST_sample_type_t*, int*, int, int) (EST_wave_io.cc:242) > ==13225== by 0x528901A: EST_WaveFile::load_nist(EST_TokenStream&, > EST_Wave&, int, EST_sample_type_t, int, int, int, int) (EST_WaveFile.cc:84) > ==13225== by 0x52936EE: EST_Wave::load(EST_TokenStream&, int, int, int) > (EST_Wave.cc:223) > ==13225== by 0x529419F: EST_Wave::load(EST_String, int, int, int) > (EST_Wave.cc:191) > ==13225== by 0x4032F3: check_new_output() (audsp.cc:470) > ==13225== by 0x403A8C: auspl_main(int, char**) (audsp.cc:225) > ==13225== by 0x403EF8: main (audsp.cc:194)
Thanks for the investigation! > which is fixed by the attached patch, by copying from free-allocated > buffer given by load_wave_nist to new-allocated buffer expected by > TSimpleMatrix. I'll gladly fix this, but first: 1. Could you please confirm the version number of the package where this works? I would guess that it is 1:2.0.95~beta-1. The version number you have used seems to be a custom one. 2. Could you please tell me an easy way to reproduce the error, so that I can confirm that the built package works perfectly? Thanks. Kumar
signature.asc
Description: Digital signature