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: amuled crashes after a few minutes  (Read 16416 times)

Lenni

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 44
amuled crashes after a few minutes
« on: February 14, 2005, 08:27:02 PM »

Hi!
I'm currently using CVS from today (20050214) wich has crashed several times after a very short time. I was using 20050210 before wich ran stable.

bt-output:
Code: [Select]
#0  0x4042eac1 in kill () from /lib/libc.so.6
#1  0x400249ed in pthread_kill () from /lib/libpthread.so.0
#2  0x40024d0b in raise () from /lib/libpthread.so.0
#3  0x4042e6fa in raise () from /lib/libc.so.6
#4  0x40430127 in abort () from /lib/libc.so.6
#5  0x4016216e in wxFatalSignalHandler () from /usr/lib/libwx_base-2.5.so.3
#6  0x40027c45 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
#7  
#8  0x401b609a in GSocket::Select () from /usr/lib/libwx_base_net-2.5.so.3
#9  0x401b0f9e in wxSocketBase::_Wait () from /usr/lib/libwx_base_net-2.5.so.3
#10 0x401b1124 in wxSocketBase::WaitForLost ()
   from /usr/lib/libwx_base_net-2.5.so.3
#11 0x080f1e02 in CServerSocketHandler::Entry (this=0x84ddb00)
    at ServerSocket.cpp:156
#12 0x40158adf in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.5.so.3
#13 0x4015899c in wxPthreadStart () from /usr/lib/libwx_base-2.5.so.3
#14 0x40021ca3 in pthread_detach () from /lib/libpthread.so.0
#15 0x404e6c97 in clone () from /lib/libc.so.6
bt full-output:
Code: [Select]
#0  0x4042eac1 in kill () from /lib/libc.so.6
No symbol table info available.
#1  0x400249ed in pthread_kill () from /lib/libpthread.so.0
No symbol table info available.
#2  0x40024d0b in raise () from /lib/libpthread.so.0
No symbol table info available.
#3  0x4042e6fa in raise () from /lib/libc.so.6
No symbol table info available.
#4  0x40430127 in abort () from /lib/libc.so.6
No symbol table info available.
#5  0x4016216e in wxFatalSignalHandler () from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#6  0x40027c45 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
No symbol table info available.
#7  
No symbol table info available.
#8  0x401b609a in GSocket::Select () from /usr/lib/libwx_base_net-2.5.so.3
No symbol table info available.
#9  0x401b0f9e in wxSocketBase::_Wait () from /usr/lib/libwx_base_net-2.5.so.3
No symbol table info available.
#10 0x401b1124 in wxSocketBase::WaitForLost ()
   from /usr/lib/libwx_base_net-2.5.so.3
No symbol table info available.
#11 0x080f1e02 in CServerSocketHandler::Entry (this=0x84ddb00)
    at ServerSocket.cpp:156
No locals.
#12 0x40158adf in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#13 0x4015899c in wxPthreadStart () from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#14 0x40021ca3 in pthread_detach () from /lib/libpthread.so.0
No symbol table info available.
#15 0x404e6c97 in clone () from /lib/libc.so.6
No symbol table info available.
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: amuled crashes after a few minutes
« Reply #1 on: February 15, 2005, 05:21:15 AM »

lfroen, please take a look at this. This is the second user reporting this issue:
http://www.amule.org/amule/thread.php?sid=&postid=26918#post26918
Logged

lfroen

  • Guest
Re: amuled crashes after a few minutes
« Reply #2 on: February 15, 2005, 10:09:36 AM »

Quote
#8  0x401b609a in GSocket::Select () from /usr/lib/libwx_base_net-2.5.so.3

Too many opened sockets. We should fix it in preferences, so amuled will always have no more then 1000 opened connections
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuled crashes after a few minutes
« Reply #3 on: February 15, 2005, 02:31:41 PM »

CVS 20050215 morning
I think I have the same issue. But it seems to have nothing to do with more than 1000 connections at once because I always have a limit of 800. Maybe it has something to do with new opened connection at once or udp.
Maybe with wxWidgets 2.5.3 because it is hard masked for amd64 in Gentoo portage. I can't compile it with unicode but it seems to work without it.

