aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: segfault with 21 June CVS  (Read 3612 times)

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
segfault with 21 June CVS
« on: June 26, 2006, 12:50:41 PM »

Hi folks,

I got a segmentation fault running the CVS from 21 June. Here is the backtrace. I hope it is useful.

Code: [Select]
(gdb) bt
#0  0x00788fd4 in wxGDIObject::~wxGDIObject$delete ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#1  0x0424fb3e in gdk_input_add ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#2  0x0562fc2d in g_io_channel_unix_get_fd ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#3  0x0560715d in g_main_context_dispatch ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#4  0x0560a3ef in g_main_context_check ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#5  0x0560a799 in g_main_loop_run ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#6  0x04685634 in gtk_main ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#7  0x007873bb in wxEventLoop::Run ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#8  0x0081cf5c in wxAppBase::MainLoop ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#9  0x0081c641 in wxAppBase::OnRun ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#10 0x00401e2a in wxEntry ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#11 0x00401ee6 in wxEntry ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#12 0x081f5ee2 in main (argc=1, argv=0x5673600) at amule-gui.cpp:93

(gdb) thread apply all bt

Thread 4 (Thread -1303610464 (LWP 30400)):
#0  0x00b6e402 in __kernel_vsyscall ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#1  0x00d2a67c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#2  0x00457e8c in wxConditionInternal::WaitTimeout ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#3  0x00457edf in wxCondition::WaitTimeout ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#4  0x0045892c in wxSemaphoreInternal::WaitTimeout ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#5  0x004589bf in wxSemaphore::WaitTimeout ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#6  0x082fd242 in CTimerThread::Entry (this=0x9db5c70) at Timer.cpp:63
#7  0x00459639 in wxThreadInternal::PthreadStart ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#8  0x004596cd in wxPthreadStart ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#9  0x00d2740b in start_thread ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#10 0x00c54b7e in clone ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44

Thread 2 (Thread -1282630752 (LWP 30383)):
#0  0x00b6e402 in __kernel_vsyscall ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#1  0x00d2d526 in __nanosleep_nocancel ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#2  0x0045e138 in wxMicroSleep ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#3  0x0045e161 in wxMilliSleep ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#4  0x004572ed in wxThread::Sleep ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#5  0x08189ea4 in UploadBandwidthThrottler::Entry (this=0xc9ce9a0)
    at UploadBandwidthThrottler.cpp:317
#6  0x00459639 in wxThreadInternal::PthreadStart ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#7  0x004596cd in wxPthreadStart ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#8  0x00d2740b in start_thread ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#9  0x00c54b7e in clone ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44

Thread 1 (Thread -1208641840 (LWP 30379)):
#0  0x00788fd4 in wxGDIObject::~wxGDIObject$delete ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
---Type to continue, or q to quit---
#1  0x0424fb3e in gdk_input_add ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#2  0x0562fc2d in g_io_channel_unix_get_fd ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#3  0x0560715d in g_main_context_dispatch ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#4  0x0560a3ef in g_main_context_check ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#5  0x0560a799 in g_main_loop_run ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#6  0x04685634 in gtk_main ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#7  0x007873bb in wxEventLoop::Run ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#8  0x0081cf5c in wxAppBase::MainLoop ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#9  0x0081c641 in wxAppBase::OnRun ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#10 0x00401e2a in wxEntry ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#11 0x00401ee6 in wxEntry ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
#12 0x081f5ee2 in main (argc=1, argv=0x5673600) at amule-gui.cpp:93
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: segfault with 21 June CVS
« Reply #1 on: June 27, 2006, 07:36:09 PM »

I got this segfault again today. Here is the first bit I forgot to include above:

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208396080 (LWP 32117)]
0x00788fd4 in wxGDIObject::~wxGDIObject$delete ()
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/debug/functions.h:44
44        inline bool

Uptime of approx. one day. Amule was running in the background in both cases, so I don't know what specific action caused it.
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: segfault with 21 June CVS
« Reply #2 on: June 28, 2006, 12:16:21 AM »

Looks like a crash in wx. Are you using Wardevil's packages for wxWidgets or FC5 distro packages?
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: segfault with 21 June CVS
« Reply #3 on: June 28, 2006, 12:52:15 AM »

I am using the FC5:

Code: [Select]
]$ rpm -qa | grep wx
wxGTK-2.6.3-2.6.3.2.1.fc5
wxGTK-gl-2.6.3-2.6.3.2.1.fc5
wxGTK-devel-2.6.3-2.6.3.2.1.fc5
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
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: segfault with 21 June CVS
« Reply #5 on: June 29, 2006, 12:56:56 AM »

OK, I have now installed wardevil's RPMs. Thanks for pointing them out; I wasn't aware of them. We'll see how this goes....
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: segfault with 21 June CVS
« Reply #6 on: June 29, 2006, 12:25:23 PM »

Hi again phoenix,

Alas, this combination only ran for less than an hour last night before crashing. :( This isn't the complete backtrace and may be of limited use, but here is what I have:

Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.1.3 using wxGTK2 v2.6.3 (Unicoded)
Running on:

[2] CamuleApp::OnFatalException() in :0
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.6.so.0[0x3d2dd2]
[4] ?? in [0xb6e420]
[5] ?? in /usr/lib/libwx_gtk2u_core-2.6.so.0 [0x81c8ce]
[6] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0x424fb3e]
[7] ?? in /usr/lib/libglib-2.0.so.0 [0x562fc2d]
[8] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x560715d]
[9] ?? in /usr/lib/libglib-2.0.so.0 [0x560a3ef]
[10] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x560a799]
[11] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x4685634]
[12] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0x81aded]
[13] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0x899232]
[14] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0x899373]
[15] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.6.so.0[0x37b0be]
[16] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.6.so.0[0x37b19d]
[17] main in :0
[18] __libc_start_main in /lib/libc.so.6[0x126724]
[19] __gxx_personality_v0 in :0

It looks like another wx* problem, no?

At this point, what do you recommend I do? I can try running amule with gdb again to get full backtraces, but I will have to recompile as my current build doesn't run with wardevil's wx packages (library mismatch error).
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: segfault with 21 June CVS
« Reply #7 on: June 30, 2006, 05:39:09 AM »

Hum, no, this one does not have the necessary info to conclude anything. You can try gdb. But do recompile wx AND aMule with debug info. Maybe you can try to find out why wardevil's packages do not work. They are supposed to work.
Logged