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]

Author Topic: another crash...  (Read 10845 times)

IWantMyMule

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: another crash...
« Reply #15 on: April 09, 2006, 05:26:34 PM »

Isn't debug information included by default in aMule (as INSTALL only offers "--disable-debug")? I'll recompile wxWidgets, though. 8) I think I just got blended from the info that wx2.6.3 was "tested heavily" with amule...  :P
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: another crash...
« Reply #16 on: April 09, 2006, 07:46:13 PM »

Well, I can't say anything about "heavily tested with wx-2.6.3", because I use wx-CVS, which gives me some headaches from time to time, but I believe I can be more productive making sure aMule will always run on the latest wx code.

As for debug info, yes, debug is included by default on hand configured code. But give another check, because it might have been stripped if you use someone else's script. It is just that I saw no debug symbols in your code, either from aMule or wx.

BTW, your problem seems related to wx. Can you post the configure line you used to compile it?

Cheers!
Logged

IWantMyMule

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: another crash...
« Reply #17 on: April 23, 2006, 01:18:01 PM »

I configured wx with
./configure --with-gtk --enable-unicode --enable debug

Here's another backtrace:
Code: [Select]
Terminated after throwing an instance of 'std::bad_alloc'
        what(): St9bad_alloc
* Could not get symbol names for backtrace

Terminated after throwing an instance of 'std::bad_alloc'
        what(): St9bad_alloc
        backtrace:

* Could not get symbol names for backtrace
        backtrace:


Program received signal SIGABRT, Aborted.
[Switching to Thread 1127861168 (LWP 28701)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x400347b0 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x08329b5d in std::operator+, std::allocator > ()
#3  0x40677ed4 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#4  0x40677f11 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0x4067809c in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x4067852a in operator new () from /usr/lib/libstdc++.so.6
#7  0x0806fee7 in wxObject::ReservedObjectFunc9 ()
#8  0x4058c8d1 in wxEvtHandler::AddPendingEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#9  0x0806fc66 in wxObject::ReservedObjectFunc9 ()
#10 0x082d3931 in wxArchiveInputStream::Peek ()
#11 0x4058b18f in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#12 0x4058b21c in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#13 0x4002e361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0x4079cbde in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0x400347b0 in raise () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#2  0x08329b5d in std::operator+, std::allocator > ()
No symbol table info available.
#3  0x40677ed4 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
No symbol table info available.
#4  0x40677f11 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
#5  0x4067809c in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
#6  0x4067852a in operator new () from /usr/lib/libstdc++.so.6
No symbol table info available.
#7  0x0806fee7 in wxObject::ReservedObjectFunc9 ()
No symbol table info available.
#8  0x4058c8d1 in wxEvtHandler::AddPendingEvent ()
   from /usr/lib/libwx_base-2.6.so.0
No symbol table info available.
#9  0x0806fc66 in wxObject::ReservedObjectFunc9 ()
No symbol table info available.
#10 0x082d3931 in wxArchiveInputStream::Peek ()
---Type to continue, or q to quit---
No symbol table info available.
#11 0x4058b18f in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
No symbol table info available.
#12 0x4058b21c in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
No symbol table info available.
#13 0x4002e361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#14 0x4079cbde in clone () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
(gdb) thread apply all bt

Thread 4 (Thread 1127861168 (LWP 28701)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x400347b0 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x08329b5d in std::operator+, std::allocator > ()
#3  0x40677ed4 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#4  0x40677f11 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0x4067809c in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x4067852a in operator new () from /usr/lib/libstdc++.so.6
#7  0x0806fee7 in wxObject::ReservedObjectFunc9 ()
#8  0x4058c8d1 in wxEvtHandler::AddPendingEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#9  0x0806fc66 in wxObject::ReservedObjectFunc9 ()
#10 0x082d3931 in wxArchiveInputStream::Peek ()
#11 0x4058b18f in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#12 0x4058b21c in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#13 0x4002e361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0x4079cbde in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 1100221360 (LWP 28687)):
#0  0xffffe410 in __kernel_vsyscall ()
---Type to continue, or q to quit---
#1  0x40033d76 in __nanosleep_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x4058ff16 in wxMicroSleep () from /usr/lib/libwx_base-2.6.so.0
#3  0x4058ff48 in wxMilliSleep () from /usr/lib/libwx_base-2.6.so.0
#4  0x40588d8c in wxThread::Sleep () from /usr/lib/libwx_base-2.6.so.0
#5  0x081869fd in wxTopLevelWindowGTK::IsGrabbed ()
#6  0x4058b18f in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.6.so.0
#7  0x4058b21c in wxPthreadStart () from /usr/lib/libwx_base-2.6.so.0
#8  0x4002e361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0x4079cbde in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 1089345632 (LWP 28681)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x400347b0 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x08329b5d in std::operator+, std::allocator > ()
#3  0x40677ed4 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#4  0x40677f11 in std::terminate () from /usr/lib/libstdc++.so.6
#5  0x4067809c in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x4067852a in operator new () from /usr/lib/libstdc++.so.6
#7  0x081e7c29 in wxObjectList::CreateNode ()
#8  0x405404ba in wxListBase::Append () from /usr/lib/libwx_base-2.6.so.0
---Type to continue, or q to quit---
#9  0x4058c931 in wxEvtHandler::AddPendingEvent ()
   from /usr/lib/libwx_base-2.6.so.0
#10 0x404b403e in wxSocketBase::OnRequest ()
   from /usr/lib/libwx_base_net-2.6.so.0
#11 0x404b4160 in wx_socket_callback () from /usr/lib/libwx_base_net-2.6.so.0
#12 0x404b83f8 in GSocket::Detected_Write ()
   from /usr/lib/libwx_base_net-2.6.so.0
#13 0x40285e51 in wxGDIObject::~wxGDIObject ()
   from /usr/lib/libwx_gtk2_core-2.6.so.0
#14 0x40af2b20 in gdk_get_show_events () from /usr/lib/libgdk-x11-2.0.so.0
#15 0x40d6631c in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#16 0x40d3f4ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x40d424f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#18 0x40d427e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#19 0x40922e65 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x4028411e in wxEventLoop::Run () from /usr/lib/libwx_gtk2_core-2.6.so.0
#21 0x4030f7c5 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2_core-2.6.so.0
#22 0x4030f8e2 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2_core-2.6.so.0
#23 0x40535ffb in wxEntry () from /usr/lib/libwx_base-2.6.so.0
#24 0x081daaed in wxTopLevelWindowGTK::IsGrabbed ()
#25 0x406e8ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#26 0x08069311 in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()
(gdb)
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: another crash...
« Reply #18 on: April 23, 2006, 11:14:18 PM »

Try this line:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=~/wxWidgets

and do not forget to run amule like this:
$ LD_LIBRARY_PATH=~/wxWidgets/lib amule &
Logged

IWantMyMule

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: another crash...
« Reply #19 on: May 06, 2006, 09:32:50 PM »

Doesn't seem to work...

Code: [Select]
(amule:29783): GLib-WARNING **: giounix.c:400Error while getting flags for FD: Bad file descriptor (9)


--------------------------------------------------------------------------------
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:
    [URL]http://forum.amule.org/board.php?boardid=67[/URL]
If possible, please try to generate a real backtrace of this crash:
    [URL]http://www.amule.org/wiki/index.php/Backtraces[/URL]

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.1.1 using wxGTK2 v2.6.3
Running on: Linux 2.6.16.1 i686

[2] ?? in amule [0x80733d3]
[3] wxFatalSignalHandler in /usr/lib/libwx_base-2.6.so.0[0x405904a6]
[4] ?? in [0xffffe420]
[5] ?? in [0xb0eadff]
[6] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0x40af2b20]
[7] ?? in /usr/lib/libglib-2.0.so.0 [0x40d6631c]
[8] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x40d3f4ee]
[9] ?? in /usr/lib/libglib-2.0.so.0 [0x40d424f6]
[10] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x40d427e3]
[11] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x40922e65]
[12] wxEventLoop::Run() in /usr/lib/libwx_gtk2_core-2.6.so.0[0x4028411e]
[13] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2_core-2.6.so.0[0x4030f7c5]
[14] wxAppBase::OnRun() in /usr/lib/libwx_gtk2_core-2.6.so.0[0x4030f8e2]
[15] wxEntry(int&, char**) in /usr/lib/libwx_base-2.6.so.0[0x40535ffb]
[16] ?? in amule [0x81daaed]
[17] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0x406e8ea2]
[18] wxAppBase::Dispatch() in amule[0x8069311]