Code: [Select]
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `amuled'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libwx_base-2.5.so.3...done.
Loaded symbols for /usr/lib/libwx_base-2.5.so.3
Reading symbols from /usr/lib/libwx_base_net-2.5.so.3...done.
Loaded symbols for /usr/lib/libwx_base_net-2.5.so.3
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libcurl.so.3...done.
Loaded symbols for /usr/lib/libcurl.so.3
Reading symbols from /usr/lib/libidn.so.11...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /usr/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6...
done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/gconv/ISO8859-15.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-15.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
#0  0x0000002a96770c49 in raise () from /lib/libc.so.6
(gdb)
(gdb) bt
#0  0x0000002a96770c49 in raise () from /lib/libc.so.6
#1  0x0000002a9677214e in abort () from /lib/libc.so.6
#2  0x0000002a95837bc1 in wxFatalSignalHandler ()
   from /usr/lib/libwx_base-2.5.so.3
#3  
#4  0x0000002a9678531c in vfprintf () from /lib/libc.so.6
#5  0x0000002a967a3ce4 in vsnprintf () from /lib/libc.so.6
#6  0x0000002a9580faae in wxString::PrintfV(char const*, __va_list_tag*) ()
   from /usr/lib/libwx_base-2.5.so.3
#7  0x0000002a9580fc89 in wxString::Format(char const*, ...) ()
   from /usr/lib/libwx_base-2.5.so.3
#8  0x00000000004168be in wxEvent::~wxEvent() ()
#9  0x000000000046353a in wxSocketClient::GetClassInfo() const ()
#10 0x0000000000463961 in wxSocketClient::GetClassInfo() const ()
#11 0x000000000046aded in wxSocketClient::GetClassInfo() const ()
#12 0x0000002a95832001 in wxThreadInternal::PthreadStart(wxThread*) ()
   from /usr/lib/libwx_base-2.5.so.3
#13 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
#14 0x0000002a967f8263 in clone () from /lib/libc.so.6
(gdb) bt full
#0  0x0000002a96770c49 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x0000002a9677214e in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x0000002a95837bc1 in wxFatalSignalHandler ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#3  
No symbol table info available.
#4  0x0000002a9678531c in vfprintf () from /lib/libc.so.6
No symbol table info available.
#5  0x0000002a967a3ce4 in vsnprintf () from /lib/libc.so.6
No symbol table info available.
#6  0x0000002a9580faae in wxString::PrintfV(char const*, __va_list_tag*) ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#7  0x0000002a9580fc89 in wxString::Format(char const*, ...) ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#8  0x00000000004168be in wxEvent::~wxEvent() ()
No symbol table info available.
#9  0x000000000046353a in wxSocketClient::GetClassInfo() const ()
No symbol table info available.
#10 0x0000000000463961 in wxSocketClient::GetClassInfo() const ()
No symbol table info available.
#11 0x000000000046aded in wxSocketClient::GetClassInfo() const ()
No symbol table info available.
#12 0x0000002a95832001 in wxThreadInternal::PthreadStart(wxThread*) ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#13 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#14 0x0000002a967f8263 in clone () from /lib/libc.so.6
No symbol table info available.
« Last Edit: February 15, 2005, 02:40:55 PM by Mr Faber »
Logged

lfroen

  • Guest
Re: amuled crashes after a few minutes
« Reply #4 on: February 15, 2005, 03:00:33 PM »

No, this one is quite different. As a matter of fact, I don't see why it fails - no frame in amuled code. Can you tell how match time (if at all) does it run before crash ?
Logged

Lenni

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 44
Re: amuled crashes after a few minutes
« Reply #5 on: February 15, 2005, 03:24:29 PM »

Is there anything I can do? I'm usually not updating the config-file. What will I have to change?
Lenni
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: amuled crashes after a few minutes
« Reply #6 on: February 15, 2005, 04:43:30 PM »

Lenni,

The ball is in our field ;) we must fix it. Lfroen, can you do it or do you want someone else to do it?

Mr Faber, you probably did not compile amuled with debug information, can you check that? Also, this seems to be a different issue.

Cheers!
Logged

Lenni

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 44
Re: amuled crashes after a few minutes
« Reply #7 on: February 15, 2005, 05:48:58 PM »

Thanks, I'll try a new CVS in a few days.
Lenni
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuled crashes after a few minutes
« Reply #8 on: February 15, 2005, 06:19:49 PM »

Thanks for your reply.
I have downloaded and compiled the version in the morning. This was the first version since three or four days which runs longer than some minutes.
After first start it runs ~ 5 hours. After restart it only runs 10 or 20 minutes maximum.
I use core files and compile it with --enable-debug. If I compile wxWidgets with --enable-debug amuled directly crashes so I disabled it.
You can see my configuration in this thread.
I redownloaded and recompiled aMule and got the same error after two minutes. Is there any documentation how to compile wxWidgets 2.5.3 on amd64?
The problem is that aMule runs in most cases fine.

cu
Mr Faber
« Last Edit: February 15, 2005, 06:43:43 PM by Mr Faber »
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: amuled crashes after a few minutes
« Reply #9 on: February 15, 2005, 07:35:28 PM »

Mr Faber,

amuled is relatively new code and is under heavy development. In fact, it needs a lot of testing and your feedback is fundamental to improove it.

If you must run the webserver, but can afford an X interface, amule can also handle this job. But of course, we wan't the daemon to become stable, so we need testing.

If you can keep providing us backtraces of the crashes, we can certainly make it better.

As for building wxGTK, I use to build my own, I don't use rpm nor emerge. Unpack it in a directory in your home and go to the root of the tar and do:
(for non-unicode debug build)
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --disable-unicode --prefix=~/usr/wxWidgets-cvs

(for unicode debug build)
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=~/usr/wxWidgets-cvsu

configure aMule like this:
(for non-unicode debug build)
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-webservergui --enable-amulecmd --enable-amulecmdgui --enable-amule-daemon --enable-ccache --with-wx-config=~/usr/wxWidgets-cvs/bin/wx-config

(for unicode debug build)
$ ./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-webservergui --enable-amulecmd --enable-amulecmdgui --enable-amule-daemon --enable-ccache --with-wx-config=~/usr/wxWidgets-cvsu/bin/wx-config

And run it like this:
(for non-unicode debug build)
LD_LIBRARY_PATH=~/usr/wxWidgets-cvs/lib/ /path/to/non-unicoded/amule&

(for unicode debug build)
LD_LIBRARY_PATH=~/usr/wxWidgets-cvsu/lib/ /path/to/unicoded/amule&

The advantage is that you can have many different wxGTK versions installed with different options, with many different aMule versions and options, and you don't have to do make install, so there is no need to be superuser.

Cheers!
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuled crashes after a few minutes
« Reply #10 on: February 15, 2005, 10:07:54 PM »

Many thanks for your help. It seems to work with unicode :) (compiling of wxWidgets 2.5.3 works). I don't know what the gentoo-devs make different.
Amuled crashes directly after intialising and showing userhas :( but with a better debug message I think.
I compiled it with unicode (isn't it necessary since eMule only searches with unicode strings?) so this can be the problem. By the way I compiled amuled unicode with your options and with --disable-monolithic.
Later I will test it without unicode too but first the debug message:
Code: [Select]
(gdb) bt
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
#1  0x0000002a957c8ba9 in DoShowAssertDialog (msg=@0x559f)
    at src/common/appbase.cpp:672
#2  0x0000002a957c8bbc in wxAppTraitsBase::ShowAssertDialog(wxString const&) (
    this=0x559f, msg=@0x559f) at src/common/appbase.cpp:518
#3  0x0000002a957c8bd9 in wxConsoleAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x559f, msg=@0x559f) at src/common/appbase.cpp:483
#4  0x0000002a957c8daf in ShowAssertDialog (szFile=0x2a95878aa0, nLine=1060,
    szCond=0x2a95879848, szMsg=0x0, traits=0x8b9680)
    at src/common/appbase.cpp:735
#5  0x0000002a957c8e1a in wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (szFile=0x2a95878aa0, nLine=21919, szCond=0x5,
    szMsg=0xffffffffffffffff) at app.h:300
#6  0x0000002a9581e81d in wxString (this=0x7fbfffe770,
    psz=0xa80b10 "24.162.1.78     - 24.162.1.78     , 0 , P(07/01/04)Ip espía de la RIAA", conv=@0x2a959c8b28, nLength=11012951) at src/common/string.cpp:1060
#7  0x0000002a95822936 in wxTextFile::OnRead(wxMBConv&) (this=0x7fbfffec10,
    conv=@0x2a959c8b28) at textbuf.h:142
#8  0x0000002a958221b3 in wxTextBuffer::Open(wxMBConv&) (this=0x7fbfffec10,
    conv=@0x2a959c8b28) at src/common/textbuf.cpp:201
#9  0x000000000045c5e3 in CIPFilter::LoadFromDatFile(wxString const&) (
    this=0xa6fff0, file=@0x559f) at IPFilter.cpp:401
#10 0x000000000045cb64 in CIPFilter::LoadFromFile(wxString const&, bool) (
    this=0xa6fff0, file=@0x7fbfffed80, merge=false) at IPFilter.cpp:317
#11 0x000000000045cea7 in CIPFilter (this=0xa6fff0) at IPFilter.cpp:47
#12 0x00000000004bd14c in CamuleApp::OnInit() (this=0x8b7490) at amule.cpp:655
#13 0x00000000004c179d in wxAppConsole::CallOnInit() (this=0x559f) at app.h:87
#14 0x0000002a95801967 in wxEntry(int&, wchar_t**) (argc=@0x559f, argv=0x559f)
    at app.h:300
#15 0x00000000004c2c92 in main (argc=1, argv=0x559f) at amuled.cpp:129
(gdb) bt full
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0000002a957c8ba9 in DoShowAssertDialog (msg=@0x559f)
    at src/common/appbase.cpp:672
No locals.
#2  0x0000002a957c8bbc in wxAppTraitsBase::ShowAssertDialog(wxString const&) (
    this=0x559f, msg=@0x559f) at src/common/appbase.cpp:518
No locals.
#3  0x0000002a957c8bd9 in wxConsoleAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x559f, msg=@0x559f) at src/common/appbase.cpp:483
No locals.
#4  0x0000002a957c8daf in ShowAssertDialog (szFile=0x2a95878aa0, nLine=1060,
    szCond=0x2a95879848, szMsg=0x0, traits=0x8b9680)
    at src/common/appbase.cpp:735
s_bNoAsserts = false
msg = { = {static npos = 4294967195,
    m_pchData = 0xad1f78}, }
#5  0x0000002a957c8e1a in wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (szFile=0x2a95878aa0, nLine=21919, szCond=0x5,
    szMsg=0xffffffffffffffff) at app.h:300
s_bInAssert = true
#6  0x0000002a9581e81d in wxString (this=0x7fbfffe770,
    psz=0xa80b10 "24.162.1.78     - 24.162.1.78     , 0 , P(07/01/04)Ip espía de la RIAA", conv=@0x2a959c8b28, nLength=11012951) at src/common/string.cpp:1060
nLen = 18446744073709551615
buffer = {m_str = 0xacfdc0}
#7  0x0000002a95822936 in wxTextFile::OnRead(wxMBConv&) (this=0x7fbfffec10,
    conv=@0x2a959c8b28) at textbuf.h:142
strBuf = 0xa80b10 "24.162.1.78     - 24.162.1.78     , 0 , P(07/01/04)Ip espía de la RIAA"
strEnd = 0xa80f10 ""
buf = ", 0 , nvalid\n24.145.0.0      - 24.145.127.255  , 0 , nvalid\n24.146.32.0     - 24.146.255.255  , 0 , nvalid\n24.148.112.0    - 24.148.127.255  , 0 , nvalid\n24.149.64.0     - 24.149.127.255  , 0 , nvalid"...
strPtr = 0xa80b56 ""
ch = 0 '\0'
chLast = 10 '\n'
n = 630
nRead = 1024
#8  0x0000002a958221b3 in wxTextBuffer::Open(wxMBConv&) (this=0x7fbfffec10,
    conv=@0x2a959c8b28) at src/common/textbuf.cpp:201
No locals.
#9  0x000000000045c5e3 in CIPFilter::LoadFromDatFile(wxString const&) (
    this=0xa6fff0, file=@0x559f) at IPFilter.cpp:401
filtercounter = 0
readFile = { = {_vptr.wxTextBuffer = 0x6b3870,
    static typeDefault = wxTextFileType_Unix,
    m_strBufferName = { = {static npos = 4294967195,
        m_pchData = 0x965b28}, },
    m_aTypes = { = {m_nSize = 913, m_nCount = 873,
        m_pItems = 0xaa70e0}, }, m_aLines = {m_nSize = 913,
      m_nCount = 873, m_pItems = 0xab95b0, m_autoSort = false},
    m_nCurLine = 0, m_isOpened = false}, m_file = {m_fd = 4, m_error = false}}
#10 0x000000000045cb64 in CIPFilter::LoadFromFile(wxString const&, bool) (
    this=0xa6fff0, file=@0x7fbfffed80, merge=false) at IPFilter.cpp:317
filtercounter = 0
#11 0x000000000045cea7 in CIPFilter (this=0xa6fff0) at IPFilter.cpp:47
No locals.
#12 0x00000000004bd14c in CamuleApp::OnInit() (this=0x8b7490) at amule.cpp:655
incomingdir = { = {static npos = 4294967195,
    m_pchData = 0x8c95a8}, }
tempdir = { = {static npos = 4294967195,
    m_pchData = 0x8c94f8}, }
entries = (mntent *) 0xa6fff0
#13 0x00000000004c179d in wxAppConsole::CallOnInit() (this=0x559f) at app.h:87
No locals.
#14 0x0000002a95801967 in wxEntry(int&, wchar_t**) (argc=@0x559f, argv=0x559f)
    at app.h:300
callOnExit = {}
cleanupOnExit = {}
#15 0x00000000004c2c92 in main (argc=1, argv=0x559f) at amuled.cpp:129
No locals.

I think that your help should be released in aMule wiki? If amuled crashes with your configuration and I run gdb on the core file isn't it important to use the librarypath too?

cu
Mr Faber
« Last Edit: February 15, 2005, 11:12:01 PM by Mr Faber »
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuled crashes after a few minutes
« Reply #11 on: February 15, 2005, 10:47:16 PM »

Same configuration but without unicode. aMuled crashes after initalizing and loading shared files:
Code: [Select]
(gdb) bt
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
#1  0x0000002a957c6a89 in DoShowAssertDialog (msg=@0x6483)
    at src/common/appbase.cpp:672
#2  0x0000002a957c6a9c in wxAppTraitsBase::ShowAssertDialog(wxString const&) (
    this=0x6483, msg=@0x6483) at src/common/appbase.cpp:518
#3  0x0000002a957c6ab9 in wxConsoleAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x6483, msg=@0x6483) at src/common/appbase.cpp:483
#4  0x0000002a957c6c8f in ShowAssertDialog (
    szFile=0x2a958517e9 "src/common/string.cpp", nLine=1014,
    szCond=0x2a958518b7 "nLen != (size_t)-1", szMsg=0x0, traits=0x890a60)
    at src/common/appbase.cpp:735
#5  0x0000002a957c6cfa in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x2e64656c69616620
,
    nLine=25731, szCond=0x5
,
    szMsg=0xffffffffffffffff
)
    at app.h:300
#6  0x0000002a9581b59f in wxString (this=0x7fbfffe9f0, pwz=0xada800,
    conv=@0x2a9597f640, nLength=18446744073709551615)
    at src/common/string.cpp:1014
#7  0x0000000000420d01 in UTF82unicode(char const*) (
    x=0x6483
) at StringFunctions.h:71
#8  0x0000000000420813 in CDirIterator::FindNextFile() (this=0x7fbfffebf0)
    at CFile.cpp:698
#9  0x00000000004a62c2 in CSharedFileList::AddFilesFromDirectory(wxString) (
    this=0x918710, directory=
        { = {static npos = 4294967195, m_pchData = 0xa22e68 "/home/user/.aMule/Incoming/"}, }) at SharedFileList.cpp:229
#10 0x00000000004a64a6 in CSharedFileList::FindSharedFiles() (this=0x918710)
    at SharedFileList.cpp:91
#11 0x00000000004a68d8 in CSharedFileList::Reload(bool, bool) (this=0x918710,
    sendtoserver=true, firstload=true) at SharedFileList.cpp:290
#12 0x00000000004bc7e5 in CamuleApp::OnInit() (this=0x88eaf0) at amule.cpp:668
#13 0x00000000004c0d7d in wxAppConsole::CallOnInit() (this=0x6483) at app.h:87
#14 0x0000002a957ff0a7 in wxEntry(int&, char**) (argc=@0x6483, argv=0x6483)
    at app.h:300
#15 0x00000000004c2262 in main (argc=1, argv=0x6483) at amuled.cpp:129
(gdb) bt full
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0000002a957c6a89 in DoShowAssertDialog (msg=@0x6483)
    at src/common/appbase.cpp:672
No locals.
#2  0x0000002a957c6a9c in wxAppTraitsBase::ShowAssertDialog(wxString const&) (
    this=0x6483, msg=@0x6483) at src/common/appbase.cpp:518
No locals.
#3  0x0000002a957c6ab9 in wxConsoleAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x6483, msg=@0x6483) at src/common/appbase.cpp:483
No locals.
#4  0x0000002a957c6c8f in ShowAssertDialog (
    szFile=0x2a958517e9 "src/common/string.cpp", nLine=1014,
    szCond=0x2a958518b7 "nLen != (size_t)-1", szMsg=0x0, traits=0x890a60)
    at src/common/appbase.cpp:735
s_bNoAsserts = false
msg = { = {static npos = 4294967195,
    m_pchData = 0xadb1d8 "src/common/string.cpp(1014): assert \"nLen != (size_t)-1\" failed."}, }
#5  0x0000002a957c6cfa in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x2e64656c69616620
,
    nLine=25731, szCond=0x5
,
    szMsg=0xffffffffffffffff
)
    at app.h:300
s_bInAssert = true
#6  0x0000002a9581b59f in wxString (this=0x7fbfffe9f0, pwz=0xada800,
    conv=@0x2a9597f640, nLength=18446744073709551615)
    at src/common/string.cpp:1014
nLen = 18446744073709551615
buffer = {m_str = 0xada900 "8×\227\226*"}
#7  0x0000000000420d01 in UTF82unicode(char const*) (
    x=0x6483
) at StringFunctions.h:71
No locals.
#8  0x0000000000420813 in CDirIterator::FindNextFile() (this=0x7fbfffebf0)
    at CFile.cpp:698
FullName = { = {static npos = 4294967195,
    m_pchData = 0x0}, }
#9  0x00000000004a62c2 in CSharedFileList::AddFilesFromDirectory(wxString) (
    this=0x918710, directory=
        { = {static npos = 4294967195, m_pchData = 0xa22e68 "/home/user/.aMule/Incoming/"}, }) at SharedFileList.cpp:229
e = { = { = {_vptr.wxObject = 0x69d890,
      static ms_classInfo = {m_className = 0x0, m_objectSize = 0,
        m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
        static sm_first = 0x0, m_next = 0x0, static sm_classTable = 0x888010},
      m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 10004,
    m_timeStamp = 0, m_id = -1, m_callbackUserData = 0x0,
    m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false,
    static ms_classInfo = {m_className = 0x0, m_objectSize = 0,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0x0, m_next = 0x0, static sm_classTable = 0x888010}},
  ID = SHAREDFILES_SHOW_ITEM, byte_value = 0 '\0', short_value = 0,
  long_value = 0, longlong_value = 0, string_value = { = {
      static npos = 4294967195,
      m_pchData = 0x2a95851218 ""}, }, ptr_value = 0x90a060,
  ptr_aux_value = 0x0}
#10 0x00000000004a64a6 in CSharedFileList::FindSharedFiles() (this=0x918710)
    at SharedFileList.cpp:91
newFiles = 62
#11 0x00000000004a68d8 in CSharedFileList::Reload(bool, bool) (this=0x918710,
    sendtoserver=true, firstload=true) at SharedFileList.cpp:290
e = { = { = {_vptr.wxObject = 0x69d890,
      static ms_classInfo = {m_className = 0x0, m_objectSize = 0,
        m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
        static sm_first = 0x0, m_next = 0x0, static sm_classTable = 0x888010},
      m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 10004,
    m_timeStamp = 0, m_id = -1, m_callbackUserData = 0x0,
    m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false,
    static ms_classInfo = {m_className = 0x0, m_objectSize = 0,
      m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
      static sm_first = 0x0, m_next = 0x0, static sm_classTable = 0x888010}},
  ID = SHAREDFILES_REMOVE_ALL_ITEMS, byte_value = 0 '\0', short_value = 0,
  long_value = 0, longlong_value = 0, string_value = { = {
      static npos = 4294967195,
      m_pchData = 0x2a95851218 ""}, }, ptr_value = 0x0,
  ptr_aux_value = 0x0}
#12 0x00000000004bc7e5 in CamuleApp::OnInit() (this=0x88eaf0) at amule.cpp:668
incomingdir = { = {static npos = 4294967195,
    m_pchData = 0x89a7e8 "/home/user/.aMule/Incoming"}, }
tempdir = { = {static npos = 4294967195,
    m_pchData = 0x89a6d8 "/home/user/.aMule/Temp"}, }
entries = (mntent *) 0xa264d0
#13 0x00000000004c0d7d in wxAppConsole::CallOnInit() (this=0x6483) at app.h:87
No locals.
#14 0x0000002a957ff0a7 in wxEntry(int&, char**) (argc=@0x6483, argv=0x6483)
    at app.h:300
callOnExit = {}
cleanupOnExit = {}
#15 0x00000000004c2262 in main (argc=1, argv=0x6483) at amuled.cpp:129
No locals.
« Last Edit: February 15, 2005, 11:17:19 PM by Mr Faber »
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: amuled crashes after a few minutes
« Reply #12 on: February 16, 2005, 02:22:14 AM »

Mr Faber,

Thank you very much for this backtrace, we have a lot to do now. When it's presumed fixed we will warn so you can try it again.

Well, if you want to try something, change StringFunctions.h:71 from

Code: [Select]
inline const wxCharBuffer UTF82unicode (const char* x) { return wxString(wxConvUTF8.cMB2WC(x)).c_str(); };
to

Code: [Select]
inline const wxCharBuffer UTF82unicode (const char* x) { return wxString(wxConvUTF8.cMB2WX(x)).c_str(); };
Recompile and re-run the non-unicode case (the last one) to see if you still got a crash. On the unicode case, please rename ipfilter.dat and run it without this file. Check to see if it is a valid UTF-8 file or if there are invalid UTF-8 chars in there. Really, thank you for the help.

Cheers!
Logged

lfroen

  • Guest
Re: amuled crashes after a few minutes
« Reply #13 on: February 16, 2005, 06:47:00 AM »

Quote
#8  0x00000000004168be in wxEvent::~wxEvent() ()
No symbol table info available.
#9  0x000000000046353a in wxSocketClient::GetClassInfo() const ()
No symbol table info available.
#10 0x0000000000463961 in wxSocketClient::GetClassInfo() const ()
No symbol table info available.
#11 0x000000000046aded in wxSocketClient::GetClassInfo() const ()
No symbol table info available.

This means that one of two happen:
1. your wx version is fucked up
2. memory overrun and/or corruption in amuled

If you have this after few minutes of run, I vote for (1)

Sometimes, however, broken config/partfile file can cause trouble.

I can not tell what's wrong in daemon, cause I don't see any line in backtrace points to amule code.
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuled crashes after a few minutes
« Reply #14 on: February 16, 2005, 02:23:44 PM »

Thanks for your reply.
CVS 20050215/16
If I remove the ipfilter.dat amuled seems to start fine. What can I do to convert the file to utf8?
The non unicode version doesn't work. Maybe the unicode version converted some files?!
The only problem I realized after a short period is that amulweb isn't started. Instead of this there is a second amuled task which is defunct and I can't use my ipfilterlist anymore.
If I start amuleweb manual it uses the standard port instead of this one in file .eMule.
If I use unicode I have to reset my password but that was described in wiki.

cu
Mr Faber
« Last Edit: February 16, 2005, 02:52:59 PM by Mr Faber »
Logged
Pages: [1] 2 3