Hi all,
I'm trying to get aMule 2.2.2 work on OpenWRT Kamikaze 7.09, on the mipsel platform (WL-500gP). I am using the Unslung build framework for building aMule, downloaded prebuilt unslung packages for its dependecies, and I built OpenWRT also myself from sources. I noticed the prebuilt unslung mipsel package is not working, but after removing optimizations for crypto++, and amule, I got halfway decent results, aMule is starting up, it does what it is supposed to do, but after an hour or so, one of the threads saturates the processor completely. I attached to it with GDB, and it shows that aMule got stuck in the logf function, maybe running in endless loop? I'm using kernel 2.4.34, gcc 3.4.6, libuclibc++-0.2.2-r18737, wxbase-2.8.7.
I would be intrested in your opinions, I'm not sure how to handle thing from now on, I can't decide if this is an aMule problem or a standard library problem. Also according to ldd, my amuled executable seems to be linked with both libstdc++, and libuclibc++, which is used then for logf?
See my gdb output here, I was able to reproduce this twice, so it is not just by chance that it is sitting in logf() I think.
(gdb) bt
#0 0x00c4d400 in logf ()
#1 0x007b0948 in CUpDownClient::CalculateKBpsDown ()
#2 0x0073fbec in CUpDownClient::SetDownloadLimit ()
#3 0x00991250 in CPartFile::Process ()
#4 0x007c64dc in CDownloadQueue::Process ()
#5 0x0072e0e8 in CamuleApp::OnCoreTimer ()
#6 0x2ad3dc88 in wxEvtHandler::ProcessEventIfMatches () from /opt/lib/libwx_baseu-2.8.so.0
#7 0x2ad3e198 in wxEventHashTable::HandleEvent () from /opt/lib/libwx_baseu-2.8.so.0
#8 0x2ad3f3f4 in wxEvtHandler::ProcessEvent () from /opt/lib/libwx_baseu-2.8.so.0
#9 0x2ad3f094 in wxEvtHandler::ProcessPendingEvents () from /opt/lib/libwx_baseu-2.8.so.0
#10 0x2ac4b970 in wxAppConsole::ProcessPendingEvents () from /opt/lib/libwx_baseu-2.8.so.0
#11 0x0071f84c in CamuleDaemonApp::OnRun ()
#12 0x2aca3d04 in wxEntry () from /opt/lib/libwx_baseu-2.8.so.0
#13 0x0071db14 in main ()
(gdb) bt full
#0 0x00c4d400 in logf ()
No symbol table info available.
#1 0x007b0948 in CUpDownClient::CalculateKBpsDown ()
No symbol table info available.
#2 0x0073fbec in CUpDownClient::SetDownloadLimit ()
No symbol table info available.
#3 0x00991250 in CPartFile::Process ()
No symbol table info available.
#4 0x007c64dc in CDownloadQueue::Process ()
No symbol table info available.
#5 0x0072e0e8 in CamuleApp::OnCoreTimer ()
No symbol table info available.
#6 0x2ad3dc88 in wxEvtHandler::ProcessEventIfMatches () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7 0x2ad3e198 in wxEventHashTable::HandleEvent () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8 0x2ad3f3f4 in wxEvtHandler::ProcessEvent () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#9 0x2ad3f094 in wxEvtHandler::ProcessPendingEvents () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#10 0x2ac4b970 in wxAppConsole::ProcessPendingEvents () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#11 0x0071f84c in CamuleDaemonApp::OnRun ()
No symbol table info available.
#12 0x2aca3d04 in wxEntry () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#13 0x0071db14 in main ()
No symbol table info available.
(gdb) thread apply all bt
(gdb) interrupt
(gdb) step
Single stepping until exit from function logf,
which has no line number information.
Here gdb just hangs, I do not get the prompt back for a very long time.
Thanks for your help in advance.
Best regards,
DeeJay