--------------------------------------------------------------------------------

[1]+  Aborted                 LD_LIBRARY_PATH=~/wxWidgets/lib amule
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: another crash...
« Reply #20 on: May 10, 2006, 03:32:55 AM »

IWantMyMule,

Did you link aMule against the wxWidget library you just created? You have to configure aMule more or less like this:

$ ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --with-wx-config=/home/iwantmymule/wxWidgets-cvsu/bin/wx-config --enable-cas

Cheers!
Logged

IWantMyMule

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: another crash...
« Reply #21 on: May 14, 2006, 09:24:22 PM »

OK, I did this now but it still keeps crashing. Crashed after ~11h of running today. Here's what it says on the console:

Code: [Select]
(amule:5454): GLib-WARNING **: giounix.c:400Error while getting flags for FD: Bad file descriptor (9)


--------------------------------------------------------------------------------
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:
    [URL]http://forum.amule.org/board.php?boardid=67[/URL]
If possible, please try to generate a real backtrace of this crash:
    [URL]http://www.amule.org/wiki/index.php/Backtraces[/URL]

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.1.1 using wxGTK2 v2.6.3 (Unicoded, Debugging)
Running on: Linux 2.6.16.1 i686

addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
addr2line: 'amule': No such file
[2] ?? in amule [0x807b82f]
[3] wxFatalSignalHandler in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x403592b1]
[4] ?? in [0xffffe420]
[5] ?? in [0xbf15b98]
[6] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0x40d1cb20]
[7] ?? in /usr/lib/libglib-2.0.so.0 [0x40f8f31c]
[8] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x40f684ee]
[9] ?? in /usr/lib/libglib-2.0.so.0 [0x40f6b4f6]
[10] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x40f6b7e3]
[11] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x40b4be65]
[12] wxEventLoop::Run() in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x4039743c]
[13] wxAppBase::MainLoop() in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x40428d8b]
[14] wxAppBase::OnRun() in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x40428f17]
[15] wxEntry(int&, wchar_t**) in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x402e312d]
[16] wxEntry(int&, char**) in /home/vickub/wxWidgets/lib/libwx_gtk2ud-2.6.so.0[0x402e3206]
[17] ?? in amule [0x81e6dcd]
[18] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0x40911ea2]
[19] wxWindow::GetScrollRange(int) const in amule[0x8071561]


--------------------------------------------------------------------------------

Any ideas what to do now?
« Last Edit: May 14, 2006, 09:24:38 PM by IWantMyMule »
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: another crash...
« Reply #22 on: May 15, 2006, 12:00:00 AM »

Post here the result of:

$ grep -n HAVE_BFD /home/vickub/aMule-cvs/config.log

(substitute this for the actual directory where you compile aMule)

Also, what is the version of your binutils?

It does not seem to be amule fault. And not even wxWidgets. Could you check your gtk instalation? Maybe a corrupt lib or something like that?
Logged
Pages: 1 [2]