buglwIP - A Lightweight TCP/IP stack - Bugs: bug #58986, Hard fault inside tcp_output()

 
 

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

bug #58986: Hard fault inside tcp_output()

Submitted by:  Oleg Kobrin <kiabrin>
Submitted on:  Thu 20 Aug 2020 01:26:56 PM UTC  
 
Category:  IPv4 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  1.4.1

Thu 20 Aug 2020 05:58:50 PM UTC, comment #1: 

Such faults are most often caused by running 2 consecutive execution contexts in lwIP code (e.g. 2 threads, thread + interrupt). Since this problem is not known AND your version of lwIP is rather old, I'd suspect this is a problem in your port or application (i.e. ask TI).

Simon Goldschmidt <goldsimon>
Project Administrator
Thu 20 Aug 2020 01:26:56 PM UTC, original submission:  

Hello!

I work on project using Tiva C MCU (ARM Cortex M4F) and lwip port supplied by TI.

The device have constant traffic via TCP/IP with third-party device. Rarely I face a hard fault exception caused by code inside tcp_output() function, in line 1022

useg = useg->next;

and I see useg->next is 0x363BCB17, which is out of memory range.

Currently project is in debug state, stopped at this line, so I can browse any variables and memory.

Oleg Kobrin <kiabrin>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-20 kiabrin Carbon-Copy- => Added kiabrin

    Back to the top


    Powered by Savane 3.5