aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule crashes while downloading files  (Read 631 times)

acidburn

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
aMule crashes while downloading files
« on: October 02, 2016, 11:11:11 AM »

Dear developers, I'd like to report a possible bug.

aMule randomly crashes when downloading files. If the download queue is empty and I am only uploading the crash has not happened yet. I was also experiencing this bug in version 2.3.1 which I was using before. I switched to the latest version hoping that this issue would go away. But it didn't.

I am running Ubuntu 14.04 LTS with aMule 2.3.2 compiled from GitHub. This is the gdb backtrace:

Code: [Select]
[New Thread 0x7fffdacee700 (LWP 3302)]
[Thread 0x7fffdacee700 (LWP 3302) exited]
[New Thread 0x7fffda09b700 (LWP 3303)]
[Thread 0x7fffe885b700 (LWP 3295) exited]
[Thread 0x7fffdbfff700 (LWP 3296) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3af82a7 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

(gdb) bt
#0  0x00007ffff3af82a7 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff3af847e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3afa62b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3afaf03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3afb30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff460a447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#6  0x00007ffff66a928a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#7  0x00007ffff671ab4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#8  0x00007ffff5fe0e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9  0x0000000000592187 in main (argc=1, argv=0x7fffffffdf28) at amule-gui.cpp:95

(gdb) bt full
#0  0x00007ffff3af82a7 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1  0x00007ffff3af847e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff3afa62b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff3afaf03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff3afb30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#5  0x00007ffff460a447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#6  0x00007ffff66a928a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#7  0x00007ffff671ab4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#8  0x00007ffff5fe0e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
No symbol table info available.
#9  0x0000000000592187 in main (argc=1, argv=0x7fffffffdf28) at amule-gui.cpp:95
No locals.

(gdb) thread apply all bt

Thread 10 (Thread 0x7fffda09b700 (LWP 3303)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007ffff60315b6 in wxConditionInternal::WaitTimeout(unsigned long) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff6032148 in wxSemaphoreInternal::WaitTimeout(unsigned long) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x0000000000671274 in CTimerThread::Entry (this=0x134a610) at Timer.cpp:66
#4  0x00007ffff6032863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52f4184 in start_thread (arg=0x7fffda09b700) at pthread_create.c:312
#6  0x00007ffff502137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fffdb4ef700 (LWP 3300)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff52f667f in _L_lock_1081 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007ffff52f65f8 in __GI___pthread_mutex_lock (mutex=0xc08350) at ../nptl/pthread_mutex_lock.c:134
#3  0x00007ffff3b3c981 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3af8d18 in g_source_attach () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3aed8a1 in g_io_add_watch_full () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff4250fd4 in gdk_input_add_full () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#7  0x00007ffff66aa2d5 in GSocketGUIFunctionsTableConcrete::Install_Callback(GSocket*, GSocketEvent) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#8  0x00007ffff62c7392 in GSocket::Write(char const*, int) () from /usr/lib/x86_64-linux-gnu/libwx_baseu_net-2.8.so.0
#9  0x00007ffff62c2f69 in wxSocketBase::_Write(void const*, unsigned int) () from /usr/lib/x86_64-linux-gnu/libwx_baseu_net-2.8.so.0
#10 0x00007ffff62c2fa4 in wxSocketBase::Write(void const*, unsigned int) () from /usr/lib/x86_64-linux-gnu/libwx_baseu_net-2.8.so.0
#11 0x00000000004ed017 in CLibSocket::Write (this=0x1497d50, buffer=0x14568c0, nbytes=46) at ./libs/ec/cpp/../../../LibSocket.h:301
#12 0x000000000063fb86 in CSocketClientProxy::Write (this=0x1497d50, buffer=0x14568c0, nbytes=46) at Proxy.cpp:1325
#13 0x00000000004dd3be in CEncryptedStreamSocket::Write (this=0x1497d50, lpBuf=0x14568c0, nBufLen=46) at EncryptedStreamSocket.cpp:210
#14 0x00000000004dbc1e in CEMSocket::Send (this=0x1497d50, maxNumberOfBytesToSend=1300, minFragSize=1300, onlyAllowedToSendControlPacket=true) at EMSocket.cpp:565
#15 0x00000000004a790f in CEMSocket::SendControlData (this=0x1497d50, maxNumberOfBytesToSend=477, minFragSize=1300) at EMSocket.h:69
#16 0x00000000004a74d2 in CClientTCPSocket::SendControlData (this=0x1497d50, maxNumberOfBytesToSend=477, overchargeMaxBytesToSend=1300) at ClientTCPSocket.cpp:2053#17 0x0000000000551f88 in UploadBandwidthThrottler::Entry (this=0x11a82e0) at UploadBandwidthThrottler.cpp:364
#18 0x00007ffff6032863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#19 0x00007ffff52f4184 in start_thread (arg=0x7fffdb4ef700) at pthread_create.c:312
#20 0x00007ffff502137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffe905c700 (LWP 3294)):
#0  0x00007ffff5013fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3afafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3afb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3afb129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3b1ff05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52f4184 in start_thread (arg=0x7fffe905c700) at pthread_create.c:312
#6  0x00007ffff502137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffeadcc700 (LWP 3285)):
#0  0x00007ffff5013fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3afafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3afb30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff1a52336 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff3b1ff05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52f4184 in start_thread (arg=0x7fffeadcc700) at pthread_create.c:312
#6  0x00007ffff502137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fffeb5cd700 (LWP 3284)):
#0  0x00007ffff5013fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3afafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3afb0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffeb5d51ad in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff3b1ff05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52f4184 in start_thread (arg=0x7fffeb5cd700) at pthread_create.c:312
#6  0x00007ffff502137d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fbea00 (LWP 3280)):
#0  0x00007ffff3af82a7 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff3af847e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3afa62b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3afaf03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3afb30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff460a447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#6  0x00007ffff66a928a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#7  0x00007ffff671ab4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#8  0x00007ffff5fe0e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9  0x0000000000592187 in main (argc=1, argv=0x7fffffffdf28) at amule-gui.cpp:95

Let me know if I can be of any further assistance.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: aMule crashes while downloading files
« Reply #1 on: October 03, 2016, 11:44:15 AM »

I would like to know whether you can experience this crash if you compile aMule with Boost.Asio networking (pass --with-boost to configure)?
Logged
concordia cum veritate

acidburn

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: aMule crashes while downloading files
« Reply #2 on: October 03, 2016, 07:51:35 PM »

Thanks for your reply. I'll keep an eye on it, but it did seem to have fixed the problem. What does that tell us?
« Last Edit: October 03, 2016, 07:53:15 PM by acidburn »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: aMule crashes while downloading files
« Reply #3 on: October 07, 2016, 09:49:21 PM »

There is a known bug in wxWidgets networking code, but it doesn't affect everyone. Moreover, some people reported crashes with Boost, but not with wxWidgets...
Logged
concordia cum veritate

acidburn

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: aMule crashes while downloading files
« Reply #4 on: October 09, 2016, 11:50:21 AM »

Good to know. Thanks for the insight. ;)
Logged