Opened 15 years ago
Closed 15 years ago
#193 closed defect (fixed)
TCP crashes in pq_find()
Reported by: | Jakub Jermář | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.4.2 |
Component: | helenos/net/tcp | Version: | mainline |
Keywords: | Cc: | ||
Blocker for: | Depends on: | ||
See also: |
Description
This is an example of one problem currently found in the TCP server:
Running the echo server on a TCP port 8080 and connecting to it using telnet 8080 from the host system, the TCP server dies after it receives data ("ping").
See the attachments for the output of the echo server and also the stacktrace of the TCP crash.
Attachments (3)
Change History (6)
by , 15 years ago
Attachment: | Screenshot-QEMU.png added |
---|
comment:1 by , 15 years ago
Excerpt from uspace/srv/net/structures/packet/packet.c, pq_find():
@@ -225,6 +225,8 @@ item = pm_find( packet->next ); while( item && ( item != packet )){ item = pm_find( item->next ); if( item->order == order ){ return item; }
Looks like the second pm_find()'s return value is not checked for NULL.
comment:2 by , 15 years ago
Milestone: | 0.5.0 → 0.4.2 |
---|---|
Summary: | TCP needs more work → TCP crashes in pq_find() |
Note:
See TracTickets
for help on using tickets.
Screenshot with the stack trace.