Closed
Bug 924039
Opened 12 years ago
Closed 12 years ago
crash in arena_dalloc via mozilla::nsGonkCameraControl::SetParameter()
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:koi+)
People
(Reporter: bhargavg1, Assigned: mikeh)
References
Details
(Keywords: crash, Whiteboard: [JIRA:1865][b2g-crash] [fxos:media])
Attachments
(2 files)
112.42 KB,
text/plain
|
Details | |
823 bytes,
patch
|
Details | Diff | Splinter Review |
When the following tests are run continuously overnight
Call -> Camera -> Camcorder -> Video -> Music -> Airplance
seeing a crash in mozilla::DOMCameraPreview::Start
BuildID: 20130930193354
Version: 26.0a2
Updated•12 years ago
|
OS: Linux → Gonk (Firefox OS)
Updated•12 years ago
|
Summary: crash in arena_dalloc → crash in arena_dalloc via mozilla::nsGonkCameraControl::SetParameter()
Assignee | ||
Comment 1•12 years ago
|
||
Looks like we're failing this assertion:
http://mxr.mozilla.org/mozilla-central/source/memory/mozjemalloc/jemalloc.c#3314
Assignee | ||
Comment 2•12 years ago
|
||
jemalloc has lots of inlines; it looks like the callstack is:
- free
- arena_dalloc
- arena_dalloc_small
- arena_run_reg_dalloc
- RELEASE_ASSERT
- jemalloc_crash
- MOZ_CRASH
Updated•12 years ago
|
Component: General → Gaia::Camera
Assignee | ||
Comment 3•12 years ago
|
||
I'm pretty sure this isn't a Gaia bug. My first-pass guess is memory corruption, or a double-free.
Component: Gaia::Camera → General
Comment 4•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #3)
> I'm pretty sure this isn't a Gaia bug. My first-pass guess is memory
> corruption, or a double-free.
So move it to DOM:DeviceInterfaces?
Assignee | ||
Comment 5•12 years ago
|
||
What's wrong with B2G:General?
Comment 6•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #5)
> What's wrong with B2G:General?
It doesn't show up in the queries for functional teams and no functional team is triaging this component.
So nobody really tracks this bug.
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #6)
>
> It doesn't show up in the queries for functional teams and no functional
> team is triaging this component.
> So nobody really tracks this bug.
I didn't realize that. :( Okay, so it's Camera-related, but not Gaia. But it's also B2G-specific, which doesn't unlock DOM:Interfaces.
Comment 8•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #7)
> (In reply to Gregor Wagner [:gwagner] from comment #6)
> >
> > It doesn't show up in the queries for functional teams and no functional
> > team is triaging this component.
> > So nobody really tracks this bug.
>
> I didn't realize that. :( Okay, so it's Camera-related, but not Gaia. But
> it's also B2G-specific, which doesn't unlock DOM:Interfaces.
If we really want to get this into a b2g query, we could create a camera component in b2g and have the media team triage it.
Comment 9•12 years ago
|
||
i.e. Product = BootToGecko, Component = Camera
Comment 10•12 years ago
|
||
Hema
Please review as this seems to be a camera issue.
Flags: needinfo?(hkoka)
Updated•12 years ago
|
Flags: needinfo?(hkoka)
Whiteboard: [JIRA:1865][b2g-crash] → [JIRA:1865][b2g-crash] [fxos:media]
Updated•12 years ago
|
blocking-b2g: koi? → koi+
Assignee | ||
Comment 11•12 years ago
|
||
Component: General → Gaia::Camera
Comment 12•12 years ago
|
||
Mike,
Assigning this bug to you since you were actively working on this bug.
Assignee: nobody → mhabicher
Assignee | ||
Comment 13•12 years ago
|
||
I wonder if this could be an allocator mismatch. mwu, do we (still) have both jemalloc and dlmalloc in our builds?
Flags: needinfo?(mwu)
Comment 14•12 years ago
|
||
Yup. However, jemalloc overrides dlmalloc in 99.9% of cases. There remain a few odd cases where you might accidentally use dlmalloc, especially if bionic is calling the allocator.
Flags: needinfo?(mwu)
Assignee | ||
Comment 15•12 years ago
|
||
I don't suppose we have any easy, non-crashy way to detect a mismatch without Valgrind? :)
Flags: needinfo?(mwu)
Assignee | ||
Comment 16•12 years ago
|
||
Bhargav, just to confirm: your DUT actually has a flash?
Flags: needinfo?(bhargavg1)
Reporter | ||
Comment 17•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #16)
> Bhargav, just to confirm: your DUT actually has a flash?
Yes it has
Flags: needinfo?(bhargavg1)
Updated•12 years ago
|
Target Milestone: --- → 1.3 Sprint 3 - 10/25
Comment 19•12 years ago
|
||
Mikeh, Were you able to reproduce this. Please update with the latest info on this bug.
Reporter | ||
Comment 20•12 years ago
|
||
Didnt see this crash again, closing for now. Shall re-open again if seen again
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Comment 21•12 years ago
|
||
FWIW, I don't know of any easy way of easily detecting an allocator mismatch, though the crash usually makes it quite obvious.
Flags: needinfo?(mwu)
Reporter | ||
Comment 22•12 years ago
|
||
We are seeing this crash again in the latest builds, could reproduce 4 times in the recent build when run with the similar steps
Gecko: 0770a5a5f305b23896d7805f6b2637e3a2919cee
Gaia: cb981e2f47bc644b4d178d54378c3676c946facf
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Updated•12 years ago
|
QA Contact: mozillamarcia.knous
Assignee | ||
Comment 23•12 years ago
|
||
More detailed STR:
- Make a call & end call
- Take 4/5 snapshots through camera
- Record a video through camcorder
- Play a video in video app
- Play music in music app
Assignee | ||
Comment 24•12 years ago
|
||
I have not been able to reproduce this problem locally with any of the devices I have.
Bhargav, can you rerun your test with a DEBUG build and enable camera logging on the build?
1. B2G_DEBUG=1 ./build.sh gecko
--- you'll need to |rm -rf| your objdir-gecko before you build
2. add |export NSPR_LOG_MODULES=Camera:4| to /system/bin/b2g.sh on the device, just before the 'exec' line
If you can reproduce with this, it will at least tell us what state the camera is in when the crash occurs.
Flags: needinfo?(bhargavg1)
Comment 25•12 years ago
|
||
Testing with Buri device, using:
Gaia 2140c987fdde1c99097018f7e93b0bbd43d2125d
SourceStamp 6a831fcb96f4
BuildID 20131106004004
Version 26.0
I can get the camera in state where it doesn't work, but I don't get a crash. There is a comment about the DUT having a flash in this bug, but of course Buri and the ZTE device which is showing up in crash stats [@ mozilla::DOMCameraPreview::Start ] don't have a flash.
Will keep trying to repro and report back again - - I did try the steps in Comment 23 several times with no luck yet.
Assignee | ||
Comment 26•12 years ago
|
||
(In reply to Marcia Knous [:marcia - use needinfo] from comment #25)
>
> I can get the camera in state where it doesn't work, but I don't get a
> crash.
Marcia, please file a bug for the new "doesn't work" state. Thanks!
Assignee | ||
Comment 27•12 years ago
|
||
Bhargav, as an alternative to comment 24, can you reproduce this bug with this patch applied to gaia? This will dump the JS stack leading up to setting the flashMode and help us narrow the conditions of the crash.
Updated•12 years ago
|
Flags: needinfo?(mozillamarcia.knous)
Assignee | ||
Comment 28•12 years ago
|
||
Bhargav, please take a look at bug 928856. We think these bugs have the same root cause, and would like to close this one if so.
Reporter | ||
Comment 29•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #28)
> Bhargav, please take a look at bug 928856. We think these bugs have the same
> root cause, and would like to close this one if so.
Just to be clear will make run with the following patches and then see if we can get still
patch from comment 27
patch from Bug 928856 comment 38
Flags: needinfo?(bhargavg1)
Assignee | ||
Comment 30•12 years ago
|
||
Yes, you can run with both patches. Thank you!
Reporter | ||
Comment 31•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #26)
> (In reply to Marcia Knous [:marcia - use needinfo] from comment #25)
> >
> > I can get the camera in state where it doesn't work, but I don't get a
> > crash.
>
> Marcia, please file a bug for the new "doesn't work" state. Thanks!
Do we have a bug for this, we are seeing a similar issue
Reporter | ||
Comment 32•12 years ago
|
||
(In reply to bhargavg1 from comment #31)
> (In reply to Mike Habicher [:mikeh] from comment #26)
> > (In reply to Marcia Knous [:marcia - use needinfo] from comment #25)
> > >
> > > I can get the camera in state where it doesn't work, but I don't get a
> > > crash.
> >
> > Marcia, please file a bug for the new "doesn't work" state. Thanks!
>
> Do we have a bug for this, we are seeing a similar issue
Raised bug 937758
Comment 33•12 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #26)
> (In reply to Marcia Knous [:marcia - use needinfo] from comment #25)
> >
> > I can get the camera in state where it doesn't work, but I don't get a
> > crash.
>
> Marcia, please file a bug for the new "doesn't work" state. Thanks!
Bug 937928
Flags: needinfo?(mozillamarcia.knous)
Comment 34•12 years ago
|
||
Hema
Please check with Mike H if this is reproducible.
Flags: needinfo?(hkoka)
Comment 35•12 years ago
|
||
The root cause for this is same as bug 928856. Mike's patch on that bug will fix some of the known rare crashes on camera
Updated•12 years ago
|
Flags: needinfo?(hkoka)
Assignee | ||
Comment 36•12 years ago
|
||
If this issue reappears, please open a new bug.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•