aMule Forum

English => Backtraces => Topic started by: Lenni on February 14, 2005, 08:27:02 PM

Title: amuled crashes after a few minutes
Post by: Lenni 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.
Title: Re: amuled crashes after a few minutes
Post by: phoenix 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
Title: Re: amuled crashes after a few minutes
Post by: lfroen 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
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber 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.
Title: Re: amuled crashes after a few minutes
Post by: lfroen 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 ?
Title: Re: amuled crashes after a few minutes
Post by: Lenni 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
Title: Re: amuled crashes after a few minutes
Post by: phoenix 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!
Title: Re: amuled crashes after a few minutes
Post by: Lenni on February 15, 2005, 05:48:58 PM
Thanks, I'll try a new CVS in a few days.
Lenni
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber 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 (http://forum.amule.org/thread.php?threadid=5047&sid=).
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
Title: Re: amuled crashes after a few minutes
Post by: phoenix 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!
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber 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
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber 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.
Title: Re: amuled crashes after a few minutes
Post by: phoenix 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!
Title: Re: amuled crashes after a few minutes
Post by: lfroen 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.
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber 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
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 16, 2005, 08:00:02 PM
amuled with unicode crashes after 10 minutes :( . It seems to have something to do with wxWidgets.
I have downloaded wxGTK 2.5.3 from the wxWidgets homepage andI uses the description of phoenix to compile it. I only added CHOST="x86_64-pc-linux-gnu" because I have a full 64 bit system. Maybe the new wxWidgets can't handle 64 bit but this would make no sense. Is there anyone who uses AMD64 with full 64 Bit too?

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: Kry on February 16, 2005, 08:31:57 PM
me. I use amule and amuled with wxGTK2 and unicode enabled. No crash in weeks. amd64, pure64 debian distro.
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 16, 2005, 08:51:39 PM
Quote
Originally posted by Kry
me. I use amule and amuled with wxGTK2 and unicode enabled. No crash in weeks. amd64, pure64 debian distro.
Cool, how do you compile wxGTK? Have you IA32-support or multilib activated?

@phoenix
Can you please activate webserver support in .eMule and use amuled unicode with your method (home directory install).
On my pc the webserver isn't started automatically anymore but an second amuled which gets defunct. Does it only happen on my pc?
The first amuled unicode runs fine without my ipfilterlist until now.

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 17, 2005, 05:12:28 PM
CVS 20050217:

Amuled unicode crashes after one hour and thirty minutes. The Backtrace is:
Code: [Select]
(gdb) bt
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
#1  0x0000002a957e287e in wxTrap() () at src/common/appbase.cpp:569
#2  0x0000002a957e2bb5 in ShowAssertDialog (szFile=0x2a958a8078, nLine=251,
    szCond=0x2a958a81a0, szMsg=0x2a958a80d0, traits=0x9296c0)
    at src/common/appbase.cpp:723
#3  0x0000002a957e2681 in wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (this=0x927490, file=0x2a958a8078, line=251,
    cond=0x2a958a81a0, msg=0x2a958a80d0) at src/common/appbase.cpp:438
#4  0x0000002a957e2941 in wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (szFile=0x2a958a8078, nLine=251, szCond=0x2a958a81a0,
    szMsg=0x2a958a80d0) at src/common/appbase.cpp:615
#5  0x0000002a957e28b4 in wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*) (cond=0, szFile=0x2a958a8078, nLine=251, szCond=0x2a958a81a0,
    szMsg=0x2a958a80d0) at src/common/appbase.cpp:582
#6  0x0000002a95865c62 in wxExecute(wxString const&, int, wxProcess*) (
    command=@0x41ffd870, flags=1, process=0x2a992009b0)
    at src/unix/utilsunx.cpp:250
#7  0x0000002a95865913 in wxDoExecuteWithCapture (command=@0x41ffd870,
    output=@0x41ffd810, error=0x0) at src/common/utilscmn.cpp:493
#8  0x0000002a958659b0 in wxExecute(wxString const&, wxArrayString&) (
    command=@0x41ffd870, output=@0x41ffd810) at src/common/utilscmn.cpp:520
#9  0x00000000005062c8 in CamuleApp::OnFatalException() (this=0x927490)
    at amule.cpp:1180
#10 0x0000002a958677bd in wxFatalSignalHandler () at src/unix/utilsunx.cpp:976
#11
#12 0x0000002a957f62b5 in wxCharBuffer (this=0x41ffe0d0, len=181850352077)
    at buffer.h:96
#13 0x0000002a9582fd2a in wxMBConv::cWC2MB(wchar_t const*) const (
    this=0x724280, pwz=0x1a753d8) at src/common/strconv.cpp:204
#14 0x00000000004127e4 in wxMBConv::cWX2MB(wchar_t const*) const (
    this=0x724280, psz=0x1a753d8) at strconv.h:56
#15 0x0000000000420e00 in StringIPtoUint32(wxString const&) (str_ip=@0xcf03d8)
    at NetworkFunctions.h:62
#16 0x0000000000418b76 in CUpDownClient::ProcessHelloTypePacket(CSafeMemFile const&) (this=0xcf0360, data=@0x41ffe450) at BaseClient.cpp:486
#17 0x0000000000417fcd in CUpDownClient::ProcessHelloPacket(char const*, unsigned) (this=0xcf0360,
    pachPacket=0x29d46e0 "\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005", nSize=85) at BaseClient.cpp:293
#18 0x000000000048763c in CClientReqSocket::ProcessPacket(char const*, unsigned, unsigned char) (this=0x2493c20,
    packet=0x29d46e0 "\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005",
    size=85, opcode=1 '\001') at ListenSocket.cpp:401
#19 0x0000000000491548 in CClientReqSocket::PacketReceived(CPacket*) (
    this=0x2493c20, packet=0x2211df0) at ListenSocket.cpp:2253
#20 0x000000000046743b in CEMSocket::OnReceive(int) (this=0x2493c20,
    nErrorCode=0) at EMSocket.cpp:265
#21 0x0000000000490c3c in CClientReqSocket::OnReceive(int) (this=0x2493c20,
    nErrorCode=0) at ListenSocket.cpp:2143
#22 0x0000000000493744 in CSocketGlobalThread::Entry() (this=0xbda088)
    at ListenSocket.cpp:2674
#23 0x0000002a9585ea57 in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0xbda088) at src/unix/threadpsx.cpp:762
#24 0x0000002a9585e93d in wxPthreadStart (ptr=0xbda088)
    at src/unix/threadpsx.cpp:714
