Closed Bug 904227 Opened 7 years ago Closed 7 years ago

Intermittent TEST-UNEXPECTED-FAIL | ?.? | Mock function called more times than expected - returning directly. (formerly gtest | application crashed [@ libxul.so + 0xXXXXXXX] on Linux builds)

Categories

(Core :: Graphics: Layers, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla28
Tracking Status
firefox26 --- wontfix
firefox27 --- fixed
firefox28 --- fixed
firefox-esr24 --- unaffected
b2g-v1.2 --- fixed

People

(Reporter: RyanVM, Assigned: BenWa)

References

Details

(Keywords: crash, intermittent-failure)

Crash Data

Attachments

(4 files, 2 obsolete files)

https://tbpl.mozilla.org/php/getParsedLog.php?id=26428795&tree=Mozilla-Central

Linux x86-64 mozilla-central leak test build on 2013-08-12 02:29:46 PDT for push f057fca09627
slave: bld-linux64-ec2-416

TEST-START | AsyncPanZoomController.Constructor
TEST-PASS | AsyncPanZoomController.Constructor | test completed (time: 0ms)
TEST-START | AsyncPanZoomController.SimpleTransform
TEST-PASS | AsyncPanZoomController.SimpleTransform | test completed (time: 1ms)
TEST-START | AsyncPanZoomController.ComplexTransform
TEST-PASS | AsyncPanZoomController.ComplexTransform | test completed (time: 4ms)
TEST-START | AsyncPanZoomController.Pan
TEST-PASS | AsyncPanZoomController.Pan | test completed (time: 48ms)
TEST-START | AsyncPanZoomController.Fling
TEST-PASS | AsyncPanZoomController.Fling | test completed (time: 4ms)
TEST-START | AsyncPanZoomController.OverScrollPanning
TEST-PASS | AsyncPanZoomController.OverScrollPanning | test completed (time: 3ms)
TEST-START | APZCTreeManager.GetAPZCAtPoint
TEST-PASS | APZCTreeManager.GetAPZCAtPoint | test completed (time: 6ms)
TEST-START | MozillaGTestSanity.Runs
TEST-PASS | MozillaGTestSanity.Runs | test completed (time: 0ms)
TEST-START | MozillaGMockSanity.Runs
TEST-PASS | MozillaGMockSanity.Runs | test completed (time: 0ms)
TEST-PASS | GTest unit test: passed

GMOCK WARNING:
Uninteresting mock function call - returning directly.
    Function call: SendAsyncScrollDOMEvent(1, @0x7fff73d8e300 16-byte object <00-00 70-41 00-00 20-41 00-00 00-40 00-00 00-40>, @0x7fff73d8e2f8 8-byte object <00-00 48-42 00-00 48-42>)
Stack trace:

GMOCK WARNING:
Uninteresting mock function call - returning directly.
    Function call: SendAsyncScrollDOMEvent(2, @0x7fff73d8e300 16-byte object <00-00 70-41 00-00 20-41 00-00 00-40 00-00 00-40>, @0x7fff73d8e2f8 8-byte object <00-00 48-42 00-00 48-42>)
Stack trace:
PROCESS-CRASH | firefox | application crashed [@ libxul.so + 0x179334e]
Crash dump filename: /builds/slave/m-cen-l64-d-000000000000000000/build/obj-firefox/testing/gtest/5550a038-0790-d9e1-4a04ad9a-010453d2.dmp
Operating system: Linux
                  0.0.0 Linux 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64
CPU: amd64
     family 6 model 45 stepping 7
     4 CPUs

Crash reason:  SIGSEGV
Crash address: 0x8

Thread 0 (crashed)
 0  libxul.so + 0x179334e
    rbx = 0x0000000000000001   r12 = 0x00000000010c0500
    r13 = 0x00007fff73d8dc90   r14 = 0x00007fff73d8dd20
    r15 = 0x0000000000000001   rip = 0x00007f2b6f51234e
    rsp = 0x00007fff73d8dc10   rbp = 0x00007fff73d8dc10
    Found by: given as instruction pointer in context
 1  libxul.so + 0x1797b18
    rip = 0x00007f2b6f516b19   rsp = 0x00007fff73d8dc20
    rbp = 0x00007fff73d8dc40
    Found by: stack scanning
 2  libxul.so + 0x17a03f7
    rip = 0x00007f2b6f51f3f8   rsp = 0x00007fff73d8dc50
    rbp = 0x00007fff73d8dd00
    Found by: stack scanning
 3  libmozalloc.so!moz_xmalloc [mozalloc.cpp : 54 + 0x7]
    rip = 0x00007f2b72237069   rsp = 0x00007fff73d8dc60
    rbp = 0x00007fff73d8dd00
    Found by: stack scanning
 4  libxul.so + 0x17a04e4
    rbx = 0x00007f2b6f52d060   rip = 0x00007f2b6f51f4e5
    rsp = 0x00007fff73d8dd10   rbp = 0x00007fff73d8dd50
    Found by: call frame info
 5  libxul.so + 0x179563d
    rip = 0x00007f2b6f51463e   rsp = 0x00007fff73d8dd60
    rbp = 0x00007fff73d8dda0
    Found by: stack scanning
Since the stack doesn't actually contain any gtest code, I'm not convinced that the crash is related to the gtest warning above it. I believe those warnings should be ignored by the test framework anyway (I've seen similar warnings before when working on tests, and they don't usually cause the test to fail). BenWa, can you confirm?
Flags: needinfo?(bgirard)
Crash Signature: [@ libxul.so@0x179334e]
Depends on: 904574
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #2)
> Since the stack doesn't actually contain any gtest code, I'm not convinced
> that the crash is related to the gtest warning above it. I believe those
> warnings should be ignored by the test framework anyway (I've seen similar
> warnings before when working on tests, and they don't usually cause the test
> to fail). BenWa, can you confirm?

I think gmock might cause a failure at some point even if it doesn't fail that test. I'll take a look at this one.
Assignee: nobody → bgirard
Flags: needinfo?(bgirard)
Severity: normal → critical
Summary: Intermittent gtests TEST-UNEXPECTED-FAIL | firefox | test crashed | application crashed [@ libxul.so + 0x179334e] after GMOCK WARNING for SendAsyncScrollDOMEvent → Intermittent gtest | application crashed [@ libxul.so + 0x179334e] after GMOCK WARNING for SendAsyncScrollDOMEvent
Summary: Intermittent gtest | application crashed [@ libxul.so + 0x179334e] after GMOCK WARNING for SendAsyncScrollDOMEvent → Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] after GMOCK WARNING for SendAsyncScrollDOMEvent
Duplicate of this bug: 913850
Attachment #8334270 - Flags: review?(bugmail.mozilla)
Comment on attachment 8334270 [details] [diff] [review]
ignore gmock warnings from MockContentController

