aMule Bug Tracker - aMule
View Issue Details
0001607aMuleMiscpublic2010-07-01 11:592010-07-02 02:36
qwerty 
sturedman 
normalcrashalways
resolvedfixed 
2.2.6 
2.3.1 
9585
Linux
0001607: aMule crash when you add a large (>1000) amount of file hash
It seems that 1006 entries in paused mode is a ceiling.

here is the stack:
Terminated after throwing an instance of 'CryptoPP::OS_RNG_Err'
    what(): OS_Rng: open /dev/urandom operation failed with error 24
    backtrace:
[2] ?? in /usr/lib/libstdc++.so.6[0xa7e465]
[3] ?? in /usr/lib/libstdc++.so.6[0xa7e4a2]
[4] __cxa_rethrow in /usr/lib/libstdc++.so.6[0xa7e55b]
[5] ?? in amule[0x812e982]
[6] ?? in amule[0x80b8c53]
[7] ?? in amule[0x80fa62f]
[8] ?? in amule[0x80b7c89]
[9] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.8.so.0[0x391a9f]
[10] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x430379]
[11] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0x431424]
[12] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x431523]
[13] wxEvtHandler::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0x430819]
[14] wxAppConsole::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0x391de9]
[15] wxAppBase::ProcessIdle() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xf67fbf]
[16] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xebb423]
[17] ?? in /lib/libglib-2.0.so.0[0x70f1661]
[18] g_main_context_dispatch in /lib/libglib-2.0.so.0[0x70f35e5]
[19] ?? in /lib/libglib-2.0.so.0[0x70f72d8]
[20] g_main_loop_run in /lib/libglib-2.0.so.0[0x70f7817]
[21] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x6a92309]
[22] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xed4c78]
[23] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xf67e3e]
[24] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xf67a31]
[25] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x3cb7aa]
[26] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0x3cb987]
[27] ?? in amule[0x815a5db]
[28] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0x9b23bd6]
[29] ?? in amule[0x8083a31]

GUI crash, amuled crash too
I know that situation is quite extreme but something must be done:
- fix a limit
- or correct the bug (if any)

Thanks for aMule, this is great soft.
No tags attached.
Issue History
2010-07-01 11:59qwertyNew Issue
2010-07-01 11:59qwertyOperating System => Linux
2010-07-02 02:36GonoszTopiFixed in Revision => 9585
2010-07-02 02:36GonoszTopiNote Added: 0003448
2010-07-02 02:36GonoszTopiAssigned To => sturedman
2010-07-02 02:36GonoszTopiSeverityfeature => crash
2010-07-02 02:36GonoszTopiStatusnew => resolved
2010-07-02 02:36GonoszTopiResolutionopen => fixed
2010-07-02 02:36GonoszTopiCategoryFeature Request => Misc
2010-07-02 02:36GonoszTopiFixed in Version => 2.3.1

Notes
(0003448)
GonoszTopi   
2010-07-02 02:36   
"open /dev/urandom operation failed with error 24"

error 24 is EMFILE (Too many open files). The limit comes from the OS so we can't just fix it. However, we can make aMule keep less files open at the same time. Actually, we did it already.

Until the next version gets released, you can try out the fix in a development snapshot from http://amule.sourceforge.net/tarballs/ [^]