Announcement

Collapse
No announcement yet.

recvfrom blocking other threads

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • recvfrom blocking other threads

    Hi

    I have implemented several threads doing different things. One thread is responsible for getting multicast messages from the network.
    It waits in a "while (1)" for messages.

    When I compile this code for amd64 (testmachine) it works fine, when I compile/run it on my Xport PRO the thread seams to block all others (it is the first thread getting started) - the application simply waits at the recvfrom statement, ignoring that it should be a thread. So it seems others do not get a time slice from the CPU.

    Any idea?

    BR
    yammi
    Last edited by yammimw; 10-31-2010, 12:45 AM.

  • #2
    ok, i've updated to Linux SDK 2.0 and now the XPORT crashes when running the recvfrom part of my app (complete freeze).

    Again - this does not happen on amd64.


    I've also tried deactivating all other parts of the application - so the recvfrom part is the only running thread and it also crashes.

    BR
    yammi

    Comment


    • #3
      UPDATE: it seems I've fixed the crash at least.
      It happened because I initializied the buffer recvfrom uses like this:

      char buffer[1024] = "";

      Really strange. Anyway there are some issues I have to address and I'll try gdbserver to get more specific info.

      BR

      Comment

      Working...
      X