#25 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
#26 0x0000002a96895263 in clone () from /lib/libc.so.6
(gdb) bt full
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0000002a957e287e in wxTrap() () at src/common/appbase.cpp:569
No locals.
#2  0x0000002a957e2bb5 in ShowAssertDialog (szFile=0x2a958a8078, nLine=251,
    szCond=0x2a958a81a0, szMsg=0x2a958a80d0, traits=0x9296c0)
    at src/common/appbase.cpp:723
s_bNoAsserts = false
msg = { = {static npos = 4294967195,
    m_pchData = 0x2a992054f8}, }
#3  0x0000002a957e2681 in wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (this=0x927490, file=0x2a958a8078, line=251,
    cond=0x2a958a81a0, msg=0x2a958a80d0) at src/common/appbase.cpp:438
No locals.
#4  0x0000002a957e2941 in wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) (szFile=0x2a958a8078, nLine=251, szCond=0x2a958a81a0,
    szMsg=0x2a958a80d0) at src/common/appbase.cpp:615
s_bInAssert = true
#5  0x0000002a957e28b4 in wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*) (cond=0, szFile=0x2a958a8078, nLine=251, szCond=0x2a958a81a0,
    szMsg=0x2a958a80d0) at src/common/appbase.cpp:582
No locals.
#6  0x0000002a95865c62 in wxExecute(wxString const&, int, wxProcess*) (
    command=@0x41ffd870, flags=1, process=0x2a992009b0)
    at src/unix/utilsunx.cpp:250
argv = {0x1, 0x41ffd1f8, 0x0, 0x0, 0x1, 0x2a969fedc0, 0x0, 0x0, 0x1,
  0x1, 0x41ffd1f8, 0x0, 0x2a969fe680, 0x2a968274f8, 0x2a969fd140, 0x41ffd3d0,
  0xfbad8001, 0x0 , 0x5e5, 0x0, 0x9d0000, 0x0,
  0xffffffffffffffff, 0x41ffd208, 0x41ffd1a0, 0x1, 0x2a99202f1c, 0x0,
  0x9d0510, 0x9d0490, 0x2a99200e8e, 0x110, 0xf5, 0x2a98fcdbe1, 0x0, 0x0,
  0xbe4438, 0x1090, 0xf1, 0x2a9555d1b2, 0xe8, 0xd9a22d595672020, 0x7fbfff0002,
  0x1000, 0x0, 0x96849192, 0x2a957be0b2, 0x2a9555d1b2, 0x2a957870f8,
  0xd9a22d50000000f, 0x2a966d0002, 0x2a96a05168, 0x0, 0x9579ccc8,
  0x2a957be0b2, 0x2a9579eca8, 0x2a957870f8, 0xf, 0x2a966d3d60, 0x2a96a05168,
  0x41ffd5e0, 0x2a9578bc10, 0x1d0a9f3, 0x2a957b2869, 0x2a96a05168,
  0x2a9556bd90, 0x41ffd620, 0x0, 0x41ffd5e0, 0x1d0a9f3, 0x2a96a05168,
  0x2a9555d3f1, 0x2a96a05168, 0x1, 0x0, 0x2a00000001, 0xbe4e557, 0x407c0d,
  0x3f1, 0x100000000, 0x2a9556bd90, 0x41ffd648, 0x2a9556ba48, 0x2a957b2869,
  0x3, 0x2a9585dc39, 0x30, 0x41ffd600, 0x2a95672020, 0x2a9640bfea,
  0x2a9579ccc8, 0x2a9556ba48, 0x41ffd600, 0x2a959db9b8, 0x2a95672020,
  0x7fbfffe940, 0x1000, 0x3, 0x2a9578bc10, 0x2a9556ba48, 0x2a00000001,
  0x2a959d8948, 0x2a95672020, 0x7fbfffe940, 0x1000, 0x3, 0x41ffd6f0,
  0x2a955601a4, 0x1, 0x0, 0x2a992009b0, 0x2a9578bc10, 0x41ffd830,
  0x2a95560052, 0x2a992009b0}
escaped = 150
lRc = 1
argc = 42
argument = { = {static npos = 4294967195,
    m_pchData = 0x0}, }
cptr = (const wxChar *) 0x0
quotechar = 42
#7  0x0000002a95865913 in wxDoExecuteWithCapture (command=@0x41ffd870,
    output=@0x41ffd810, error=0x0) at src/common/utilscmn.cpp:493
process = (class wxProcess *) 0x2a992009b0
rc = 1107286064
#8  0x0000002a958659b0 in wxExecute(wxString const&, wxArrayString&) (
    command=@0x41ffd870, output=@0x41ffd810) at src/common/utilscmn.cpp:520
No locals.
#9  0x00000000005062c8 in CamuleApp::OnFatalException() (this=0x927490)
    at amule.cpp:1180
bt_array = {0x505a79, 0x2a958677bd, 0x2a95678210, 0x2a957f62b5,
  0x2a9582fd2a, 0x4127e4, 0x420e00, 0x418b76, 0x417fcd, 0x48763c, 0x491548,
  0x46743b, 0x490c3c, 0x493744, 0x2a9585ea57, 0x2a9585e93d, 0x2a956720b1,
  0x2a96895263, 0x3000000010, 0x41ffeef0, 0x41ffee20, 0x534d39, 0x0,
  0x41ffd9b0, 0x41ffd9d0, 0x541c5e, 0x130c546a, 0x541c8d, 0x1cb136f45,
  0x41ffda40, 0x41ffda90, 0x541bb3, 0x0, 0xcb136f45, 0x130c546b, 0x130c546a,
  0x87a06ea6, 0xffffffffd26a5f83, 0x83f7cbd8, 0xffffffffe3862cff,
  0xffffffffe3862cff, 0xa2f008431872bdba, 0x5d0ff7bccb136f45, 0x96d09759,
  0x130c546a, 0x513638, 0xa0719ed90f3028b3, 0xa2f0084483f7cbd8,
  0xe2a9613200000001, 0x0, 0xb5360f23b8071ada, 0x41ffdb20, 0xe2a96132461e8452,
  0x41ffdaa8, 0x41ffdaf0, 0x53b599, 0x461e8452e2a96132, 0x41ffdb00,
  0xe2a96132, 0x41ffe008, 0x41ffdb00, 0x100, 0x41ffe180, 0x7, 0x0, 0x556678,
  0xffffffff, 0x2a9682c496, 0x3034, 0x2d02528, 0x3202d03524, 0x3200000035,
  0x41ffdcb0, 0x41ffdcb0, 0x400, 0x41ffdf40, 0x556648, 0x3, 0x2d02528,
  0x2a9683d078, 0x2d02528, 0x2d02528, 0x2d02528, 0x2d02528, 0x2d02554,
  0x2d03524, 0x2d02528, 0x2d02528, 0x3202d03524, 0x3000000034, 0x41ffdd40,
  0x41ffdd40, 0x400, 0x41ffdfd0, 0x2a95a29958, 0x3, 0x2d02528, 0x2a9683d078,
  0x2d02528, 0x2d02528}
