aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: another crash  (Read 22466 times)

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
another crash
« on: December 02, 2008, 05:14:07 PM »

crash occurred 30 seconds after connecting to the server, I was doing nothing on the amule window.
amule 2.2.2 , wxGTK 2.8.9, ubuntu 8.10 amd64
actually is not the first time that amule crashes directly after starting

Code: [Select]
luca@luca-desktop:~$ gdb amule
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 0x7f8384de6780 (LWP 7862)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread 0x426f6950 (LWP 7868)]
HTTP download thread started
ListenSocket: Ok.
[New Thread 0x42ef7950 (LWP 7886)]
Loading temp files from /media/seagate9_/musica/amule/temp.
Loading PartFile 49 of 49
All PartFiles Loaded.

[New Thread 0x41c4c950 (LWP 7934)]
[New Thread 0x436f8950 (LWP 7935)]
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread 0x426f6950 (LWP 7868) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f8384de6780 (LWP 7862)]
0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x1000de26f40, Icon=2, percent=8) at MuleTrayIcon.cpp:211
211 Bar_ySize = HighId_Icon_size;


(gdb) bt

#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x1000de26f40, Icon=2, percent=8) at MuleTrayIcon.cpp:211
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0xd98e120, percent=8) at amuleDlg.cpp:365
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0xd98e120) at amuleDlg.cpp:832
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0xd98e120) at amuleDlg.cpp:1069
#4  0x00007f838331c389 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f838331d564 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00007f838331d657 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00007f8383a96f86 in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f83839b375b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f837ff8f4fb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f837ff8ed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007f837ff9250d in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f837ff92a3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f8381e1f7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f83839ab118 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f8383a252cb in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f83832c140d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#17 0x000000000064cf55 in main (argc=1, argv=0x7fff8ce152d8) at amule-gui.cpp:95





(gdb) bt full

#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x1000de26f40, Icon=2, percent=8) at MuleTrayIcon.cpp:211
Bar_ySize = 0
NewSize = 4596327
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0xd98e120, percent=8) at amuleDlg.cpp:365
No locals.
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0xd98e120) at amuleDlg.cpp:832
percentDown = 8
buffer2 = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x0}, <No data fields>}
kBpsUp = 11.5566368
kBpsDown = 21.7108116
buffer = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7f8370019538}, <No data fields>}
label = (struct wxStaticText *) 0xa937fc0
bmp = (struct wxStaticBitmap *) 0x0
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0xd98e120) at amuleDlg.cpp:1069
msCur = 479654
msGraphUpdate = 3000
sStatsUpdate = 30
msPrev1 = 478796
msPrev5 = 479654
msPrevStats = 0
msPrevGraph = 477514
#4  0x00007f838331c389 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#5  0x00007f838331d564 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#6  0x00007f838331d657 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#7  0x00007f8383a96f86 in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#8  0x00007f83839b375b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#9  0x00007f837ff8f4fb in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f837ff8ed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f837ff9250d in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00007f837ff92a3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00007f8381e1f7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0x00007f83839ab118 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#15 0x00007f8383a252cb in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#16 0x00007f83832c140d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#17 0x000000000064cf55 in main (argc=1, argv=0x7fff8ce152d8) at amule-gui.cpp:95
No locals.





(gdb) thread apply all bt

Thread 5 (Thread 0x436f8950 (LWP 7935)):
#0  0x00007f83849e755d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8383319d79 in wxConditionInternal::WaitTimeout () from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x00007f838331b102 in wxSemaphoreInternal::WaitTimeout () from /usr/local/lib/libwx_baseu-2.8.so.0
#3  0x000000000078f03d in CTimerThread::Entry (this=0x2c0c0e0) at Timer.cpp:64
#4  0x00007f838331b2ea in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f83849e33ea in start_thread () from /lib/libpthread.so.0
#6  0x00007f83825c4c6d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x41c4c950 (LWP 7934)):
#0  0x00007f83849e9f4b in read () from /lib/libpthread.so.0
#1  0x0000000000778532 in CFile::doRead (this=0x41c4bba0, buffer=0x7f83709a2bd0, count=9728000) at CFile.cpp:304
#2  0x0000000000788e08 in CFileDataIO::Read (this=0x41c4bba0, buffer=0x7f83709a2bd0, count=9728000) at SafeFile.cpp:72
#3  0x00000000006e6966 in CKnownFile::CreateHashFromFile (file=0x41c4bba0, Length=9728000, Output=0x41c4b850,
    pShaHashOut=0x0) at KnownFile.cpp:776
