R
robeson
Hi ,
I have a core dump while access std map in sparc solaris ...
codes like below :
CItem * getItem(const string& id) { return m_mapItem[id]; }
m_mapItem defined as below :
map<string, CItem *> m_mapItem;
It is single threaded ....
every time access the map, a core generated ...
core like below :
t@9 (l@9) terminated by signal SEGV (no mapping at the fault address)
0xfdb46f14: compare+0x0010: ld [%o5 - 8], %o2
Current function is std:perator<
<char,std::char_traits<char>,std::allocator<char> >
....
"functional"
[4]
[5]
It seems while I use mapX[] , a insert is launched and core ....
Does anybody have a clue to investigate ?
Thanks in advance !
I have a core dump while access std map in sparc solaris ...
codes like below :
CItem * getItem(const string& id) { return m_mapItem[id]; }
m_mapItem defined as below :
map<string, CItem *> m_mapItem;
It is single threaded ....
every time access the map, a core generated ...
core like below :
t@9 (l@9) terminated by signal SEGV (no mapping at the fault address)
0xfdb46f14: compare+0x0010: ld [%o5 - 8], %o2
Current function is std:perator<
<char,std::char_traits<char>,std::allocator<char> >
....
0xfdb46f14[1] std::basic_string said:::compare(0x143450, 0x0, 0xff000000, 0x274f18, 0x0, 0xb9), at
[3]=>[2] std::operator said:(lhs = CLASS, rhs = CLASS), line 1685 in "string"
"functional"
[4]
__rwstd::__rb_tree said:,std:air<const
std::basic_string said:,CMoc*>,__rwstd::__select1st<std:air<const
std::basic_string said:,CMoc*>,std::basic_string<char,std::char_traits<char>,std::allocator<char>
"tree.cc"std::basic_string said:,CMoc*> > >::insert(this = 0xdf878, v = STRUCT), line 195 in
[5]
[6]std::basic_string said:,CMoc*> > >::insert(this = 0xdf878, x = STRUCT), line 237 in "map"
std::basic_string said:,CMoc*> > >:perator[](this = 0xdf878, k = CLASS), line 233 in "map"
It seems while I use mapX[] , a insert is launched and core ....
Does anybody have a clue to investigate ?
Thanks in advance !