num_entries = 18
command = { = {static npos = 4294967195,
    m_pchData = 0x2a99200ab8}, }
bt_strings = (char **) 0x2a992009b0
libname = (wxString *) 0x2a992008f8
funcname = (wxString *) 0x2a99200f98
address = (wxString *) 0x2a99201038
AllAddresses = { = {static npos = 4294967195,
    m_pchData = 0x2a99203158}, }
out = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0, m_autoSort = false}
#10 0x0000002a958677bd in wxFatalSignalHandler () at src/unix/utilsunx.cpp:976
No locals.
#11
No symbol table info available.
#12 0x0000002a957f62b5 in wxCharBuffer (this=0x41ffe0d0, len=181850352077)
    at buffer.h:96
No locals.
#13 0x0000002a9582fd2a in wxMBConv::cWC2MB(wchar_t const*) const (
    this=0x724280, pwz=0x1a753d8) at src/common/strconv.cpp:204
buf = {m_str = 0x0}
nLen = 181850352074
buf = {m_str = 0x0}
#14 0x00000000004127e4 in wxMBConv::cWX2MB(wchar_t const*) const (
    this=0x724280, psz=0x1a753d8) at strconv.h:56
No locals.
#15 0x0000000000420e00 in StringIPtoUint32(wxString const&) (str_ip=@0xcf03d8)
    at NetworkFunctions.h:62
No locals.
#16 0x0000000000418b76 in CUpDownClient::ProcessHelloTypePacket(CSafeMemFile const&) (this=0xcf0360, data=@0x41ffe450) at BaseClient.cpp:486
address = { = { = { = { = {_vptr.wxObject = 0x559010, 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 = 0x90e010}, m_refData = 0x0},
        static ms_classInfo = {m_className = 0x2a95a29988, m_objectSize = 24,
          m_objectConstructor = 0, m_baseInfo1 = 0x723cd0, m_baseInfo2 = 0x0,
          static sm_first = 0x0, m_next = 0x2a95b36440,
          static sm_classTable = 0x90e010}, m_address = 0x17f06b0},
      static ms_classInfo = {m_className = 0x2a95a299c0, m_objectSize = 24,
        m_objectConstructor = 0, m_baseInfo1 = 0x2a95b36340,
        m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0x2a95b36340,
        static sm_classTable = 0x90e010}}, 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 = 0x90e010},
    m_origHostname = { = {static npos = 4294967195,
        m_pchData = 0x2a95899418}, }}, }
dwEmuleTags = 7
pFoundCredits = (CClientCredits *) 0x41ffe3e0
bIsMule = 50
#17 0x0000000000417fcd in CUpDownClient::ProcessHelloPacket(char const*, unsigned) (this=0xcf0360,
    pachPacket=0x29d46e0 "\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005", nSize=85) at BaseClient.cpp:293
data = { = { = {_vptr.CFile = 0x57cf30, m_fd = -1,
      m_error = false, fFilePath = { = {
          static npos = 4294967195,
          m_pchData = 0x2a95899418}, }}, m_GrowBytes = 0,
    m_position = 85, m_BufferSize = 85, m_FileSize = 85, m_delete = false,
    m_buffer = 0x29d46e0 "\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005"}, = {_vptr.CFileDataIO = 0x57d048}, }
hashsize = 16 '\020'
#18 0x000000000048763c in CClientReqSocket::ProcessPacket(char const*, unsigned, unsigned char) (this=0x2493c20,
    packet=0x29d46e0 "\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005",
    size=85, opcode=1 '\001') at ListenSocket.cpp:401
bNewClient = true
bIsMuleHello = false
#19 0x0000000000491548 in CClientReqSocket::PacketReceived(CPacket*) (
    this=0x2493c20, packet=0x2211df0) at ListenSocket.cpp:2253
bResult = false
uRawSize = 85
#20 0x000000000046743b in CEMSocket::OnReceive(int) (this=0x2493c20,
    nErrorCode=0) at EMSocket.cpp:265
bPacketResult = 32
toCopy = 85
ret = 91
rptr = 0x7246bb "\222\216ÔlÿR25Uü\036\027)ïü?\037u±Ù\177ÔuruJüÔË­šê\\º`\020\002\030\222š\eÞ\004\001 Jô\035\227ûÅÊ£\005ÅÃ\203Ö\023)äÒ@)¡°4\006@4I"
GlobalReadBuffer = "ãV\000\000\000\001\020Ÿ*¡9\206\016\227\017ÔCÂ\034<\027o%P\204Ü(6\022\005\000\000\000\002\001\000\001\016\000emule.de [v12]\003\001\000\021<\000\000\000\003\001\000ù@\022\000\000\003\001\000ú\0262\023\004\003\001\000û\000«\000\000Ãõôó5\022\222\216ÔlÿR25Uü\036\027)ïü?\037u±Ù\177ÔuruJüÔË­šê\\º`\020\002\030\222š\eÞ\004\001 Jô\035\227ûÅÊ£\005ÅÃ\203Ö\023)äÒ@)¡°4\006@4I\000ÿª\220ž\024ž\006ÓýMýM{\216\022\001š\aÀ\200\001\201\f!Õx\n\001+ÿÛwŸ\224ô·"...
readMax = 2000000
rend = 0x7246bb "\222\216ÔlÿR25Uü\036\027)ïü?\037u±Ù\177ÔuruJüÔË­šê\\º`\020\002\030\222š\eÞ\004\001 Jô\035\227ûÅÊ£\005ÅÃ\203Ö\023)äÒ@)¡°4\006@4I"
#21 0x0000000000490c3c in CClientReqSocket::OnReceive(int) (this=0x2493c20,
    nErrorCode=0) at ListenSocket.cpp:2143
