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 , 15 years ago
comment:2 by , 15 years ago
Component: | unspecified → srv/ns |
---|
comment:3 by , 14 years ago
Milestone: | 0.4.3 → 0.5.0 |
---|
comment:4 by , 13 years ago
Milestone: | 0.5.0 → 0.5.1 |
---|
Note:
See TracTickets
for help on using tickets.
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.