aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Unknown port receiving an UDP packet! Ignoring  (Read 3457 times)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Unknown port receiving an UDP packet! Ignoring
« 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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Unknown port receiving an UDP packet! Ignoring
« Reply #1 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 ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

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: Unknown port receiving an UDP packet! Ignoring
« Reply #2 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... :(
Logged