Opened 4 months ago

Last modified 4 months 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:
Has a Patch: no 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)

media_server stdout.txt (12.4 KB ) - added by X512 4 months ago.
media_server stdout when "/boot/system/servers/media_server dump" called

Download all attachments as: .zip

Change History (3)

by X512, 4 months ago

Attachment: media_server stdout.txt added

media_server stdout when "/boot/system/servers/media_server dump" called

comment:1 by X512, 4 months 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 leavengood, 4 months ago

Owner: changed from nobody to leavengood
Status: newassigned

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...

Note: See TracTickets for help on using tickets.