No locals.
#22 0x0000000000493744 in CSocketGlobalThread::Entry() (this=0xbda088)
    at ListenSocket.cpp:2674
client = (CUpDownClient *) 0x1077e10
cur_sock = (CClientReqSocket *) 0x2493c20
it = {_M_node = 0x12db140}
locker = {m_isOk = true, m_mutex = @0x927740}
#23 0x0000002a9585ea57 in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0xbda088) at src/unix/threadpsx.cpp:762
pthread = (wxThreadInternal *) 0xbdbf80
rc = 0
dontRunAtAll = false
#24 0x0000002a9585e93d in wxPthreadStart (ptr=0xbda088)
    at src/unix/threadpsx.cpp:714
No locals.
#25 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#26 0x0000002a96895263 in clone () from /lib/libc.so.6
No symbol table info available.

Ok, to resolve my problem I give a short description of my aMule installation.
After phoenix help I unmerged all wxGTK versions on my pc. I dowloaded the developer version 2.5.3 of wxWidgets (wxGTK-2.5.3.tar.bz2) from the wxWidgets homepage and the amule cvs from amule.hirnriss.net.
I have installed wxWidgets unicode with this script:
Code: [Select]
rm -rf /home/user/usr/wxWidgets-cvsu
make clean
./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=/home/user/usr/wxWidgets-cvsu CHOST="x86_64-pc-linux-gnu"
#CFLAGS="-march=k8 -O2 -pipe" CXXFLAGS="-march=k8 -O2 -pipe"
make
make install

I have installed aMule unicode with this script:
Code: [Select]
rm -rf /home/user/usr/amuleu
make clean
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd  --enable-amule-daemon --disable-monolithic --with-wx-config=/home/user/usr/wxWidgets-cvsu/bin/wx-config --prefix=/home/user/usr/amuleu CHOST="x86_64-pc-linux-gnu"
#CFLAGS="-march=k8 -O2 -pipe" CXXFLAGS="-march=k8 -O2 -pipe"
make
make install

I run the daemon with this script:
Code: [Select]
LD_LIBRARY_PATH=/home/user/usr/wxWidgets-cvsu/lib/ /home/user/usr/amuleu/bin/amuled >> /home/user/.aMule/debug.log 2>> /home/user/.aMule/error.log &

I always download my ipfilter list from http://emulepawcio.sourceforge.net/nieuwe_site/Ipfilter_fakes/ipfilter.dat .

I hope this information will help you to help me or to fix the bug.

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 18, 2005, 02:40:17 PM
Today amuled runs over five hours but it crash.
Can please someone help me or give some hints which can be the reason. It is so frustating :( Is any additional information needed?
Is Unicode needed to search for filenames published through eMule >0.45a or is it only important for some special languages?

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 18, 2005, 03:37:41 PM
Mr Faber,

Hey, take it easy, do not despair ok ;)

Did you try the changes I suggested before in StringFunctions.h?

As for unicode search, I believe it is not working yet, but this should not crash aMule, I think we are talking about two different issues, right?

I have aMule running in my home for days. This CVS version is highly stable for me. When I started with aMule, it crashed every hour. So if we can solve your issue, we will make aMule even stronger.

I will study a little more your backtrace, but you have to help me with that. I cant test my theories in your machine, and aMule does not crash in my machine, so we have to be a little patient.

Cheers!
Title: Re: amuled crashes after a few minutes
Post by: Lenni on February 18, 2005, 04:50:59 PM
Mr. Faber: My amuled is still crashing after some hours having UDPDisabled=0. Setting this variable to 1 fixes this problem here.
Lenni
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 18, 2005, 09:39:34 PM
Thanks, I will give it a try. But UDP is very important for aMule so maybe its a solution for the first time.

@phoenix
Many thanks, I will test the code change later.
[EDIT]
Yes, with this change amuled without unicode is starting fine but there is a second defunct amuled instead of amulewebserver. Maybe it has something to do with the home directory installation
But the webserver has some bugs to. It does not, even without unicode, read the port from configuration file like in the past. INstead of this he uses the standard port and an unknown password. I haven't changed it before or after unicode?
[/EDIT]
I don't understand. If unicode is only important for languages like Japanese or so I don't need it. I only want to use unicode for releasing names to servers and search for it like eMule does. eMule has also unicode for language files but I don't need this.
I can send you some more backtraces if you want but they all look very equal.

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 18, 2005, 10:30:01 PM
Mr Faber,

The port bug has been fixed today by lfroen.
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 19, 2005, 08:32:45 AM
Quote
Originally posted by phoenix
Mr Faber,

The port bug has been fixed today by lfroen.
Yes, webserver in CVS 20050219 seems to work fine. Thanks.
But the second amuled ist still there and I always have to change the one line in StrinFunctions.h to get amuled without unicode to work.
Today I will install aMule correctly so I can test this under normal condition. For now I only used wxBase 2.5.3 instead of wxGTK 2.5.3 without --enable-gtk because I only use command tools. Maybe this will help. Compilation works fine.
I get a crash relativily fast. It seems to have something to do with Black Dragon Mods because I get an similar result yesterday two times.

Code: [Select]
(gdb) bt
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
#1  0x0000002a957e043a in wxTrap() () at src/common/appbase.cpp:569
#2  0x0000002a957e0771 in ShowAssertDialog (
    szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread",
    traits=0x8f8a60) at src/common/appbase.cpp:723
#3  0x0000002a957e023d in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x8f6af0, file=0x2a9586e45c "src/unix/utilsunx.cpp",
    line=251, cond=0x2a9586e4ac "wxThread::IsMain()",
    msg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:438
#4  0x0000002a957e04fd in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:615
#5  0x0000002a957e0470 in wxAssert(int, char const*, int, char const*, char const*) (cond=0, szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:582
#6  0x0000002a958602d2 in wxExecute(wxString const&, int, wxProcess*) (
    command=@0x41ffdb00, flags=1, process=0x11555b0)
    at src/unix/utilsunx.cpp:250
#7  0x0000002a9585ff83 in wxDoExecuteWithCapture (command=@0x41ffdb00,
    output=@0x41ffdaa0, error=0x0) at src/common/utilscmn.cpp:493
#8  0x0000002a95860020 in wxExecute(wxString const&, wxArrayString&) (
    command=@0x41ffdb00, output=@0x41ffdaa0) at src/common/utilscmn.cpp:520
