Open Bug 1028483 Opened 10 years ago Updated 2 years ago

Intermittent leak in XML parser

Categories

(Core :: XML, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: memory-leak)

Direct leak of 40 byte(s) in 1 object(s) allocated from:
   #0 0x471d41 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74
  #1 0x7f03fd1b024f in processInternalEntity /builds/slave/m-in-l64-asan-0000000000000000/build/parser/expat/lib/xmlparse.c:4825
  #2 0x7f03fd1b6801 in doContent /builds/slave/m-in-l64-asan-0000000000000000/build/parser/expat/lib/xmlparse.c:2306
  #3 0x7f03fd1b05ad in processInternalEntity /builds/slave/m-in-l64-asan-0000000000000000/build/parser/expat/lib/xmlparse.c:4849
  #4 0x7f03fd1b6801 in doContent /builds/slave/m-in-l64-asan-0000000000000000/build/parser/expat/lib/xmlparse.c:2306
Ooo the first intermittent LSan failure.
This seems to happen fairly often (3 times since LSan landed), and we probably don't care a huge amount about an XML parser leak, so I think I'll land a suppression for it and then turn this into a bug for fixing the leak.  Annoying the sheriffs has no value.  The stack in comment 0 is all the information we have.
The last one is a new leak.  I filed bug 1034602 for it.

I'm removing the intermittent failure tag from this, as it shouldn't happen any more due to a suppression, but there's still a leak that could in theory be fixed.
Summary: Intermittent TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at processInternalEntity, doContent, processInternalEntity, doContent → Intermittent leak in XML parser
Some instances of this are getting annotated as bug 1166041.
FYI, I did a recent Try push with this suppression removed and all the occurrence I hit were in toolkit/components/thumbnails, in case that helps pin down where the problem is.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.