Opened 15 years ago

Closed 10 years ago

#132 closed defect (fixed)

Unclaimed task return values pollute NS

Reported by: Jiri Svoboda Owned by:
Priority: major Milestone: 0.6.0
Component: helenos/srv/ns Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

In a problem similar to UNIX zombies, when a task spawns another task and does not claim its return value with task_wait(), the record containing the return value will linger in NS. This can lead to NS consuming more and more memory, while it is not NS which is at fault.

Change History (5)

comment:1 by Jiri Svoboda, 15 years ago

For better resource accounting, the interface should be changed such that the result is always either delivered to the parent task or discarded. Should the parent task forget to dispose of the return values, its own memory footprint will increase. This makes it easier to pinpoint the leak or possibly even kill the offending task.

comment:2 by Jakub Jermář, 15 years ago

Component: unspecifiedsrv/ns

comment:3 by Jakub Jermář, 14 years ago

Milestone: 0.4.30.5.0

comment:4 by Jakub Jermář, 13 years ago

Milestone: 0.5.00.5.1

comment:5 by Martin Sucha, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in mainline,2185

Note: See TracTickets for help on using tickets.