diff options
| author | Graham Madarasz <graham@lindenlab.com> | 2013-06-01 13:43:52 -0700 | 
|---|---|---|
| committer | Graham Madarasz <graham@lindenlab.com> | 2013-06-01 13:43:52 -0700 | 
| commit | d21fc254a795ddbb0604fd6a542327dbd92b036d (patch) | |
| tree | df4ff12d33b6a1fcc6789d9546c89dcd2c673180 /indra/llcommon | |
| parent | da6a4ac62ec5b2725bbca647c5d04f2e51967c42 (diff) | |
BUG-2707 hunt for infos call crashing Kat
Diffstat (limited to 'indra/llcommon')
| -rwxr-xr-x | indra/llcommon/llapp.cpp | 15 | ||||
| -rwxr-xr-x | indra/llcommon/llcoros.cpp | 7 | ||||
| -rwxr-xr-x | indra/llcommon/llevents.cpp | 8 | ||||
| -rwxr-xr-x | indra/llcommon/llmemory.cpp | 25 | ||||
| -rwxr-xr-x | indra/llcommon/llmetrics.cpp | 6 | 
5 files changed, 33 insertions, 28 deletions
| diff --git a/indra/llcommon/llapp.cpp b/indra/llcommon/llapp.cpp index b66fc82250..b6581c714c 100755 --- a/indra/llcommon/llapp.cpp +++ b/indra/llcommon/llapp.cpp @@ -218,8 +218,7 @@ bool LLApp::parseCommandOptions(int argc, char** argv)  	{  		if(argv[ii][0] != '-')  		{ -			llinfos << "Did not find option identifier while parsing token: " -				<< argv[ii] << llendl; +			lldebugs << "Did not find option identifier while parsing token: "<< argv[ii] << llendl;  			return false;  		}  		int offset = 1; @@ -896,7 +895,7 @@ bool unix_minidump_callback(const google_breakpad::MinidumpDescriptor& minidump_  		--remaining;  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +	//llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl;  	LLApp::runErrorHandler();  #ifndef LL_RELEASE_FOR_DOWNLOAD @@ -942,7 +941,7 @@ bool unix_post_minidump_callback(const char *dump_dir,  		strncpy(path, ".dmp", remaining);  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +	//llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl;  	LLApp::runErrorHandler();  #ifndef LL_RELEASE_FOR_DOWNLOAD @@ -985,12 +984,12 @@ bool windows_post_minidump_callback(const wchar_t* dump_path,  		strncpy(path, ".dmp", remaining);  	} -	llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; -    // *NOTE:Mani - this code is stolen from LLApp, where its never actually used. +	//llinfos << "generated minidump: " << LLApp::instance()->getMiniDumpFilename() << llendl; +   // *NOTE:Mani - this code is stolen from LLApp, where its never actually used.  	//OSMessageBox("Attach Debugger Now", "Error", OSMB_OK); -    // *TODO: Translate the signals/exceptions into cross-platform stuff +   // *TODO: Translate the signals/exceptions into cross-platform stuff  	// Windows implementation -	llinfos << "Entering Windows Exception Handler..." << llendl; +	//llinfos << "Entering Windows Exception Handler..." << llendl;  	if (LLApp::isError())  	{ diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp index a629f71d4b..bde8bcf36a 100755 --- a/indra/llcommon/llcoros.cpp +++ b/indra/llcommon/llcoros.cpp @@ -60,7 +60,9 @@ bool LLCoros::cleanup(const LLSD&)          // since last tick?          if (mi->second->exited())          { -            LL_INFOS("LLCoros") << "LLCoros: cleaning up coroutine " << mi->first << LL_ENDL; +			   // BUG-2707? +            //LL_INFOS("LLCoros") << "LLCoros: cleaning up coroutine " << mi->first << LL_ENDL; +              // The erase() call will invalidate its passed iterator value --              // so increment mi FIRST -- but pass its original value to              // erase(). This is what postincrement is all about. @@ -94,7 +96,8 @@ std::string LLCoros::generateDistinctName(const std::string& prefix) const      {          if (mCoros.find(name) == mCoros.end())          { -            LL_INFOS("LLCoros") << "LLCoros: launching coroutine " << name << LL_ENDL; +			   //BUG-2707? +            //LL_INFOS("LLCoros") << "LLCoros: launching coroutine " << name << LL_ENDL;              return name;          }      } diff --git a/indra/llcommon/llevents.cpp b/indra/llcommon/llevents.cpp index 0855180dcd..4c4553168e 100755 --- a/indra/llcommon/llevents.cpp +++ b/indra/llcommon/llevents.cpp @@ -570,20 +570,20 @@ void LLReqID::stamp(LLSD& response) const  {      if (! (response.isUndefined() || response.isMap()))      { +		  // BUG-2707?          // If 'response' was previously completely empty, it's okay to          // turn it into a map. If it was already a map, then it should be          // okay to add a key. But if it was anything else (e.g. a scalar),          // assigning a ["reqid"] key will DISCARD the previous value,          // replacing it with a map. That would be Bad. -        LL_INFOS("LLReqID") << "stamp(" << mReqid << ") leaving non-map response unmodified: " -                            << response << LL_ENDL; +        //LL_INFOS("LLReqID") << "stamp(" << mReqid << ") leaving non-map response unmodified: " << response << LL_ENDL;          return;      }      LLSD oldReqid(response["reqid"]);      if (! (oldReqid.isUndefined() || llsd_equals(oldReqid, mReqid)))      { -        LL_INFOS("LLReqID") << "stamp(" << mReqid << ") preserving existing [\"reqid\"] value " -                            << oldReqid << " in response: " << response << LL_ENDL; +		  // BUG-2707? +        //LL_INFOS("LLReqID") << "stamp(" << mReqid << ") preserving existing [\"reqid\"] value "<< oldReqid << " in response: " << response << LL_ENDL;          return;      }      response["reqid"] = mReqid; diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index 70ad10ad55..33215401c6 100755 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -987,27 +987,27 @@ void LLPrivateMemoryPool::LLMemoryChunk::dump()  	}  #endif  #if 0 -	llinfos << "---------------------------" << llendl ; -	llinfos << "Chunk buffer: " << (U32)getBuffer() << " size: " << getBufferSize() << llendl ; +	LL_DEBUGS(LLMemory) << "---------------------------" << llendl ; +	LL_DEBUGS(LLMemory) << "Chunk buffer: " << (U32)getBuffer() << " size: " << getBufferSize() << llendl ; -	llinfos << "available blocks ... " << llendl ; +	LL_DEBUGS(LLMemory) << "available blocks ... " << llendl ;  	for(S32 i = 0 ; i < mBlockLevels ; i++)  	{  		LLMemoryBlock* blk = mAvailBlockList[i] ;  		while(blk)  		{ -			llinfos << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ; +			LL_DEBUGS(LLMemory) << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ;  			blk = blk->mNext ;  		}  	} -	llinfos << "free blocks ... " << llendl ; +	LL_DEBUGS(LLMemory) << "free blocks ... " << llendl ;  	for(S32 i = 0 ; i < mPartitionLevels ; i++)  	{  		LLMemoryBlock* blk = mFreeSpaceList[i] ;  		while(blk)  		{ -			llinfos << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ; +			LL_DEBUGS(LLMemory) << "blk buffer " << (U32)blk->getBuffer() << " size: " << blk->getBufferSize() << llendl ;  			blk = blk->mNext ;  		}  	} @@ -1731,7 +1731,8 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk)  void LLPrivateMemoryPool::rehash()  { -	llinfos << "new hash factor: " << mHashFactor << llendl ; +	//BUG-2707? +	//LL_DEBUGS(LLMemory) << "new hash factor: " << mHashFactor << llendl ;  	mChunkHashList.clear() ;  	mChunkHashList.resize(mHashFactor) ; @@ -1848,7 +1849,7 @@ LLPrivateMemoryPoolManager::~LLPrivateMemoryPoolManager()  		S32 k = 0 ;  		for(mem_allocation_info_t::iterator iter = sMemAllocationTracker.begin() ; iter != sMemAllocationTracker.end() ; ++iter)  		{ -			llinfos << k++ << ", " << (U32)iter->first << " : " << iter->second << llendl ; +			LL_DEBUGS(LLMemory) << k++ << ", " << (U32)iter->first << " : " << iter->second << llendl ;  		}  		sMemAllocationTracker.clear() ;  	} @@ -2190,8 +2191,8 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  {  	LLTimer timer ; -	llinfos << " -**********************- " << llendl ; -	llinfos << "test size: " << size << " test times: " << times << llendl ; +	LL_DEBUGS(LLMemory) << " -**********************- " << llendl ; +	LL_DEBUGS(LLMemory) << "test size: " << size << " test times: " << times << llendl ;  	timer.reset() ;  	char** p = new char*[times] ; @@ -2212,7 +2213,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		FREE_MEM(sPool, p[i]) ;  		p[i] = NULL ;  	} -	llinfos << "time spent using customized memory pool: " << timer.getElapsedTimeF32() << llendl ; +	LL_DEBUGS(LLMemory) << "time spent using customized memory pool: " << timer.getElapsedTimeF32() << llendl ;  	timer.reset() ; @@ -2232,7 +2233,7 @@ void LLPrivateMemoryPoolTester::testAndTime(U32 size, U32 times)  		::delete[] p[i] ;  		p[i] = NULL ;  	} -	llinfos << "time spent using standard allocator/de-allocator: " << timer.getElapsedTimeF32() << llendl ; +	LL_DEBUGS(LLMemory) << "time spent using standard allocator/de-allocator: " << timer.getElapsedTimeF32() << llendl ;  	delete[] p;  } diff --git a/indra/llcommon/llmetrics.cpp b/indra/llcommon/llmetrics.cpp index 3078139f43..ac643095b1 100755 --- a/indra/llcommon/llmetrics.cpp +++ b/indra/llcommon/llmetrics.cpp @@ -65,7 +65,8 @@ void LLMetricsImpl::recordEventDetails(const std::string& location,  	metrics["location"] = location;  	metrics["stats"]  = stats; -	llinfos << "LLMETRICS: " << (LLSDNotationStreamer(metrics)) << llendl;  +	// BUG-2707? +	//llinfos << "LLMETRICS: " << (LLSDNotationStreamer(metrics)) << llendl;   }  // Store this: @@ -128,7 +129,8 @@ void LLMetricsImpl::printTotals(LLSD metadata)  	out_sd["stats"] = stats; -	llinfos << "LLMETRICS: AGGREGATE: " << LLSDOStreamer<LLSDNotationFormatter>(out_sd) << llendl; +	// BUG-2707? +	//llinfos << "LLMETRICS: AGGREGATE: " << LLSDOStreamer<LLSDNotationFormatter>(out_sd) << llendl;  }  LLMetrics::LLMetrics() | 
