Closed Bug 1587383 Opened 7 years ago Closed 7 months ago

Linux/WebRender - startupcache crash @ StartupCache::ThreadedWrite

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stransky, Unassigned)

Details

(Keywords: crash)

With Webrender/Linux browser crashes in ~ 10 seconds when visiting site www.mapy.cz.

backtrace:
#0 0x00007ffff7baea41 in __memset_avx2_erms () at /lib64/libc.so.6
#1 0x000055555571d16e in LZ4_streamHC_t_alignment () at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/lz4/lz4hc.c:830
#2 0x000055555571ce96 in LZ4_initStreamHC (buffer=0x7fffc1854000, size=262200) at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/lz4/lz4hc.c:917
#3 0x000055555571d0dd in LZ4_createStreamHC () at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/lz4/lz4hc.c:896
#4 0x000055555571894d in LZ4F_compressBegin_usingCDict (cctxPtr=0x7fffba219f40, dstBuffer=0x7fffc1813000, dstCapacity=262156, cdict=0x0, preferencesPtr=0x7fffd21bd878)
at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/lz4/lz4frame.c:621
#5 0x0000555555719bbd in LZ4F_compressBegin (cctxPtr=0x7fffba219f40, dstBuffer=0x7fffc1813000, dstCapacity=262156, preferencesPtr=0x7fffd21bd878)
at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/lz4/lz4frame.c:715
#6 0x0000555555740c6a in mozilla::Compression::LZ4FrameCompressionContext::BeginCompressing(mozilla::Span<char, 18446744073709551615ul>) (this=0x7fffd21bdbc8, aWriteBuffer=...)
at /home/komat/tmp676-trunk-gtk3/src-wayland/mfbt/Compression.cpp:126
#7 0x00007ffff2487e11 in mozilla::scache::StartupCache::WriteToDisk() (this=0x7fffd636f790) at /home/komat/tmp676-trunk-gtk3/src-wayland/startupcache/StartupCache.cpp:531
#8 0x00007ffff248bc22 in mozilla::scache::StartupCache::ThreadedWrite(void*) (aClosure=0x7fffd636f790) at /home/komat/tmp676-trunk-gtk3/src-wayland/startupcache/StartupCache.cpp:654

crashes here:
828 static size_t LZ4_streamHC_t_alignment(void)
829 {
(gdb)
830 struct { char c; LZ4_streamHC_t t; } t_a; << here
831 return sizeof(t_a) - sizeof(t_a.t);
832 }
833 #endif

Reproduction steps:

  1. Enable WR on Linux, go to www.mapy.cz
  2. zoom in some map, leave it running for some time
  3. observe the crash
Keywords: crash
Severity: normal → S3

Triaging this crash bug for current activity.

The crashing function StartupCache::ThreadedWrite has been removed from the codebase. The startup cache write path was refactored -- the current code uses StartupCache::MaybeWriteOffMainThread (source) dispatching to StartupCache::WriteToDisk (source).

There are zero crash reports for StartupCache::ThreadedWrite in the last 180 days, and zero crash pings. The bug has no cf_crash_signature and no Socorro associations.

This seems like a candidate for WORKSFORME -- the original crash path was eliminated by the startupcache refactoring.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.