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()

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

Thu 13 May 2021 11:59:56 AM UTC, comment #2: 

Please verify that threading is correct.

Erik Ekman <yarrick>
Group Member
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>
Group 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>

 

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

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 yarrick (Posted a comment)
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by kiabrin (Submitted the item)
  • -email is unavailable- added by kiabrin
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-13 yarrick StatusNone Invalid
        Open/ClosedOpen Closed
    2020-08-20 kiabrin Carbon-Copy- Added kiabrin

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code