aMule Forum

English => aMule crashes => Topic started by: phoenix on November 18, 2005, 10:56:35 AM

Title: Unknown port receiving an UDP packet! Ignoring
Post by: phoenix on November 18, 2005, 10:56:35 AM
I'm having tons of these lately. I don't really think we should assert here, but...

Unknown port receiving an UDP packet! Ignoring
[Debug] 01:57:23 AM: MuleUDPSocket.cpp(163): assert "0" failed.

Call stack:
[00] CMuleUDPSocket::OnReceive(int)             /home/mroberto/programs/amule/cvswork/amule-miguel/src/MuleUDPSocket.cpp:163
[01] CClientUDPSocket::OnReceive(int)           /home/mroberto/programs/amule/cvswork/amule-miguel/src/ClientUDPSocket.cpp:65
[02] CamuleApp::UDPSocketHandler(wxSocketEvent&)        /home/mroberto/programs/amule/cvswork/amule-miguel/src/amule.cpp:1946
[03] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const
[04] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[05] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[06] wxEvtHandler::ProcessEvent(wxEvent&)
[07] wxEvtHandler::ProcessPendingEvents()
[08] wxAppConsole::ProcessPendingEvents()
[09] 0x839e81
[10] 0xab5730
[11] g_main_context_dispatch
[12] 0xab64d6
[13] g_main_loop_run
[14] gtk_main
[15] wxEventLoop::Run()
[16] wxAppBase::MainLoop()
[17] wxAppBase::OnRun()
[18] wxEntry(int&, wchar_t**)
[19] wxEntry(int&, char**)
[20] main                                       /home/mroberto/programs/amule/cvswork/amule-miguel/src/amule-gui.cpp:150
Title: Re: Unknown port receiving an UDP packet! Ignoring
Post by: stefanero on November 18, 2005, 12:02:13 PM
you have krys patch for wx-cvs?
I had those to, but his patch made them disappear ;)
Title: Re: Unknown port receiving an UDP packet! Ignoring
Post by: phoenix on November 20, 2005, 01:33:39 PM
I have this:

===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/src/unix/gsocket.cpp,v
retrieving revision 1.55
diff -u -r1.55 gsocket.cpp
--- src/unix/gsocket.cpp        2005/10/05 23:20:10     1.55
+++ src/unix/gsocket.cpp        2005/11/20 12:49:00
@@ -978,6 +978,8 @@
     struct timeval tv;

     assert(this);
+    if (m_fd == -1)
+      return (GSOCK_LOST_FLAG & flags);

     if (m_fd == -1)
         return (GSOCK_LOST_FLAG & flags);

Appart from that, my wx sources are pure wx-cvs. As we can see, this patch from Kry has already been included into wx sources. I will fix my sources.

The nice thing is that this assert is well behaved, i.e., I can choose NO and aMule continues. But my sources are all gone... :(