buglwIP - A Lightweight TCP/IP stack - Bugs: bug #32350, board stop to work after receive...

 
 

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

bug #32350: board stop to work after receive specific packet

Submitted by:  Marcelo Fonseca <utikawa>
Submitted on:  Fri 04 Feb 2011 01:44:51 PM UTC  
 
Category: IPv4Severity: 3 - Normal
Item Group: Crash ErrorStatus: Invalid
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: Other

Tue 22 Mar 2011 08:46:49 PM UTC, comment #2:

Oops, took me a while to notice your comment ;-)

Anyway, that's a bug in your init-code then. The C standard says all global variables must be initialized to '0' or NULL, respectively. With GCC, you typically zero the 'bss' section in your boot startup code to achieve that.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 04 Feb 2011 06:48:16 PM UTC, comment #1:

Solved!

netif_list was not being initialized. When a packet of a ip address outside my network range was sent over the lan, the first netif was not be able to take it then netif->next was tried, causing an abort to occur.
Now I'm doing:

netif_list = NULL;

in the init_network routine in my main.c file.

You can close this bug.

Marcelo Fonseca <utikawa>
Fri 04 Feb 2011 01:44:51 PM UTC, original submission:

Hi,

I'm facing a bug in lwip where, after my board receive a netbios packet the board freezes.
I don't know where is the problem but I can reproduce it. I'm attaching a file containg 13 packets captured by wireshark. The problem happens when I use tcpreplay to send the packet #3.
My lan info:

network: 192.168.0.0/24
board ip: 192.168.0.235
gateway: 192.168.0.10

Our board uses a LPC1768 CPU.
I'm using lwip 1.3.2 . I've choosed "other" to register the bug because there is no 1.3.2 in the list.

Sorry for my english, I am from Brazil.

If any other information is needed, please let me know!

Best regards,
Marcelo Utikawa da Fonseca

Marcelo Fonseca <utikawa>

 

Attached Files
file #22598:  bug_lwip_short added by utikawa (2KiB - application/octet-stream - Packet list captured by WireShark)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Mar 2011 08:46:49 PM UTCgoldsimonStatusNone=>Invalid
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Fri 04 Feb 2011 01:44:51 PM UTCutikawaAttached File-=>Added bug_lwip_short, #22598

    Back to the top


    Powered by Savane 3.1-cleanup1