aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: When closing a search tab (apparently GTK+ issue)  (Read 8857 times)

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
When closing a search tab (apparently GTK+ issue)
« on: October 02, 2008, 12:35:49 AM »

Closing a search tab. It looks to me like a GTK+ bug (!)

I will produce it with debug symbols, if possible.

Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.2 using wxGTK2 v2.8.8
Running on: Linux 2.6.25-gentoo-r7 i686

[2] ?? in amule [0x806c9b5]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb7a181e6]
[4] ?? in [0xffffe400]
[5] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb74cba72]
[6] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb74af180]
[7] ?? in /usr/lib/libgobject-2.0.so.0 [0xb723d249]
[8] g_closure_invoke in /usr/lib/libgobject-2.0.so.0[0xb723ec9b]
[9] ?? in /usr/lib/libgobject-2.0.so.0 [0xb724ff6d]
[10] g_signal_emit_valist in /usr/lib/libgobject-2.0.so.0[0xb7250bd8]
[11] g_signal_emit in /usr/lib/libgobject-2.0.so.0[0xb7250fa9]
[12] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb75ca764]
[13] gtk_propagate_event in /usr/lib/libgtk-x11-2.0.so.0[0xb74a8267]
[14] gtk_main_do_event in /usr/lib/libgtk-x11-2.0.so.0[0xb74a9477]
[15] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0xb732494a]
[16] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb7189f2f]
[17] ?? in /usr/lib/libglib-2.0.so.0 [0xb718d43f]
[18] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb718d7f7]
[19] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb74a98d1]
[20] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7be920c]
[21] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c7ccbe]
[22] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c7c311]
[23] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb79a6bda]
[24] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb79a6c87]
[25] ?? in amule [0x81352b0]
[26] __libc_start_main in /lib/libc.so.6[0xb76e9fdc]
[27] wxNotebook::SetPadding(wxSize const&) in amule[0x806bc91]


--------------------------------------------------------------------------------
« Last Edit: October 07, 2008, 08:54:58 AM by legolas558 »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: When closing a search tab (apparently GTK+ issue)
« Reply #1 on: October 02, 2008, 03:01:39 AM »

Nope, looks like aMule bug to me.
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #2 on: October 03, 2008, 12:41:01 PM »

OK, I will compile aMule with debug code (and debug symbols) and post a backtrace created with gdb.

(Will that be enough?)
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #3 on: October 05, 2008, 09:35:32 PM »

Yet another crash, but this seems related to something else.

All these crashes are happening only with the non-debug version  >:(

Quote
--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://www.amule.org/wiki/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.2 using wxGTK2 v2.8.8
Running on: Linux 2.6.25-gentoo-r7 i686

[2] CamuleApp::OnFatalException() in :0
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb7a101e6]
[4] ?? in [0xffffe400]
[5] CUpDownClient::GetDownloadState() const in :0
[6] CPartFile::Process(unsigned int, unsigned char) in :0
[7] CDownloadQueue::Process() in :0
[8] CamuleApp::OnCoreTimer(CTimerEvent&) in :0
[9] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.8.so.0[0xb7963335]
[10] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a0b70f]
[11] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a0b85b]
[12] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a0b9df]
[13] wxEvtHandler::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0xb7a0bdd7]
[14] wxAppConsole::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0xb7963def]
[15] wxAppBase::ProcessIdle() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c74dff]
[16] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0xb7bc7668]
[17] ?? in /usr/lib/libglib-2.0.so.0 [0xb717e321]
[18] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb717ff2f]
[19] ?? in /usr/lib/libglib-2.0.so.0 [0xb718343f]
[20] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb71837f7]
[21] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb749f8d1]
[22] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7be120c]
[23] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c74cbe]
[24] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c74311]
[25] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb799ebda]
[26] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb799ec87]
[27] main in :0
[28] __libc_start_main in /lib/libc.so.6[0xb76dffdc]
[29] wxAppBase::MainLoop() in :0


--------------------------------------------------------------------------------
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #4 on: October 07, 2008, 08:44:06 AM »

I think I have reported 2 different issues here (where's the issue tracker?).

1) the first issue is happening when closing a search tab. I can successfully reproduce it when opening two search tabs, download something from the 2nd and then close all tabs. Upon closing the first tab, aMule will crash (both with debug and non-debug version). More details will follow as soon as I get a full backtrace.

2) the second issue happens randomly and maybe similar to iz0bbz's problem.

I am now recompiling the whole lot with MULECFLAGS += -fasynchronous-unwind-tables
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #5 on: October 07, 2008, 08:56:32 AM »

Opened two search tabs, downloaded something, closed them both, crash upon clicking 'X' of the first and last search tab.