#9  0x0000000000504cfc in CamuleApp::OnFatalException() (this=0x8f6af0)
    at amule.cpp:1180
#10 0x0000002a958619e7 in wxFatalSignalHandler () at src/unix/utilsunx.cpp:976
#11
#12 0x0000002a967ce31c in vfprintf () from /lib/libc.so.6
#13 0x0000002a967ecce4 in vsnprintf () from /lib/libc.so.6
#14 0x0000002a95836b39 in wxString::PrintfV(char const*, __va_list_tag*) (
    this=0x41ffedc0,
    pszFormat=0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...,
    argptr=0x41ffebc0) at src/common/string.cpp:1942
#15 0x0000002a9583693a in wxString::Format(char const*, ...) (
    pszFormat=0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...)
    at src/common/string.cpp:1894
#16 0x000000000041c57e in CUpDownClient::Disconnected(wxString const&, bool) (
    this=0x1915940, strReason=@0x41fff000, bFromSocket=true)
    at BaseClient.cpp:1215
#17 0x00000000004869f0 in CClientReqSocket::Disconnect(wxString const&) (
    this=0xbbf7f0, strReason=@0x41fff000) at ListenSocket.cpp:314
#18 0x0000000000490965 in CClientReqSocket::OnError(int) (this=0xbbf7f0,
    nErrorCode=7) at ListenSocket.cpp:2235
#19 0x0000000000492baf in CSocketGlobalThread::Entry() (this=0xae6f18)
    at ListenSocket.cpp:2663
#20 0x0000002a9585917f in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0xae6f18) at src/unix/threadpsx.cpp:762
#21 0x0000002a95859065 in wxPthreadStart (ptr=0xae6f18)
    at src/unix/threadpsx.cpp:714
#22 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
#23 0x0000002a96841263 in clone () from /lib/libc.so.6
(gdb) bt full
#0  0x0000002a956780f9 in raise () from /lib/libpthread.so.0
No symbol table info available.
#1  0x0000002a957e043a in wxTrap() () at src/common/appbase.cpp:569
No locals.
#2  0x0000002a957e0771 in ShowAssertDialog (
    szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread",
    traits=0x8f8a60) at src/common/appbase.cpp:723
s_bNoAsserts = false
msg = { = {static npos = 4294967195,
    m_pchData = 0x1c62058 "src/unix/utilsunx.cpp(251): assert \"wxThread::IsMain()\" failed: wxExecute() can be called only from the main thread [in child thread]"}, }
#3  0x0000002a957e023d in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x8f6af0, file=0x2a9586e45c "src/unix/utilsunx.cpp",
    line=251, cond=0x2a9586e4ac "wxThread::IsMain()",
    msg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:438
No locals.
#4  0x0000002a957e04fd in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:615
s_bInAssert = true
#5  0x0000002a957e0470 in wxAssert(int, char const*, int, char const*, char const*) (cond=0, szFile=0x2a9586e45c "src/unix/utilsunx.cpp", nLine=251,
    szCond=0x2a9586e4ac "wxThread::IsMain()",
    szMsg=0x2a9586e478 "wxExecute() can be called only from the main thread")
    at src/common/appbase.cpp:582
No locals.
#6  0x0000002a958602d2 in wxExecute(wxString const&, int, wxProcess*) (
    command=@0x41ffdb00, flags=1, process=0x11555b0)
    at src/unix/utilsunx.cpp:250