#4  0x00000000005c0762 in CHashingTask::CreateNextPartHash (this=0xa440830, file=0x41c4bba0, owner=0x7f8368005fc0,
    toHash=CHashingTask::EH_MD4) at ThreadTasks.cpp:220
#5  0x00000000005c1659 in CHashingTask::Entry (this=0xa440830) at ThreadTasks.cpp:148
#6  0x00000000007c7f6b in CThreadScheduler::Entry (this=0xa31fbb0) at ThreadScheduler.cpp:291
#7  0x00000000007d4c4d in CTaskThread::Entry (this=0xadceca0) at ThreadScheduler.cpp:61
#8  0x00007f838331b2ea in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_baseu-2.8.so.0
#9  0x00007f83849e33ea in start_thread () from /lib/libpthread.so.0
#10 0x00007f83825c4c6d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x42ef7950 (LWP 7886)):
#0  0x00007f83849ea851 in nanosleep () from /lib/libpthread.so.0
#1  0x00007f8383320f9c in wxMicroSleep () from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x00000000005c5d9a in UploadBandwidthThrottler::Entry (this=0xa364230) at UploadBandwidthThrottler.cpp:324
#3  0x00007f838331b2ea in wxThreadInternal::PthreadStart () from /usr/local/lib/libwx_baseu-2.8.so.0
#4  0x00007f83849e33ea in start_thread () from /lib/libpthread.so.0
#5  0x00007f83825c4c6d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8384de6780 (LWP 7862)):
#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x1000de26f40, Icon=2, percent=8) at MuleTrayIcon.cpp:211
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0xd98e120, percent=8) at amuleDlg.cpp:365
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0xd98e120) at amuleDlg.cpp:832
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0xd98e120) at amuleDlg.cpp:1069
#4  0x00007f838331c389 in wxEvtHandler::ProcessEventIfMatches () from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f838331d564 in wxEventHashTable::HandleEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00007f838331d657 in wxEvtHandler::ProcessEvent () from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00007f8383a96f86 in wxTimerBase::Notify () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f83839b375b in timeout_callback () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f837ff8f4fb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f837ff8ed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007f837ff9250d in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f837ff92a3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f8381e1f7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f83839ab118 in wxEventLoop::Run () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f8383a252cb in wxAppBase::MainLoop () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f83832c140d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#17 0x000000000064cf55 in main (argc=1, argv=0x7fff8ce152d8) at amule-gui.cpp:95
(gdb)
« Last Edit: December 02, 2008, 05:16:06 PM by luquino »
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #1 on: December 02, 2008, 06:26:12 PM »

today it is impossible for me to use aMule, I tried 10 times but alway crashes shortly after connecting.
Even I tried to disable the Tray Icon in the the options window, but no results, still crashing... :(
Can you give me an idea to put aMule at work?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: another crash
« Reply #2 on: December 02, 2008, 10:01:34 PM »

If the tray icon is disabled in prefs, and you the restart aMule, it shouldn't be possible to get this crash.
I don't have an idea how the this-pointer can get corrupted.  ???
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #3 on: December 03, 2008, 12:22:03 AM »

this is a BT with Tray  Icon disabled

Code: [Select]
(gdb) run
Starting program: /usr/local/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 0x7f59de452780 (LWP 11063)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread 0x421bc950 (LWP 11071)]
HTTP download thread started
ListenSocket: Ok.
[New Thread 0x4109b950 (LWP 11228)]
Loading temp files from /media/seagate9_/musica/amule/temp.
Loading PartFile 49 of 49
All PartFiles Loaded.
Adding file /media/seagate9_/musica/amule/temp/026.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/027.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/033.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/035.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/037.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/039.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/044.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/001.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/002.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/003.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/004.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/005.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/006.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/007.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/008.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/010.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/011.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/012.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/013.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/015.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/016.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/017.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/018.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/019.part.met to shares
Adding file /media/seagate9_/musica/amule/temp/023.part.met to shares