This is a bt full and thread apply all bt. I can see no useful information here :(

Code: [Select]

#0  0xb748aa72 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#1  0x0c05a970 in ?? ()
No symbol table info available.
#2  0x09862cc0 in ?? ()
No symbol table info available.
#3  0x00002772 in ?? ()
No symbol table info available.
#4  0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#5  0xb768aff4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#6  0xb748aa20 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#7  0xbfeb5ec8 in ?? ()
No symbol table info available.
#8  0xb746e180 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#9  0x0c05a970 in ?? ()
No symbol table info available.
#10 0x0c07c1a8 in ?? ()
No symbol table info available.
#11 0x096b1828 in ?? ()
No symbol table info available.
#12 0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#13 0xbfeb611c in ?? ()
No symbol table info available.
#14 0x091c5c68 in ?? ()
No symbol table info available.
#15 0xbfeb5ef8 in ?? ()
No symbol table info available.
#16 0xb71fc249 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#17 0x091c5c68 in ?? ()
No symbol table info available.
#18 0xbfeb6040 in ?? ()
No symbol table info available.
#19 0x00000002 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#20 0xbfeb602c in ?? ()
No symbol table info available.
#21 0xb748aa20 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0x0c0a26a0 in ?? ()
No symbol table info available.
#23 0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#24 0xb746e120 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#25 0xffffffff in ?? ()
No symbol table info available.
#26 0xbfeb5f58 in ?? ()
No symbol table info available.
#27 0xb71fdc9b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#28 0x0c05a970 in ?? ()
No symbol table info available.
#29 0x00000000 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 6 (Thread 0xb2edcb90 (LWP 5796)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f767fc in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb79d1ccb in wxConditionInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb79d1d2f in wxCondition::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb79d28ca in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb79d294f in wxSemaphore::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x083552c0 in CTimerThread::Entry (this=0xb6e4530) at Timer.cpp:64
#7  0xb79d2db8 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb79d2e2d in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb7f7218b in start_thread () from /lib/libpthread.so.0
#10 0xb775429e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb5151b90 (LWP 5786)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f797f6 in nanosleep () from /lib/libpthread.so.0
#2  0xb79d8dc6 in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb79d8df1 in wxMilliSleep () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb79d149d in wxThread::Sleep () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x081c0b0b in UploadBandwidthThrottler::Entry (this=0xc0565d8) at UploadBandwidthThrottler.cpp:324
#6  0xb79d2db8 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb79d2e2d in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7f7218b in start_thread () from /lib/libpthread.so.0
#9  0xb775429e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb6a859c0 (LWP 5639)):
#0  0xb748aa72 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#1  0x0c05a970 in ?? ()
#2  0x09862cc0 in ?? ()
#3  0x00002772 in ?? ()
#4  0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#5  0xb768aff4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#6  0xb748aa20 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#7  0xbfeb5ec8 in ?? ()
#8  0xb746e180 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#9  0x0c05a970 in ?? ()
#10 0x0c07c1a8 in ?? ()
#11 0x096b1828 in ?? ()
---Type <return> to continue, or q <return> to quit---
#12 0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0xbfeb611c in ?? ()
#14 0x091c5c68 in ?? ()
#15 0xbfeb5ef8 in ?? ()
#16 0xb71fc249 in ?? () from /usr/lib/libgobject-2.0.so.0
#17 0x091c5c68 in ?? ()
#18 0xbfeb6040 in ?? ()
#19 0x00000002 in ?? ()
#20 0xbfeb602c in ?? ()
#21 0xb748aa20 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x0c0a26a0 in ?? ()
#23 0xb722dff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#24 0xb746e120 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#25 0xffffffff in ?? ()
#26 0xbfeb5f58 in ?? ()
#27 0xb71fdc9b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#28 0x0c05a970 in ?? ()
#29 0x00000000 in ?? ()
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #6 on: October 07, 2008, 09:01:24 AM »

The second bug will be discuted here[/b]
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #7 on: October 07, 2008, 10:37:21 AM »

I am now recompiling the whole lot with MULECFLAGS += -fasynchronous-unwind-tables

I wasn't clear, you should ensure "-fasynchronous-unwind-tables" is NOT present in compilations options.  And try switching from "-O2" to "-O0" .
Ok, I modified that now. Recompiling...

Other issue, in your last backtrace there is  no debug information at all, and it is quite useless to developers. Did you follow wiki instructions on creating useful backtraces ?

Yes, but I don't know why no debug symbols where present. I am using this command line:
Code: [Select]
./configure --with-wxshared --disable-upnp --with-languages=it,en_GB --disable-optimize --enable-debug

I loaded the executable with gdb and ran the backtrace commands.
I will create another backtrace...
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #8 on: October 07, 2008, 10:59:14 AM »

The --disable-optimize parameter (given to configure) seems to workaround this bug!

I don't know how it modifies the make process, but the resuling executable is no more affected...I will now try a non-debug version also configured with --disable-optimize
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: When closing a search tab (apparently GTK+ issue)
« Reply #9 on: October 07, 2008, 11:10:04 AM »

The --disable-optimize parameter (given to configure) seems to workaround this bug!

I don't know how it modifies the make process, but the resuling executable is no more affected...

--enable-optimize only adds -O2 to the compiler flags. The only change when you disable it is that -O2 won't be added. Seems like your compiler does something wrong with optimization.
Logged
concordia cum veritate

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #10 on: October 07, 2008, 12:48:01 PM »

I am using gcc-4.2.3
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: When closing a search tab (apparently GTK+ issue)
« Reply #11 on: December 22, 2008, 11:43:38 PM »

Code: [Select]
[quote author=legolas558 link=topic=15892.msg84074#msg84074 date=1222900549]
Closing a search tab. It looks to me like a GTK+ bug (!)
[/quote]
Legolas558, I think you are right, it is a GTK+ bug. Could you try the patches at
http://www.amule.org/amule/index.php?topic=16254.0
Logged

legolas558

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 39
  • THX1138
    • Legolas558's lair
Re: When closing a search tab (apparently GTK+ issue)
« Reply #12 on: December 23, 2008, 12:10:29 AM »

Legolas558, I think you are right, it is a GTK+ bug. Could you try the patches at
http://www.amule.org/amule/index.php?topic=16254.0

Gee..looks like I was right.

I am now testing the GTK+ patch, thanks for the pointer!
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: When closing a search tab (apparently GTK+ issue)
« Reply #13 on: December 23, 2008, 11:44:34 AM »

Let's keep the discussion in one thread.
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