Closed
Bug 977373
Opened 12 years ago
Closed 11 years ago
DeviceStorage is holding a file open
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: dhylands, Assigned: dhylands)
References
Details
(Whiteboard: [fxos:media])
Attachments
(1 file)
2.40 KB,
patch
|
mikeh
:
review+
fabrice
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
STR:
- unplug USB cable
- setup USB Mass Storage
- start recording a video
- stop recording the video
- connect USB cable
The AutoMounter will try to share the sdcard, but it will fail due to open files. I see the following in logcat:
The following files are open under '/mnt/sdcard'
PID: 626 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: '' comm: 'b2g' exe: '/system/b2g/b2g'
PID: 832 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: 'Camera' comm: 'Camera' exe: '/system/b2g/plugin-container'
PID: 832 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: 'Camera' comm: 'Camera' exe: '/system/b2g/plugin-container'
UpdateState: Mounted volume sdcard has open files, not sharing or formatting
I think that this is related to the changes in bug 910498.
Comment 1•12 years ago
|
||
Should this be marked as 1.4+ as it blocks a blocker?
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Whiteboard: [fxos:media]
Target Milestone: --- → 1.4 S3 (14mar)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dhylands
Updated•11 years ago
|
blocking-b2g: 1.4? → 1.4+
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8383424 -
Flags: review?(mhabicher)
Comment 3•11 years ago
|
||
Comment on attachment 8383424 [details] [diff] [review]
Fix DeviceStorage file handle leak
Review of attachment 8383424 [details] [diff] [review]:
-----------------------------------------------------------------
This looks fine, but I'm wondering if the comment is accurate. I didn't see the dup() call anywhere in PR_FileDesc2NativeHandle().
::: dom/devicestorage/nsDeviceStorage.cpp
@@ +944,3 @@
> NS_ENSURE_SUCCESS(rv, rv);
>
> + // NOTE: PR_FileDesc2NativeHandle returns a dup of the file descriptor, so
Where does the dupe take place? I can't find it.
Attachment #8383424 -
Flags: review?(mhabicher) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #3)
> Comment on attachment 8383424 [details] [diff] [review]
> Fix DeviceStorage file handle leak
>
> Review of attachment 8383424 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This looks fine, but I'm wondering if the comment is accurate. I didn't see
> the dup() call anywhere in PR_FileDesc2NativeHandle().
>
> ::: dom/devicestorage/nsDeviceStorage.cpp
> @@ +944,3 @@
> > NS_ENSURE_SUCCESS(rv, rv);
> >
> > + // NOTE: PR_FileDesc2NativeHandle returns a dup of the file descriptor, so
>
> Where does the dupe take place? I can't find it.
You are right. The dup takes place in the FileDecriptor constructor:
http://dxr.mozilla.org/mozilla-central/source/ipc/glue/FileDescriptor.cpp#39
I'll fix the comment.
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
status-b2g-v1.4:
--- → fixed
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → fixed
Updated•11 years ago
|
status-b2g-v1.3T:
--- → affected
Updated•11 years ago
|
Flags: needinfo?(ying.xu)
Flags: needinfo?(lianxiang.zhou)
Flags: needinfo?(Dafeng.Xu)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8383424 [details] [diff] [review]
Fix DeviceStorage file handle leak
This bug blocks 1028877 which is marked 1.3T+, so I'm requesting for approval on this patch to be uplifted to 1.3T
NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 901498 (which was uplifted to 1.3T)
User impact if declined: See bug 9775597 and 1028877
Testing completed: Manual testing (since testing involves unplugging USB which is currently not part of the automated tests)
Risk to taking this patch (and alternatives if risky): Low (since this has been on master for 3 months)
String or UUID changes made by this patch: none
Attachment #8383424 -
Flags: approval-mozilla-b2g28?
Assignee | ||
Comment 8•11 years ago
|
||
Adding needinfo for jcheng and bbajaj since this patch needs to be uplifted to 1.3T, but the flags don't seem to be present to do that.
Flags: needinfo?(jcheng)
Flags: needinfo?(bbajaj)
Updated•11 years ago
|
Attachment #8383424 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Comment 9•11 years ago
|
||
Updated•11 years ago
|
Flags: needinfo?(lianxiang.zhou)
You need to log in
before you can comment on or make changes to this bug.
Description
•