[New Thread 0x429bd950 (LWP 11274)]
[New Thread 0x431be950 (LWP 11275)]
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread 0x421bc950 (LWP 11071) exited]
[Thread 0x429bd950 (LWP 11274) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f59de452780 (LWP 11063)]
0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000, Icon=2,
    percent=11) at MuleTrayIcon.cpp:211
211 Bar_ySize = HighId_Icon_size;



(gdb) bt
#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000,
    Icon=2, percent=11) at MuleTrayIcon.cpp:211
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0x6e95220,
    percent=11) at amuleDlg.cpp:365
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0x6e95220)
    at amuleDlg.cpp:832
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0x6e95220)
    at amuleDlg.cpp:1069
#4  0x00007f59dc988389 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f59dc989564 in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00007f59dc989657 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00007f59dd102f86 in wxTimerBase::Notify ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f59dd01f75b in timeout_callback ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f59d95fb4fb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f59d95fad3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#11 0x00007f59d95fe50d in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f59d95fea3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f59db48b7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f59dd017118 in wxEventLoop::Run ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f59dd0912cb in wxAppBase::MainLoop ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f59dc92d40d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#17 0x000000000064cf55 in main (argc=1, argv=0x7fffe6480948)
    at amule-gui.cpp:95



(gdb) bt full
#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000,
    Icon=2, percent=11) at MuleTrayIcon.cpp:211
Bar_ySize = 0
NewSize = 4596327
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0x6e95220,
    percent=11) at amuleDlg.cpp:365
No locals.
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0x6e95220)
    at amuleDlg.cpp:832
percentDown = 11
buffer2 = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0x7fffe64803e0}, <No data fields>}
kBpsUp = 9.94675636
kBpsDown = 31.4370766
buffer = {<wxStringBase> = {static npos = 18446744073709551615,
    m_pchData = 0xd1e08b8}, <No data fields>}
label = (struct wxStaticText *) 0x92e2820
bmp = (struct wxStaticBitmap *) 0x0
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0x6e95220)
    at amuleDlg.cpp:1069
msCur = 684115
msGraphUpdate = 3000
sStatsUpdate = 30
msPrev1 = 683183
msPrev5 = 684115
msPrevStats = 0
msPrevGraph = 684019
#4  0x00007f59dc988389 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#5  0x00007f59dc989564 in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#6  0x00007f59dc989657 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#7  0x00007f59dd102f86 in wxTimerBase::Notify ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#8  0x00007f59dd01f75b in timeout_callback ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#9  0x00007f59d95fb4fb in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f59d95fad3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f59d95fe50d in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00007f59d95fea3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00007f59db48b7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0x00007f59dd017118 in wxEventLoop::Run ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#15 0x00007f59dd0912cb in wxAppBase::MainLoop ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
No locals.
#16 0x00007f59dc92d40d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
No locals.
#17 0x000000000064cf55 in main (argc=1, argv=0x7fffe6480948)
    at amule-gui.cpp:95
No locals.




(gdb) thread apply all bt

Thread 5 (Thread 0x431be950 (LWP 11275)):
#0  0x00007f59de05355d in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x00007f59dc985d79 in wxConditionInternal::WaitTimeout ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x00007f59dc987102 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#3  0x000000000078f03d in CTimerThread::Entry (this=0x15b1d60) at Timer.cpp:64
#4  0x00007f59dc9872ea in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f59de04f3ea in start_thread () from /lib/libpthread.so.0
#6  0x00007f59dbc30c6d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x4109b950 (LWP 11228)):
#0  0x00007f59de056851 in nanosleep () from /lib/libpthread.so.0
#1  0x00007f59dc98cf9c in wxMicroSleep ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#2  0x00000000005c5d9a in UploadBandwidthThrottler::Entry (this=0x97aa270)
    at UploadBandwidthThrottler.cpp:324