argv = {0x0, 0x41ffd4c0 "%", 0x3
,
  0x41ffd460 "ðÂÍ\001û", 0x41ffd508 "\"", 0x0, 0x0,
  0x12
,
  0x2a96670000 "æ\025Òöÿ¿Ø?\vJêàö\017Ú?\211\t\232\030+¥\003@=aÀ\2111hÚ»ï4÷\002", 0x0, 0x41ffd5a0 "",
  0x2a96687f50 "H\211l$ØH\211\\$ÐH\211ÕL\211d$àL\211l$èºÿÿÿÿL\211t$ðL\211|$øH\201ì\210", 0x41ffd610 "b\022\204\226*",
  0x2affffffff
,
  0x2a96871220 "H\213\005\211\213\023", 0x0, 0x0, 0x0,
  0x2a9678b000
, 0x2a969a98c0 "", 0x0,
  0x41ff000b "", 0x12
,
  0xe
, 0x41ffd9b0 "°ÞÿA",
  0x114e995 "/lib/libc.so.6(__clone+0x43) [0x2a96841263]", 0x41ffd8f0 "ÀÚÿA",
  0x2a967d34f8 "H\201ÄØ", 0x3000000030
,
  0x41ffd6e0 "\232Ó{\225*", 0x41ffd610 "b\022\204\226*",
  0x2a966883d2 "1Ò\205À\017\2109ÿÿÿH\213T$ H\205Ò\017\204+ÿÿÿH\213D$\bI\211E",
  0x2a96841262 "ÐH\211ÇèuaýÿH\213\rÎ\213\026", 0x0,
  0x2a9667f488 "/lib/libc.so.6", 0x2a9688a255 "(", 0x2a9679aaa7 "__clone",
  0x41ffd960 "ÀÚÿA", 0x521
,
  0x64
, 0x0, 0x2a969ac710 "", 0x2a969ac718 "",
  0x41ffd6c0 "\002",
  0x3437383031998378
,
  0x80
, 0x61
,
  0x400
, 0x41ffd6c0 "\002",
  0x41ffd830 "&ºÜ\001", 0x56d0f0 "addr2line -C -f -s -e /proc/%d/exe ",
  0x2a9555d1b2 "\205À\017\205,ÿÿÿéwÿÿÿ\220H\203|$0",
  0x61
,
  0xcca2545969ac6a0
,
  0x2
,
  0x1dcba26 "n' (IP:217.94.56.177) caused a socket blocking error or closed connection.\n", 0x0,
  0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."..., 0x2a957bd39a "",
  0x2a9555d1b2 "\205À\017\205,ÿÿÿéwÿÿÿ\220H\203|$0", 0x2a95786fe8 "",
  0xcca25450000000f
,
  0x2a96670002 "Òöÿ¿Ø?\vJêàö\017Ú?\211\t\232\030+¥\003@=aÀ\2111hÚ»ï4÷\002",
  0x2a969b1168 "OÓ{\225*", 0x0, 0x9579c678
,
  0x2a957bd39a "", 0x2a9579e550 "", 0x2a95786fe8 "",
  0xf
, 0x2a9667fd60 "š¹f\225*",
  0x2a969b1168 "OÓ{\225*", 0x41ffd880 "h¹x\225*", 0x2a9578b968 "b9\001",
  0x1d0a9f3 "ý\tæÃs\211ï€Èô5­YËuË\027(=\236ÐÆ%Ðì\005PùçdŸha\203üw¶íæùãÝø\027Ÿ\036x\017RúÙß\211¹ü\230Xh\"\0353\026w·ßävnË6õ\222©t\214î\203%}é°\216Xÿ\222K«\224\224¬p\216\021ª\016\226\005:¡z\223Í\234í\036œNñ\0165\004ú\b\227U!û\221K­ëÐ×y^\021³\rÖLÍ!É\tÄ\020ñ\023\230\177rQÿ\201¡\233l»-.\216ÃÒ\203s­ Õ°€Æ\233\222Äk\rמ\224ÞþýË\201¿qç£'ÆýzÃÞo(ÈkguË\021ò\216<2Ü\023%ò"...,
  0x2a957b1eb2 "_Z9wxExecuteRK8wxStringiP9wxProcess", 0x2a969b1168 "OÓ{\225*",
  0x2a9556bd90 "XŒf\225*", 0x41ffd8c0 "\220ÙÿA", 0x0, 0x41ffd880 "h¹x\225*",
  0x1d0a9f3 "ý\tæÃs\211ï€Èô5­YËuË\027(=\236ÐÆ%Ðì\005PùçdŸha\203üw¶íæùãÝø\027Ÿ\036x\017RúÙß\211¹ü\230Xh\"\0353\026w·ßävnË6õ\222©t\214î\203%}é°\216Xÿ\222K«\224\224¬p\216\021ª\016\226\005:¡z\223Í\234í\036œNñ\0165\004ú\b\227U!û\221K­ëÐ×y^\021³\rÖLÍ!É\tÄ\020ñ\023\230\177rQÿ\201¡\233l»-.\216ÃÒ\203s­ Õ°€Æ\233\222Äk\rמ\224ÞþýË\201¿qç£'ÆýzÃÞo(ÈkguË\021ò\216<2Ü\023%ò"..., 0x2a969b1168 "OÓ{\225*",
  0x2a9555d3f1 "\205À\211Â\177\027©", 0x2a969b1168 "OÓ{\225*",
  0x1
, 0x0,
  0x2a00000001
,
  0xbe4e557
,
  0x407b3e "_Z9wxExecuteRK8wxStringR13wxArrayString",
  0x41
,
  0x100000000
, 0x2a9556bd90 "XŒf\225*",
  0x41ffd8e8 "h¹x\225*", 0x2a9556ba48 "",
  0x2a957b1eb2 "_Z9wxExecuteRK8wxStringiP9wxProcess",
  0x3
, 0x2a95858361 "\211EðH\213Eø\203}ð",
  0x30
, 0x41ffd8a0 "&ºÜ\001",
  0x1dcba26 "n' (IP:217.94.56.177) caused a socket blocking error or closed connection.\n",
  0x2a963b7fea "H\205Àt\023H\213\034$H\213l$\bL\213d$\020H\203Ä\030ÃL\213%Wq\022", 0x2a9579c678 "48\001", 0x2a9556ba48 "", 0x41ffd8a0 "&ºÜ\001",
  0x2a9599b058 "Ü£\202\225*",
  0x1dcba26 "n' (IP:217.94.56.177) caused a socket blocking error or closed connection.\n", 0x41ffeb30 " ",
  0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...,
  0x3
, 0x2a9578b968 "b9\001", 0x2a9556ba48 "",
  0x1
, 0x2a95998128 "N\002\206\225*",
  0x1dcba26 "n' (IP:217.94.56.177) caused a socket blocking error or closed connection.\n", 0x41ffeb30 " ",
  0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...,
  0x3
, 0x41ffd990 "°ÙÿA",
  0x2a955601a4 "H\213T$\030H\211Á1ÀH\205Òt\fH\205ÉtPH\213B\bH\003\001\213\025ê\020", 0x1
, 0x0, 0x11555b0 "°õ\231\225*",
  0x2a9578b968 "b9\001", 0x41ffdac0 "ž\207\231\001",
  0x2a95560052 "I\211ÃL\213L$0L\213D$(H\213|$ H\213t$\030H\213T$\020H\213L$\bH\213\004$H\203ÄHAÿãf\220H\203ì8H\211\004$H\211L$\bH\211T$\020H\211t$\030H\211|$ L\211D$(L\211L$0H\213T$HH\213t$@I\211óL\001ÞL\001ÞHÁæ\003H\213|$8èi\001",
  0x11555b0 "°õ\231\225*"}
escaped = false
lRc = 18147733
argc = 0
argument = { = {static npos = 4294967195,
    m_pchData = 0x0}, }
cptr = (const wxChar *) 0x41ffd4d8 " "
quotechar = 0 '\0'
#7  0x0000002a9585ff83 in wxDoExecuteWithCapture (command=@0x41ffdb00,
    output=@0x41ffdaa0, error=0x0) at src/common/utilscmn.cpp:493
process = (class wxProcess *) 0x11555b0
rc = 1107286720
#8  0x0000002a95860020 in wxExecute(wxString const&, wxArrayString&) (
    command=@0x41ffdb00, output=@0x41ffdaa0) at src/common/utilscmn.cpp:520
No locals.
#9  0x0000000000504cfc in CamuleApp::OnFatalException() (this=0x8f6af0)
    at amule.cpp:1180
