(gdb) r Starting program: /home/mroberto/usr/amule/bin/amule [Thread debugging using libthread_db enabled] [New Thread 47316329483952 (LWP 14773)] Checkpoint set on app init for memory debug Initialising aMule Checking if there is an instance already running... No other instances are running. *** glibc detected *** /home/mroberto/usr/amule/bin/amule: free(): invalid pointer: 0x000000000126ec8c *** ======= Backtrace: ========= /lib64/libc.so.6[0x2b08abbb18fe] ... 2b08ab6cb000-2b08ab6ce000 rw-p 000e9000 08:02 4411750 Program received signal SIGABRT, Aborted. [Switching to Thread 47316329483952 (LWP 14773)] 0x00002b08abb75535 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00002b08abb75535 in raise () from /lib64/libc.so.6 #1 0x00002b08abb76990 in abort () from /lib64/libc.so.6 #2 0x00002b08abbac6db in __libc_message () from /lib64/libc.so.6 #3 0x00002b08abbb18fe in malloc_printerr () from /lib64/libc.so.6 #4 0x00002b08abbb2f36 in free () from /lib64/libc.so.6 #5 0x000000000047d0c6 in ~member_ptr (this=0x126eb34) at /home/mroberto/usr/cryptopp/include/cryptopp/smartptr.h:49 #6 0x000000000079a24c in ~FileSink (this=0x126eb1c) at files.h:68 #7 0x000000000047ce82 in ~member_ptr (this=0x7fff01328da8) at /home/mroberto/usr/cryptopp/include/cryptopp/smartptr.h:49 #8 0x000000000047f18b in ~Filter (this=0x7fff01328d90) at /home/mroberto/usr/cryptopp/include/cryptopp/filters.h:16 #9 0x00000000004822fe in ~FilterWithBufferedInput (this=0x7fff01328d90) at /home/mroberto/usr/cryptopp/include/cryptopp/filters.h:146 #10 0x0000000000482387 in ~ProxyFilter (this=0x7fff01328d90) at /home/mroberto/usr/cryptopp/include/cryptopp/filters.h:491 #11 0x0000000000482486 in ~SimpleProxyFilter (this=0x7fff01328d90) at /home/mroberto/usr/cryptopp/include/cryptopp/filters.h:507 #12 0x00000000004824ce in ~Base64Encoder (this=0x7fff01328d90) at /home/mroberto/usr/cryptopp/include/cryptopp/base64.h:10 #13 0x0000000000479837 in CClientCreditsList::CreateKeyPair (this=0x126bacc) at ClientCreditsList.cpp:273 #14 0x0000000000479f22 in CClientCreditsList::InitalizeCrypting (this=0x126bacc) at ClientCreditsList.cpp:308 #15 0x000000000047be70 in CClientCreditsList (this=0x126bacc) at ClientCreditsList.cpp:54 #16 0x000000000044706a in CamuleApp::OnInit (this=0x101acac) at amule.cpp:730 #17 0x00000000006083ab in CamuleGuiApp::OnInit (this=0x101acac) at amule-gui.cpp:260 #18 0x00000000004494f6 in wxAppConsole::CallOnInit (this=0x101acac) at /home/mroberto/usr/wxWidgets/include/wx-2.8/wx/app.h:76 #19 0x00002b08aaea02cb in wxEntry (argc=@0x2b08ab1c86d0, argv=0x10089cc) at ./src/common/init.cpp:440 #20 0x00002b08aaea03ca in wxEntry (argc=@0x7fff01329cdc, argv=0x7fff01329dc8) at ./src/common/init.cpp:468 #21 0x0000000000608f22 in main (argc=1, argv=0x7fff01329dc8) at amule-gui.cpp:92 (gdb) f13 Undefined command: "f13". Try "help". (gdb) f 13 #13 0x0000000000479837 in CClientCreditsList::CreateKeyPair (this=0x126bacc) at ClientCreditsList.cpp:273 273 AddDebugLogLineM( true, logCredits, wxT("Created new RSA keypair")); (gdb) l 268 269 privkey.DEREncode(privkeysink); 270 271 privkeysink.MessageEnd(); 272 273 AddDebugLogLineM( true, logCredits, wxT("Created new RSA keypair")); 274 } catch(const CryptoPP::Exception& e) { 275 AddDebugLogLineM(true, logCredits, wxString(wxT("Failed to create new RSA keypair: ")) + char2unicode(e.what())); 276 wxASSERT(false); 277 return false; (gdb) l -20 253 if (::GetTickCount() - m_nLastSaved > MIN2MS(13)) 254 SaveList(); 255 } 256 257 258 bool CClientCreditsList::CreateKeyPair() 259 { 260 try{ 261 CryptoPP::AutoSeededX917RNG rng; 262 CryptoPP::InvertibleRSAFunction privkey; (gdb) l 263 privkey.Initialize(rng,RSAKEYSIZE); 264 265 // Nothing we can do against this filename2char :/ 266 wxCharBuffer filename = filename2char(theApp->ConfigDir + CRYPTKEY_FILENAME); 267 CryptoPP::Base64Encoder privkeysink(new CryptoPP::FileSink(filename)); 268 269 privkey.DEREncode(privkeysink); 270 271 privkeysink.MessageEnd(); 272 (gdb)