Closed
Bug 1330173
Opened 9 years ago
Closed 1 year ago
thread safety assertion for TabChildBase using DevTools
Categories
(Core :: DOM: Content Processes, defect, P3)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: jerri.rice.001, Unassigned)
Details
(Keywords: sec-audit, Whiteboard: dom-lws-bugdash-triage)
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161208153507
Steps to reproduce:
I fired up firefox and opened the developer tools on a normal webpage. During this the developer tools begin to fail to operate correction with console output listing:
[GPU 9032] WARNING: pipe error: 109: file c:/Users/[redacted]/mozilla-central/ipc/chr
omium/src/chrome/common/ipc_channel_win.cc, line 346
Once this happens, either triggering a crash or more simply pressing ctrl+c(for simplicity to see this) will result in something like the attached screenshot. The screenshot is modified to remove my username etc, but I think demonstrates the problem fine.
Actual results:
Memory leaks, and even when trying to output information about the memory leak, ff is leaking more memory.
This issue can be hard to reproduce, so I'm trying to put together an automated testcase to show it off, but I have encountered it three times rapidly. Plus it seems to disclose program internals and could possibly disclose information which should remain private.
Expected results:
No memory leaks should occur, especially those of this type which could be used to disclose confidential information from inside the firefox program.
| Reporter | ||
Comment 1•9 years ago
|
||
eww, operate correctly*
Thought I should mention this seems like it could be quite serious so I'll do my best to run this down if it's not taken care of before this reaches release.
| Reporter | ||
Comment 2•9 years ago
|
||
Once someone touches this, I can send you an unmodified screenshot showing the order of things in console output. As I've said before, in my experience obscurity > security :-)
Just let me know.
Comment 3•9 years ago
|
||
We need more than this to be able to do anything, like a test case or something.
Flags: needinfo?(jerri.rice.001)
Comment 4•9 years ago
|
||
Jerri showed me a full screenshot, and we're hitting a thread safety assertion for TabChildBase, so I'll move this over to IPC for now.
Group: firefox-core-security → core-security
Component: Untriaged → IPC
Product: Firefox → Core
Comment 5•9 years ago
|
||
We might be able to figure something out from a stack for that assertion.
Comment 6•9 years ago
|
||
Let's make sure some DevTools folks can see this bug, too. Isn't it more likely to be someone mis-using threads than something in IPC itself?
Group: core-security → dom-core-security
Flags: needinfo?(jryans)
Summary: Memory leaks occurring in nightly builds 01/10/17 → thread safety assertion for TabChildBase using DevTools
Comment 7•9 years ago
|
||
I guess TabChildBase is actually DOM: Content Processes, not IPC.
Component: IPC → DOM: Content Processes
I think I would need to see more specific STR and / or test case to better understand what's happening here.
Does the assertion include a stack?
Flags: needinfo?(jryans)
| Reporter | ||
Comment 9•9 years ago
|
||
I will be getting to this after doing what I can on bug 1330687. This seems less worrisome so backburner for now.
Thanks for sticking with me guys.
| Reporter | ||
Comment 10•9 years ago
|
||
Still on my list, and it seems that the one of the two variations of the STR I came up with for bug 1330687 might actually relate to this.
I'll be getting here hopefully tomorrow evening EST.
Comment 11•9 years ago
|
||
Calling this sec-audit for now, but if you dig in and find more info ping us via mail to upgrade the severity.
Keywords: sec-audit
| Reporter | ||
Comment 12•9 years ago
|
||
I'm currently away from my workstation so this has to be followed up in a strange way. I have an idea which will allow me to get back to this, but it's slower than I like.
Stay tuned.
Comment 13•9 years ago
|
||
Can you just get us the stack for the thread safety assertion? That alone might point out what is going wrong here.
| Reporter | ||
Comment 14•9 years ago
|
||
Getting back on it now. This involved a tab crash and may also be linked to the pb assertions from other bugs. Here's the iffy part, I don't have a full debug build with me right now so bear with me. It wasn't even hard to reproduce.
dev tools show an incredible slowdown, get the warning about the pipe error involving ipc, trigger crash.
The last time I thought this was happening I simply hit ctrl+c and experienced the same result without triggering a crash.
If I can't reproduce now I'll assume changes in nightly have fixed it and run down the list of changes between then and now. Either way I should have you in the right direction.
| Reporter | ||
Comment 15•9 years ago
|
||
Ok, back to this. The best I can do beyond what I'm doing now is make time tomorrow afternoon EST to set down at my workstation and build a full debug build to get back into this.
I'll be continuing work through the rest of this evening as long as I can to try to reproduce this, but without the warning about ipc being issued it's kind of hard to know when to try to trigger a crash.
I *should* know if I can work that time into my schedule over the next hour or two. I'll update as necessary.
Thanks for putting up with me guys :-)
| Reporter | ||
Comment 16•9 years ago
|
||
The time mentioned above is scheduled for tomorrow, and since I have one more issue to try to reproduce which I don't even have a bug filed for yet, switching focus to that for now. Should have answers here tomorrow evening EST.
| Reporter | ||
Comment 17•9 years ago
|
||
For those interested in the hold up here, see bug 133258 for the work I could do locally here.
| Reporter | ||
Comment 18•9 years ago
|
||
I may have been able to get to that stacktrace without the scheduled time for later today, but since it's already scheduled and will give far more useful output, I'm going to stick to my plan.
I'm all over the place right now with bug work, and I'm trying to work fast and efficient because AFAIK I have less than 24 hours to close this out, and I still have two issues to float over googles way which needs work yet.
The good news here is the testcase from bug 133258 should make getting that stacktrace easy. The screenshot clearly shows that this testcase can produce the same problems with the dev tools open, and after that it's a simple crash, or ctrl+c if I have to resort to that to show the memory leak.
Stay tuned.
Comment 19•9 years ago
|
||
I think he means bug 1333258, not bug 133258.
| Reporter | ||
Comment 20•9 years ago
|
||
Good catch, thanks. That's right, bug 1333258. Getting my workstation setup now for the stacktrace needed here. I literally have less than 18 hours, and still have some things I want to get in order for google. Meh, not enough hours in the day.
Let me get to this.
| Reporter | ||
Comment 21•9 years ago
|
||
Here is an unmodified screenshot of the same memory leak. I'll attach a follow up screenshot of where firefox has hit a breakpoint.
After that I'll fire up visual studio and get a stack trace from it since one isn't listed on the command line.
| Reporter | ||
Comment 22•9 years ago
|
||
Here is a screenshot of the breakpoint that is triggered. Now to fire up visual studio for that stack trace.
| Reporter | ||
Comment 23•9 years ago
|
||
Strange, that when I went to debug the crash, nightly had somehow already exited. The fact that no stack trace is listed before the memory leak, and now this tells me this might be above my head.
I'll try a few more times, but after that I still have a few more things for bug 1333258 and something for google and the clock is ticking! Apparently I work much better on a ticking clock ;-)
| Reporter | ||
Comment 24•9 years ago
|
||
Oh yeah, any ideas as to why this might be happening like this?
| Reporter | ||
Comment 25•9 years ago
|
||
Clearing the NI flag for me as this is as much as I'm going to be able to bring. If someone else can pick it up from here, or if not that's fine.
I've triggered the issue many times, and it's not that hard to reproduce so with a little time I'm sure someone else could see it as well.
Either way, this one was a bit of a headache. Don't dig too deep on it.
Cheers
Flags: needinfo?(jerri.rice.001)
(In reply to Jerri Rice (rehash pending) from comment #25)
> I've triggered the issue many times, and it's not that hard to reproduce so
> with a little time I'm sure someone else could see it as well.
Can you be more specific about the STR? Reading comment 0, it seems like you're just opening developer tools and you get a crash.
Flags: needinfo?(jerri.rice.001)
| Reporter | ||
Comment 27•8 years ago
|
||
At the time Bill, that was correct. It was a nightly build at the time, and I was simply loading a testcase relating to something else, and then opening the global console specifically.
removing the NI for me, sorry that took so long.
Flags: needinfo?(jerri.rice.001)
Updated•8 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
Comment 28•1 year ago
|
||
Per comment 27 we don't have an STR and it seems likely this was fixed either incidentally or a more specific bug was filed since I don't believe we see problems like this anymore.
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Whiteboard: dom-lws-bugdash-triage
Updated•7 months ago
|
Group: dom-core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•