bt_array = {0x5044bd, 0x2a958619e7, 0x2a95678210, 0x2a967ce31c,
  0x2a967ecce4, 0x2a95836b39, 0x2a9583693a, 0x41c57e, 0x4869f0, 0x490965,
  0x492baf, 0x2a9585917f, 0x2a95859065, 0x2a956720b1, 0x2a96841263,
  0xc8af7068, 0xc99145da56a5505c, 0x5ffffffff, 0x404caf9006d417c8,
  0x366eba26758d3602, 0x4eebecba41ffdc70, 0x0, 0xd091f534b0907087, 0x41ffdcd0,
  0x4eebecbaf0a65320, 0x41ffdc58, 0x41ffdca0, 0x539ec9, 0xf0a653204eebecba,
  0xf0a653204eebecba, 0xf0a653204eebecba, 0x41ffdc90, 0x64, 0x2a967d86ce,
  0x41ffdcb0, 0x41ffdcd0, 0x9a03b882c8af7068, 0x41ffdcc8, 0x41ffdd00,
  0x41ffdcd0, 0x64, 0x100000000, 0x3, 0x100, 0x41ffd870, 0x0, 0x0, 0x0, 0x0,
  0x0, 0x0, 0x2a96889a3c, 0xa00000001, 0x700000000, 0x2a969a80a0,
  0x2a969aa560, 0x0, 0xffffffff00000000, 0xf, 0x496889a3c, 0x55485f, 0x0,
  0x41ffe020, 0x41ffdf00, 0x2, 0x41ffd873, 0xf, 0x60, 0x41, 0x2a959a3b60,
  0x41ffddf0, 0x2a958210ba, 0x0, 0x2a959a3b60, 0x8f6af0, 0x0, 0x18f8cd0,
  0xae6d50, 0x0, 0x2a969ac710, 0x2a969ac718, 0x41ffde50, 0x30000000018f8868,
  0x18f8c67, 0x18f8868, 0x400, 0x41ffde50, 0x41ffdfc0, 0x55512c, 0x3, 0x1,
  0x14000000, 0x2a967b9ca0, 0x1000, 0x7fbfffe990, 0x1000, 0x3, 0x2a967f5192,
  0x18f886f, 0x1b097e0}
num_entries = 15
command = { = {static npos = 4294967195,
    m_pchData = 0x1d27768 "addr2line -C -f -s -e /proc/10874/exe 0x5044bd 0x2a958619e7 0x2a95678210 0x2a967ce31c 0x2a967ecce4 0x2a95836b39 0x2a9583693a 0x41c57e 0x4869f0 0x490965 0x492baf 0x2a9585917f 0x2a95859065 0x2a956720b1 "...}, }
bt_strings = (char **) 0x114e590
libname = (wxString *) 0x1dbb2e8
funcname = (wxString *) 0x1151eb8
address = (wxString *) 0x1c60728
AllAddresses = { = {static npos = 4294967195,
    m_pchData = 0x1143e48 "0x5044bd 0x2a958619e7 0x2a95678210 0x2a967ce31c 0x2a967ecce4 0x2a95836b39 0x2a9583693a 0x41c57e 0x4869f0 0x490965 0x492baf 0x2a9585917f 0x2a95859065 0x2a956720b1 0x2a96841263 "}, }
out = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0, m_autoSort = false}
#10 0x0000002a958619e7 in wxFatalSignalHandler () at src/unix/utilsunx.cpp:976
No locals.
#11
No symbol table info available.
#12 0x0000002a967ce31c in vfprintf () from /lib/libc.so.6
No symbol table info available.
#13 0x0000002a967ecce4 in vsnprintf () from /lib/libc.so.6
No symbol table info available.
#14 0x0000002a95836b39 in wxString::PrintfV(char const*, __va_list_tag*) (
    this=0x41ffedc0,
    pszFormat=0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...,
    argptr=0x41ffebc0) at src/common/string.cpp:1942
tmp = {m_str = @0x41ffedc0,
  m_buf = 0x18f8868 "--- Disconnected client \"Client Bl@ck Drag on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drageason was Client 'http://emule-project.net' (IP:217.82.158.46) caused a socke"...}
buf = (
    wxChar *) 0x18f8868 "--- Disconnected client \"Client Bl@ck Drag on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drageason was Client 'http://emule-project.net' (IP:217.82.158.46) caused a socke"...
argptrcopy = {{gp_offset = 32, fp_offset = 48,
    overflow_arg_area = 0x41ffecc0, reg_save_area = 0x41ffebf0}}
size = 1024
len = 1107291024
#15 0x0000002a9583693a in wxString::Format(char const*, ...) (
    pszFormat=0x1dcb9a8 "--- Disconnected client \"Client Bl@ck Drag%n on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."...)
    at src/common/string.cpp:1894
argptr = {{gp_offset = 16, fp_offset = 48,
    overflow_arg_area = 0x41ffecc0, reg_save_area = 0x41ffebf0}}
s = { = {static npos = 4294967195,
    m_pchData = 0x18f8868 "--- Disconnected client \"Client Bl@ck Drag on IP 217.94.56.177 port 4652 using eMule v0.42d\"; Reason was Client 'Bl@ck Drageason was Client 'http://emule-project.net' (IP:217.82.158.46) caused a socke"...}, }
#16 0x000000000041c57e in CUpDownClient::Disconnected(wxString const&, bool) (
    this=0x1915940, strReason=@0x41fff000, bFromSocket=true)
    at BaseClient.cpp:1215
bDelete = false
#17 0x00000000004869f0 in CClientReqSocket::Disconnect(wxString const&) (
    this=0xbbf7f0, strReason=@0x41fff000) at ListenSocket.cpp:314
No locals.
#18 0x0000000000490965 in CClientReqSocket::OnError(int) (this=0xbbf7f0,
    nErrorCode=7) at ListenSocket.cpp:2235
strError = { = {static npos = 4294967195,
    m_pchData = 0x1b976f8 "Client 'Bl@ck Drag%n' (IP:217.94.56.177) caused a socket blocking error or closed connection."}, }
disconnect = true
#19 0x0000000000492baf in CSocketGlobalThread::Entry() (this=0xae6f18)
    at ListenSocket.cpp:2663
cur_sock = (CClientReqSocket *) 0xbbf7f0
it = {_M_node = 0x19cef90}
locker = {m_isOk = true, m_mutex = @0x8f6da0}
#20 0x0000002a9585917f in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0xae6f18) at src/unix/threadpsx.cpp:762
pthread = (wxThreadInternal *) 0xae72a0
rc = 0
dontRunAtAll = false
#21 0x0000002a95859065 in wxPthreadStart (ptr=0xae6f18)
    at src/unix/threadpsx.cpp:714
No locals.
#22 0x0000002a956720b1 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#23 0x0000002a96841263 in clone () from /lib/libc.so.6
No symbol table info available.

@Lenni
Disabling UDP doesn't work for me. Amuled still crashes because of this mod?! I am no Backtrace expert but in every new dump there stands something about this mod.


