Hi,
My c++ project crashes when the processed string length is around 480.
It always crashes at += operation of string. the back trace is
#0 0x001956ad in malloc_consolidate () from /lib/tls/libc.so.6
#1 0x00194caa in _int_malloc () from /lib/tls/libc.so.6
#2 0x0019409d in malloc () from /lib/tls/libc.so.6
#3 0x0083c3ae in operator new () from /usr/lib/libstdc++.so.5
#4 0x008286f9 in std::__default_alloc_template<true, 0>::allocate () from /usr/lib/libstdc++.so.5
#5 0x0082e0f8 in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.5
#6 0x0082e1ce in std::string::_Rep::_M_clone () from /usr/lib/libstdc++.so.5
#7 0x0082bded in std::string::reserve () from /usr/lib/libstdc++.so.5
#8 0x0082c154 in std::string::append () from /usr/lib/libstdc++.so.5
#9 0x0082bfc6 in std::string:
perator+= () from /usr/lib/libstdc++.so.5
#10 0x080abd76 in CEnglishSpeech::convertWords (this=0x9e5f608, words=@0xfefb5d40)
at BhaashanCore/bhaashan/english/CEnglishSpeech.cpp:720
#11 0x080a76d3 in CEnglishSpeech::translate (this=0x9e5f608, text=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<No data fields>}, _M_p = 0x9f3b78c "bank.\n\n"}, static _S_empty_rep_storage = {0, 0, 434, 0}}) at BhaashanCore/bhaashan/english/CEnglishSpeech.cpp:179
#12 0x080ec69a in Bhaashan::convertTextToPhonemeSet (this=0x9e5f5a8, text=@0xfefb62b0, language=0x9e85418,
withEmotion=true, withAccent=false) at BhaashanCore/bhaashan/Bhaashan.cpp:1023
#13 0x080eb5c7 in Bhaashan::convertTextToPhonem (this=0x9e5f5a8, text=@0xfefb62b0, withEmotion=true, withAccent=false,
onlyTranscription=false) at BhaashanCore/bhaashan/Bhaashan.cpp:875
#14 0x080eb6b7 in Bhaashan::speakText (this=0x9e5f5a8, text=@0xfefb62b0, withEmotion=true, withAccent=false)
at BhaashanCore/bhaashan/Bhaashan.cpp:891
#15 0x080f9030 in speakText (text=@0xfefb62b0, withEmotion=true, withAccent=false) at BhaashanCore/CBhaashan.cpp:599
#16 0x080faab9 in main () at Example1.cpp:83
what is the maximum length of std::string?
Or the problem occurs some where else?
reagrds,
pippet