aMule Forum

English => aMule crashes => Topic started by: exalik on January 02, 2007, 02:24:42 PM

Title: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: exalik on January 02, 2007, 02:24:42 PM
Hello,

My aMule CVS 20070102 crash during downloading an ipfilter file ...

Look at the trace :

Quote
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
HTTP download thread started
HTTP download thread ended
HTTP download thread started
HTTP download thread ended
HTTP download thread started
Host: http://www.chez-breizh.eu:80
URL: http://www.chez-breizh.eu/ipfilter.zip
Response: 200 (Error: 0)
Download size: 2368219

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

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule CVS using wxGTK2 v2.8.0 (Snapshot: Tue Jan  2 07:01:53 CET 2007)
Running on: Linux 2.6.17-5mdv x86_64

HTTP download thread ended
[2] CamuleApp::OnFatalException() in amule.cpp:1251
[3] wxFatalSignalHandler in /usr/lib64/libwx_baseu-2.8.so.0[0x2ab3ecb2d91c]
[4] ?? in /lib64/libpthread.so.0 [0x2ab3ebf571f0]
[5] wxGIFDecoder::GetFrameSize(unsigned int) const in /usr/lib64/libwx_gtk2u_core-2.8.so.0[0x2ab3ec68d46a]
[6] wxGIFDecoder::ConvertToImage(unsigned int, wxImage*) const in /usr/lib64/libwx_gtk2u_core-2.8.so.0[0x2ab3ec68d4af]
[7] MuleGIFDecoder::ConvertToImage(wxImage*) in MuleGifCtrl.cpp:59
[8] MuleGifCtrl::OnTimer(wxTimerEvent&) in MuleGifCtrl.cpp:161
[9] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib64/libwx_baseu-2.8.so.0[0x2ab3ecb2991f]
[10] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib64/libwx_baseu-2.8.so.0[0x2ab3ecb29abf]
[11] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib64/libwx_baseu-2.8.so.0[0x2ab3ecb29c09]
[12] wxTimerBase::Notify() in /usr/lib64/libwx_gtk2u_core-2.8.so.0[0x2ab3ec6ce796]
[13] ?? in /usr/lib64/libwx_gtk2u_core-2.8.so.0 [0x2ab3ec5cc344]
[14] ?? in /usr/lib64/libglib-2.0.so.0 [0x2ab3ee25399b]
[15] g_main_context_dispatch in /usr/lib64/libglib-2.0.so.0[0x2ab3ee253494]
[16] ?? in /usr/lib64/libglib-2.0.so.0 [0x2ab3ee2562cd]
[17] g_main_loop_run in /usr/lib64/libglib-2.0.so.0[0x2ab3ee2565da]
[18] gtk_main in /usr/lib64/libgtk-x11-2.0.so.0[0x2ab3ed67e953]
[19] wxEventLoop::Run() in /usr/lib64/libwx_gtk2u_core-2.8.so.0[0x2ab3ec5c3e0d]
[20] wxAppBase::MainLoop() in /usr/lib64/libwx_gtk2u_core-2.8.so.0[0x2ab3ec6554bb]
[21] wxEntry(int&, wchar_t**) in /usr/lib64/libwx_baseu-2.8.so.0[0x2ab3ecac877c]
[22] main in amule-gui.cpp:95
[23] __libc_start_main in /lib64/libc.so.6[0x2ab3ed22de64]
[24] wxGenericTreeCtrl::SetItemDropHighlight(wxTreeItemId const&, bool) in :0


--------------------------------------------------------------------------------
Abandon

I have configured it with "./configure --prefix=/usr --libdir=/usr/lib64" (my system is Mandriva 2007 x86_64)


Thank's for your help


Exalik
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: phoenix on January 05, 2007, 04:57:54 AM
exalik,

Please try again with tomorrow cvs tarball, I have committed code that should fix this issue.
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: exalik on January 06, 2007, 06:13:42 PM
Hello,

I have maked it and launch. The ipfilter file downloading is ok but i have an error :

Quote
2007-01-06 18:08:05: Failed to load ipfilter.dat file '/home/xxxxxxxx/.aMule/ipfilter.dat', unknown format encountered.
2007-01-06 18:08:05: Loaded 0 IP-ranges from 'ipfilter_static.dat'. 0 malformed lines were discarded.
2007-01-06 18:08:05: ThreadScheduler: Completed task 'Load IPFilter', 0 tasks remaining.

Could you look at it please ?

Thank's


Exalik
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: phoenix on January 06, 2007, 07:40:13 PM
Quote
Originally posted by exalik
Quote
2007-01-06 18:08:05: Failed to load ipfilter.dat file '/home/xxxxxxxx/.aMule/ipfilter.dat', unknown format encountered.
Your file does not match any of these criteria, so it is beeing considered EFT_Unknown:
Code: [Select]
EFileType GuessFiletype(const wxString& file)
{
wxFile archive(file, wxFile::read);
char head[10] = {0};
int read = archive.Read(head, std::min(10, archive.Length()));

if (read == wxInvalidOffset) {
return EFT_Unknown;
} else if ((head[0] == 'P') && (head[1] == 'K')) {
// Zip-archives have a header of "PK".
return EFT_Zip;
} else if (head[0] == (char)0x1F && head[1] == (char)0x8B) {
// Gzip-archives have a header of 0x1F8B
return EFT_GZip;
} else if (head[0] == (char)0xE0 || head[0] == (char)0x0E) {
// MET files have either of these headers
return EFT_Met;
}

// Check at most the first ten chars, if all are printable,
// then we can probably assume it is ascii text-file.
for (int i = 0; i < read; ++i) {
if (!isprint(head[i]) && !isspace(head[i])) {
return EFT_Unknown;
}
}

return EFT_Text;
}
If, still, you think it is a valid ipfilter.dat file, check the first 10 characters of the file to see if they are printable characters. Or better make them printable, e.g. write something like this #1234567890. It is important to start with "#".
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: exalik on January 06, 2007, 10:59:09 PM
Hi,

I have downloaded, opened, and deflating the ipfilter.dat of this adress and copied it on my .amule directory.

Then, it's work fine.

I don't now why ...


Exalik
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: phoenix on January 07, 2007, 03:04:53 AM
Can you give me the link, so I can test?
Title: Re: aMule CVS 20070102 crash during ipfilter file downloading ...
Post by: exalik on January 07, 2007, 01:43:29 PM
Here --> http://www.chez-breizh.eu/ipfilter.zip