Closed Bug 1606511 Opened 6 years ago Closed 4 years ago

LeakSanitizer: [@ WorkerInput]

Categories

(Core :: JavaScript Engine, defect, P1)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 --- wontfix
firefox-esr91 --- wontfix
firefox72 --- wontfix
firefox73 --- wontfix
firefox74 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: gkw, Assigned: jandem)

Details

(4 keywords, Whiteboard: [jsbugmon:])

Attachments

(2 files)

Attached file stack.txt

funfuzz found a non-reproducible leak on LSan with the following backtrace:

Backtrace:

Direct leak of 72 byte(s) in 3 object(s) allocated from:
    #0 0x558bc2c359f3 in __interceptor_malloc (/home/ubuntu/shell-cache/js-64-profDisabled-asan-linux-x86_64-781f53bf9c78/js-64-profDisabled-asan-linux-x86_64-781f53bf9c78+0x185f9f3)
    #1 0x558bc2caf9dc in js_arena_malloc(unsigned long, unsigned long) /home/ubuntu/shell-cache/js-64-profDisabled-asan-linux-x86_64-781f53bf9c78/objdir-js/dist/include/js/Utility.h:386:10
    #2 0x558bc2caf9dc in js_malloc(unsigned long) /home/ubuntu/shell-cache/js-64-profDisabled-asan-linux-x86_64-781f53bf9c78/objdir-js/dist/include/js/Utility.h:390
    #3 0x558bc2caf9dc in WorkerInput* js_new<WorkerInput, JSRuntime*, mozilla::UniquePtr<char16_t [], JS::FreePolicy>, unsigned long>(JSRuntime*&&, mozilla::UniquePtr<char16_t [], JS::FreePolicy>&&, unsigned long&&) /home/ubuntu/shell-cache/js-64-profDisabled-asan-linux-x86_64-781f53bf9c78/objdir-js/dist/include/js/Utility.h:539
    #4 0x558bc2caf9dc in EvalInWorker(JSContext*, unsigned int, JS::Value*) /home/ubuntu/trees/mozilla-central/js/src/shell/js.cpp:4058
/snip

For detailed crash information, see attachment.

Jan mentioned over email that it may be "a leak of the shell-only WorkerInput class, when we fail to create a new shell worker thread." Setting needinfo? from Jan as a start.

Flags: needinfo?(jdemooij)
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Priority: -- → P1

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jandem, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jdemooij)

Hey Jan, I was looking at this bug and was wondering if you were planning on landing the patch you have for it?

Hi Jan
we are checking on really old bugs to see if we can close some or not.
Im wondering if this bug can be closed or it should stay open

Do you know?

thanks

I posted a rebased version.

Flags: needinfo?(jdemooij)
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4572ad752598 Use UniquePtr more in JS shell worker thread code to avoid leaks. r=iain
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: