Skip to content

Exception when a socket is closed #621

Closed
@nkolban

Description

@nkolban

User @jumjum123 reported a problem in the gitter stream that has been able to be trivially recreated. He supplied an awesome demonstration video here.

http://jumspruino.jumware.com/problems/Problem_one.mp4

The symptom is that if one sets up a Web Server which has a bad JS statement in the processing of a URL request and then one connects a browser ... and THEN one closes the waiting socket connection, the ESP8266 asserts. Examining UART1 ... we find a clear exception message:

> net_ESP8266_BOARD_closeSocket, socket=1
Dump of espconn: 0x3fffa808
 - type = TCP
Fatal exception 28(LoadProhibitedCause):
epc1=0x4022b417, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000004, depc=0x00000000

Which seems to show bad memory access during the socket close. Next steps are to drill down on this in detail and see what is going on.

Metadata

Metadata

Assignees

Labels

ESP8266This is only a problem on ESP8266 devicesbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions