Opened 5 years ago
Last modified 5 years ago
#15255 assigned bug
team is not freed in media_server when media kit client process without BApplication crash
Reported by: | X512 | Owned by: | leavengood |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Servers/media_server | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This is hrev53380. If team do not properly perform media kit cleanup and it not registered in registrar (do not use BApplication), media_server do not receive team quit message and team reference kept forever causing buffer leak.
Attachments (1)
Change History (3)
by , 5 years ago
Attachment: | media_server stdout.txt added |
---|
comment:1 by , 5 years ago
playsound was used for testing.
Possible solutions are require BApplicaition initialization before using media kit (and fail if team attepts to use media kit before initalize BApplicaition) or use start_watching_system syscall.
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Good catch, thanks. Though this has probably been the case forever.
I know my fix for #14755 does not deal with crashed apps in general, but this one also leaves resources in the media_server (even after waddlesplash's recent fix), though I suspect the buffers would be freed if I fix the crashing case in the BufferCache. We still want to remove the dead teams from the app manager and the nodes though...hopefully start_watching_system can work for that. In fact maybe I can use it for both cases...
media_server stdout when "/boot/system/servers/media_server dump" called