Opened 12 years ago
Closed 12 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)
Changed 12 years ago by
Attachment: | Screenshot-QEMU.png added |
---|
Changed 12 years ago by
Attachment: | Screenshot-QEMU-1.png added |
---|
Screenshot with the echo server output.
comment:1 Changed 12 years ago by
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 Changed 12 years ago by
Milestone: | 0.5.0 → 0.4.2 |
---|---|
Summary: | TCP needs more work → TCP crashes in pq_find() |
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in changeset:head,312.
Note: See
TracTickets for help on using
tickets.
Screenshot with the stack trace.