Ticket #132 (new defect)

Opened 3 years ago

Last modified 3 months ago

Unclaimed task return values pollute NS

Reported by: svoboda Owned by:
Priority: major Milestone: 0.5.1
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

comment:1 Changed 3 years ago by svoboda

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 Changed 2 years ago by jermar

  • Component changed from unspecified to srv/ns

comment:3 Changed 15 months ago by jermar

  • Milestone changed from 0.4.3 to 0.5.0

comment:4 Changed 3 months ago by jermar

  • Milestone changed from 0.5.0 to 0.5.1
Note: See TracTickets for help on using tickets.