buglwIP - A Lightweight TCP/IP stack - Bugs: bug #38586, netif_loop_output()...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #38586: netif_loop_output() "deadlocks"

Submitter:  Emil Ljungdahl <emil_ljungdahl>
Submitted:  Mon 25 Mar 2013 10:53:00 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Wed 15 Jan 2014 08:31:32 AM UTC, comment #2: 

But what happens to the looped back packets when tcpip_callback_with_block fails? Won't the packets get stalled until someone else calls netif_poll?

Matthias Pfaller <matthiaspfaller>
Wed 24 Apr 2013 07:38:32 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 25 Mar 2013 10:53:00 AM UTC, original submission:  

I ran into a problem where the lwip core task hanged in sys_mbox_post() because of a full message queue. The problems seems to be that core/netif.c:netif_loop_output() calls tcpip_callback() which will wait for message to be posted, but since the current task is the only one eating messages we are stuck...

Am I right the call should be replaced by a tcpip_callback_with_block((tcpip_callback_fn)netif_poll, netif, 0);
?

Emil Ljungdahl <emil_ljungdahl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #27674:  netif_c.diff added by emil_ljungdahl (510B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by matthiaspfaller (Posted a comment)
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by emil_ljungdahl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-24 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2013-03-25 emil_ljungdahl Attached File- Added netif_c.diff, #27674

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code