Review of attachment 8334270 [details] [diff] [review]:
-----------------------------------------------------------------

Oh cool I didn't know you could do that.
Attachment #8334270 - Flags: review?(bugmail.mozilla) → review+
benwa, kats, do this needs to be checkedin right? (since it already has review+)
Flags: needinfo?(bugmail.mozilla)
Flags: needinfo?(bgirard)
Yup
Flags: needinfo?(bugmail.mozilla)
Flags: needinfo?(bgirard)
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/0d2c9cafe2e8
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
(In reply to TBPL Robot from comment #275)

Still happening.
Status: RESOLVED → REOPENED
Flags: needinfo?(bgirard)
Resolution: FIXED → ---
Target Milestone: mozilla28 → ---
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #276)
> (In reply to TBPL Robot from comment #275)
> 
> Still happening.

I don't see the gmock warning there.
Flags: needinfo?(bgirard)
So the gmock warning isn't causing the crash. However, we're still crashing, which means we need someone who understands these tests to look into this further.
Summary: Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] after GMOCK WARNING for SendAsyncScrollDOMEvent → Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] on leak test and asan builds
Summary: Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] on leak test and asan builds → Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] on leak test and asan debug builds
Lets see if this helps
Attachment #8342101 - Flags: review?(bjacob)
Maybe 98% debug, but not 100%, see comment 272 for a fairly recent opt build.
Summary: Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] on leak test and asan debug builds → Intermittent gtest | application crashed [@ libxul.so + 0xXXXXXXX] on Linux builds
FWIW I built an ASan debug build on my Linux machine using the instructions at [1] but was unable to reproduce the gtest crash.

[1] https://developer.mozilla.org/en-US/docs/Building_Firefox_with_Address_Sanitizer
Attachment #8342101 - Flags: review?(bjacob) → review+