Hi ,

I have a static map,

map<string, string> CPCC::m_mPDN2Imsi;

and also within the CPPC class
class CPPC
{

static map<string, string> m_mPDN2Imsi;
}

defined in CPPC.cpp

and later in another file,

It gets populated in another function and later on gdb

(gdb) p CPPC::m_mPDN2Imsi
$2 = std::map with 2 elements = {
["10.4.1.10"] = "111110000000002",
["10.4.1.11"] = "111110000000001"

Then next line is
map<string, string>::iterator iTerImsi = CPPC::m_mPDN2Imsi.find(sFramedIpAddr.AsText());
string sImsi = iTerImsi->second;

At accessing the imsi i.e "string sImsi = iTerImsi->second;", this crashes. I can see the key is present in the map, by the gdb debug earlier..

Any help/hints much appreciated.

~p