Android ImageContainer PlanarYCbCrImage gtest Compositor thread SEGV_MAPERR fault addr 0x1a8
Categories
(Core :: Graphics, task)
Tracking
()
People
(Reporter: karlt, Unassigned)
Details
https://hg.mozilla.org/try/file/fad4e7d9ecf6c84f2515fe651461bc6e76d9ad54/dom/media/gtest/TestVideoFrameContainer.cpp contains a simple gtest that puts a PlanarYCbCrImage in an ImageContainer and runs pending events.
This crashes on Android only. The crash does not occur with ImageContainer::SYNCHRONOUS. It also does not occur if the PlanarYCbCrImage has no data set.
pid: 5946, tid: 15149, name: Compositor >>> org.mozilla.geckoview.test_runner <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1a8
rax 92865097f51d765e rbx 0000000000000170 rcx 00007dc2579a0de0 rdx 00007dc24fbfe928
rsi 00007dc259023660 rdi 0000000000000198
r8 472f836ed86113af r9 0000000000000004 r10 00007dc25680505c r11 0000000000000003
r12 00007dc259023600 r13 00007dc24fbfe928 r14 0000000000000198 r15 00007dc259023660
cs 0000000000000033 ss 000000000000002b
rip 00007dc265f50afe rbp 00007dc24fbfe8a0 rsp 00007dc24fbfe80
| Reporter | ||
Comment 1•1 year ago
|
||
The backtrace has no symbol names. When disabling stripping of the gtest libxul.so and extracting target.gtest.tests.tar.gz, /opt/android-ndk/ndk-stack -sym gtest/gtest_bin/gtest/ < stack-without-symbols produces a trace with some symbols, but I don't know whether to believe them.
********** Crash dump: **********
Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:7.0/NYC/4174735:userdebug/test-keys'
#00 0x0000000001408afe /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#01 0x00000000014095d5 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#02 0x000000000280f215 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
??
??:0:0
#03 0x00000000023c6265 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
??
??:0:0
#04 0x00000000023c860b /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
??
??:0:0
#05 0x00000000023c8d9f /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
??
??:0:0
#06 0x00000000023f021f /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
??
??:0:0
#07 0x00000000024f085a /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
webrender::shader_source::UNOPTIMIZED_SHADERS::hfb7a5361d3554363
??:0:0
#08 0x0000000002520978 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
webrender::shader_source::UNOPTIMIZED_SHADERS::hfb7a5361d3554363
??:0:0
#09 0x0000000002442732 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
unic_langid_impl::likelysubtags::tables::SCRIPT_REGION::h0e6e1412563beade
unic_langid_impl.cfaa94fc1c55f8f3-cgu.0:0:0
#10 0x0000000001df0d9e /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#11 0x0000000001deeb6f /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#12 0x0000000001def40d /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#13 0x0000000001deffdf /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#14 0x0000000001436ba3 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#15 0x000000000143dbef /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#16 0x0000000001df5bd6 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#17 0x0000000001d730d1 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#18 0x00000000014320f2 /data/local/tmp/test_root/gtest/libxul.so (offset 0x3b12000)
icudt73_dat
fp_mode.c:0:0
#19 0x0000000000183c52 /data/app/org.mozilla.geckoview.test_runner-1/lib/x86_64/libnss3.so (offset 0xd6000)
#20 0x00000000000212a5 /data/app/org.mozilla.geckoview.test_runner-1/lib/x86_64/libmozglue.so (offset 0x89000)
#21 0x0000000000089771 /system/lib64/libc.so (_ZL15__pthread_startPv+177)
#22 0x92865097f51d765d <unknown>
| Reporter | ||
Comment 2•1 year ago
|
||
The test landed with workaround at https://searchfox.org/mozilla-central/rev/b576bae69c6f3328d2b08108538cbbf535b1b99d/dom/media/gtest/TestVideoSink.cpp#48
Description
•