#3  0x00007f59dc9872ea in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#4  0x00007f59de04f3ea in start_thread () from /lib/libpthread.so.0
#5  0x00007f59dbc30c6d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f59de452780 (LWP 11063)):
#0  0x00000000006cf738 in CMuleTrayIcon::SetTrayIcon (this=0x10000000000,
    Icon=2, percent=11) at MuleTrayIcon.cpp:211
#1  0x0000000000657543 in CamuleDlg::UpdateTrayIcon (this=0x6e95220,
    percent=11) at amuleDlg.cpp:365
#2  0x0000000000657a36 in CamuleDlg::ShowTransferRate (this=0x6e95220)
    at amuleDlg.cpp:832
#3  0x0000000000657fed in CamuleDlg::OnGUITimer (this=0x6e95220)
    at amuleDlg.cpp:1069
#4  0x00007f59dc988389 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#5  0x00007f59dc989564 in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#6  0x00007f59dc989657 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseu-2.8.so.0
#7  0x00007f59dd102f86 in wxTimerBase::Notify ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#8  0x00007f59dd01f75b in timeout_callback ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#9  0x00007f59d95fb4fb in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f59d95fad3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#11 0x00007f59d95fe50d in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f59d95fea3d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#13 0x00007f59db48b7a7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f59dd017118 in wxEventLoop::Run ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#15 0x00007f59dd0912cb in wxAppBase::MainLoop ()
   from /usr/local/lib/libwx_gtk2u_core-2.8.so.0
#16 0x00007f59dc92d40d in wxEntry () from /usr/local/lib/libwx_baseu-2.8.so.0
#17 0x000000000064cf55 in main (argc=1, argv=0x7fffe6480948)
    at amule-gui.cpp:95
(gdb)
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #4 on: December 04, 2008, 03:47:01 PM »

I'm sorry man, yesterday I was hard trying to reproduce the bug all day long, but I couldn't.
I obtained some interruptions but impossible to determine a repetition, just I can say to you that I think that is possibly guilty the function that reorder the lines, in the download window, by pressing the column header, especially when I reorder by download progress. But I repeat:  I was unable to obtain a repetition.
Anyway, is there  CVS or SVN version that I can download and try?
Now I can't  download nothing with my aMule... :(
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: another crash
« Reply #5 on: December 04, 2008, 09:53:11 PM »

Well, for some reason bit 40 in the trayicon's this-pointer gets set corrupting the pointer. This also breaks the disabling of the tray icon, so that had no effect.
I could work around this specific problem, but it makes no real sense curing the symptoms, and I have no idea about what causes this effect.

Why can't you download anything if you can't reproduce the problem ?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #6 on: December 04, 2008, 09:57:43 PM »

because amule works for a while and then crashes, some times is a few minutes, sometimes is a couple of hours and  I can't seat down watching amule 24/24 hours, I need to launch and forget it until it finish is job.
Logged

wires

  • Jr. Member
  • **
  • Karma: 6
  • Offline Offline
  • Posts: 83
Re: another crash
« Reply #7 on: December 05, 2008, 12:13:42 AM »

May be that wxASSERT is corrupting the pointer? I hope not but..  :o I've been running aMule for days on Fedora 9 x86_64 without debug, and I suffered this problem running it with debug enabled and UseTrayIcon deactivated (aMule release 2.2.2). If not, how can UpdateTrayIcon be invoked when we have UseTrayIcon preference deactivated and code is checking for NULL pointer? (By the way, it also happened to me with UseTrayIcon and MinimizeToTray activated and debug disabled) What about changing the assert for an `if'  check and raising a fatal exception when it fails? Would it help? Failing this, when gets the pointer assigned a non-NULL value with UseTrayIcon deactivated? Corrupted stack? Ufff so hard to trace

I'm not an expert, so I'll stay quiet if I'm telling nonsenses. Feel free to tell me or even delete this post ok?  ;D
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: another crash
« Reply #8 on: December 05, 2008, 12:43:16 AM »