Maybe I know a possible reason for crashing. I use no standard language or ISO. I want to see filenames with german chars correctly but I don't want german interfaces. So I created my own Language defintion with this command:
Code: [Select]
localedef -c -i en_US -f ISO-8859-15 en_DEAnd I used it with the command in the profile file:
Code: [Select]
export LANG="en_DE"This works fine on my laptop without aMule and on my other computer if I don't used amule. Maybe aMule or the new wxWidgets has problems with it.
I will test it later with de_DE and en_US.
[EDIT]
aMuled crashes with de_DE with an similar dump like the last one. Does anyone know something about this mod?
I am going to block this IP temporary with my ipfilterlist.
After filtering this ip the amuled runs stable for over a hour. But if I cancel some downloads in amuleweb it crashes and kills the daemon with it.
[/EDIT]

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 19, 2005, 01:48:02 PM
Mr Faber,

I did a small change in the way the disconnect message is print, can you test it? It is on tomorrow CVS tarball, or you can try the attached patch.
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 19, 2005, 05:59:06 PM
Here goes another patch for you to try, together with the previous one.
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 20, 2005, 10:15:17 AM
Many many Thanks for your patches and help :baby: . I will try it now.
[EDIT]If I apply the NetworkFunctions patch I get a lowid. Maybe through a wrong port. If I patch only the Stringfunctions I get a normal HighID.[/EDIT]

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 20, 2005, 03:34:59 PM
Mr Faber,

Sorry, I gave you a wrong patch. Try the following.
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 20, 2005, 06:55:39 PM
All those patches are now in CVS, so you can test the tarball if you prefer.

Thanks for testing!
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 20, 2005, 11:18:42 PM
Thats great news. Amuled runs with the Patches except of the first networkfunctions patch the whole day without crashes. Only the amulewebserver and cmd has some crashes but this maybe fixed tomorrow :).
The second amuled process is still there and I have to start the webserver on my own but this is not a big problem.
Thanks.

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 21, 2005, 12:14:15 AM
Ok, tomorrow we continue the bug hunting :)

Cheers!
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 21, 2005, 06:43:03 PM
Is there any doc how to compile wxWidgets CVS?

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: rollopack on February 21, 2005, 07:15:17 PM
The amuled in today CVS (20050221) seems more stable, thanks!
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 21, 2005, 07:33:41 PM
Quote
Originally posted by Mr Faber
Is there any doc how to compile wxWidgets CVS?

cu
Mr Faber

go to some dir and do:
$ cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets login
(password is anoncvs)
$ cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwidgets checkout wxWidgets
(for gtk2+non-unicode)
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --disable-unicode --prefix=~/local/wxWidgets-cvs
(for gtk2+unicode)
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=~/local/wxWidgets-cvsu
$ make
$ su
$ make install

Configure aMule with:
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-webservergui --enable-amulecmd --enable-amulecmdgui --enable-amule-daemon --enable-ccache --with-wx-config=~/local/wxWidgets-cvsu/bin/wx-config

Run aMule like this:
LD_LIBRARY_PATH=~/local/wxWidgets-cvsu/lib/ /path/to/amule/executable/amule &
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 22, 2005, 02:11:43 PM
Thanks, it worked for me. But with the new wxWidgets the second amuled process still exists and I have to start the webserver on my own.
I can't see any graphs in webinterface?
How often aMule asked one source for status? Many downloads finished but the high connection rate still exists. I always reach the maximum of 800 which seems to kill my connection partly. I have 20 connections per five seconds but it seems not as smooth as eMule. I think aMule established 20 connections at once, wait five seconds and do the same. This is senseless because it has not the desired effect of low averaged connection traffic. If I ping my provider I get similar this 15ms, 15 ms, 15 ms, 15 ms, 150 ms, 100 ms, 15 ms, 15  ms, 15 ms, 15 ms, 150 ms, 100 ms  ...
Is there any development on USS (Upload Speed Sense) and will it be released before 2.0 or later?


cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 22, 2005, 03:43:27 PM
Quote
Originally posted by Mr Faber
Thanks, it worked for me.
Great!

Quote
Originally posted by Mr Faber
But with the new wxWidgets the second amuled process still exists and I have to start the webserver on my own.
Exactly what do you mean? When you do a ps there are two amuled? Maybe it is just another thread.

The webserver is probably not in the path, so amuleweb can't find it. Are you running "make install"? I usually don't do this, but if you do, amuled will probably find amuleweb.

Quote
I can't see any graphs in webinterface?
Neither do I. Maybe lfroen can explain, he did the code to display the images, I don't know if it requires a special library to work.

Quote
How often aMule asked one source for status? Many downloads finished but the high connection rate still exists. I always reach the maximum of 800 which seems to kill my connection partly. I have 20 connections per five seconds but it seems not as smooth as eMule. I think aMule established 20 connections at once, wait five seconds and do the same. This is senseless because it has not the desired effect of low averaged connection traffic. If I ping my provider I get similar this 15ms, 15 ms, 15 ms, 15 ms, 150 ms, 100 ms, 15 ms, 15  ms, 15 ms, 15 ms, 150 ms, 100 ms  ...
Hum, good question, I am not acquainted with that part of the code. Maybe Kry or Xaignar can answer that.

Quote
Is there any development on USS (Upload Speed Sense) and will it be released before 2.0 or later?

cu
Mr Faber
Afaik, USS should be in after 2.0.0 release, but there we are still starting to work on this issue. Priority now is bug fix and release a stable aMule.

Cheers!
Title: Re: amuled crashes after a few minutes
Post by: Mr Faber on February 22, 2005, 06:16:46 PM
If I enable webserver in .eMule and if I started amuled in past amulweb ist started with it. I am not sure but since I use your local install amuled starts a second amuled instead of amulweb which gets defunct and runs all the time until the original amuled crash. I can't kill this second daemon (kill -9 doesen't work too). If I disable webserver amuled starts alone :) .
The Graph works for me in the past with the daemon but since some version it seems to be gone or I configured something wrong in Firefox or amule?!

cu
Mr Faber
Title: Re: amuled crashes after a few minutes
Post by: Lenni on February 24, 2005, 12:37:48 PM
I installed CVSs of wxwidgets and amule yesterday, and here is working everything fine, too  :D
What if I want install wxwidgets-CVS 'properly' can I just move the files from my ~/local/wxWidgets-cvs -directory, or do I have compile it again?
Thanks, Lenni!
Title: Re: amuled crashes after a few minutes
Post by: phoenix on February 24, 2005, 06:43:33 PM
Mr Faber,

Graphs are back, check it! :)

Leni,

If you re-run configure without the --prefix option and do make && make install && ldconfig, with some luck it wont recompile and will just install. If you do so, please *FIRST* uninstall the previous installation of wx. Double wx instalations are HELL! ;(