May be that wxASSERT is corrupting the pointer?
Hardly.
Code: [Select]
    #define wxASSERT_MSG(cond, msg)                                           \
      if ( cond )                                                             \
          ;                                                                   \
      else                                                                    \
          wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, _T(#cond), msg)

Quote
If not, how can UpdateTrayIcon be invoked when we have UseTrayIcon preference deactivated and code is checking for NULL pointer?
Exactly.

Quote
Failing this, when gets the pointer assigned a non-NULL value with UseTrayIcon deactivated? Corrupted stack? Ufff so hard to trace
Yeah, that's the question. No nonsense. I don't have any more clue than you.  Something systematic (always the same bit) 64-bityish. Automatic setting of a page attribute or execution bit in a pointer ? ???
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #9 on: December 05, 2008, 01:36:14 AM »

ok Stu, listen, On my pc the problem is occurring continuosly so I offer myself to try to trace the corrupting pointer if there is some tools I can use and you think it can be useful.
I was a programmer and system manager, but never used C language, so feel free to use technical language if needed.
This offer is valid until saturday, because starting from sunday my wife is on holiday so I couldn't stay a lot at the computer.  ;)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: another crash
« Reply #10 on: December 05, 2008, 07:22:10 PM »

Please try this patch. It tries to work around the problem by not using the trayicon pointer as status variable anymore.
At least with trayicon off it should run now. If it does, try reenabling the tray icon and see if it crashes then.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #11 on: December 05, 2008, 07:57:06 PM »

I move to /src in amule directory and then
Code: [Select]
patch -p1 < icontrash.patch
IS this the command to patch ?
It appears to do nothing, it says that probably the pn is not correct...


edit:
I've found the right way, move the patch in amulexxx/src and staying there the right command is
Code: [Select]
patch -p0 < icontrash.patch
« Last Edit: December 15, 2008, 10:09:08 PM by luquino »
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #12 on: December 05, 2008, 08:44:35 PM »

Ok, don't mind about the patch, I applied the changes by hand.
Amule is working now,  I' ĺl post news.  ;)
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #13 on: December 06, 2008, 06:05:28 PM »

MMhhhhh  ... things are getting worst.
Yestrday I had 2 painful crashes, when amule crashed as well other programs crashed, i.e. XMMS once, GKRELLM another time, and the whole system freezed for a while. I can't tell you which was the error because the terminal window crashed as well, both times.  I was trying without tray icon.
Today I compiled amule wih debug and again at a certain point the system started to freeze, all other programs running where freezed or sloved down, Firefox, Nautilus..., but I hadn't a real crash.
Finally I recompiled amule from yesterday svn and now is running, cross your finger...
I'm not very experienced in C language, but I suspect a RAM mess.
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: another crash
« Reply #14 on: December 06, 2008, 10:23:31 PM »

Well, I have a final resume of my tests.
today I tried svn version of friday 05/12/2008. The first time it worked about 15 minutes and then crashed, the second try I switched off every other program, just amule was working on my pc and the result was 3 and half hours of work (details in the screen capture attached, sorry for the spanish .... ;) ).
That was the situation when I went back home, so I opened some windows on my pc: firefox, gkrellm, nautilus. In less than ten minutes amule crashed. I have no BT becuase it was compiled without debug, but as well I have no error to show you because the terminal window where I launched amule just says

Quote
...(omitted)
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
Terminado (killed)
luca@luca-desktop:~$

Now I can say to you that the first time in absolute that I installed and runned amule on this pc,  last week, it worked about 10 hours without problem, during the night, alone,  without any other program running. In the morning I gave a look to the screen and I was very happy because it downloaded about 6 GB. But a short while after I opened my mail amule crashed.
The other trick that shoud be related is that today, the same as the first time, when I went back to the pc, I setted a DL speed limit to 50 KB, instead of zero (full speed), because here in Lima (Perú) the maximum speed for the home ADSL you can have is 1 Mb.  But I don't think that is related with the crashes because all the other time it crashed, the speed was setted to 50 and I didn't change it.

I can't say any more and I hope that this can be useful to you (actually I think that  is a tough headhache).

P.S.: Sorry for my poor english :)

P.P.S.: if I have time I will try to compile the svn version with debug, with and without patch, and I will post the results, but I can't promise to you that this will be in a short time.
« Last Edit: December 06, 2008, 10:29:16 PM by luquino »
Logged
Pages: [1] 2 3