Page MenuHomePhabricator

swtaarrs (Brett Simmers)
User

Projects

User is not a member of any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Thursday

  • No visible events.

User Details

User Since
Oct 27 2014, 2:03 PM (620 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Swtaarrs [ Global Accounts ]

Recent Activity

Jul 22 2015

swtaarrs added a comment to T89912: HHVM lock-ups.

I'm not aware of any fixes for this specific issue. I had the original author of StatCache take a look at @BBlack's comments and he said it shouldn't be possible without some kind of memory corruption, which could've been fixed (or perturbed out of existence).

Jul 22 2015, 6:51 PM · SRE, HHVM

Feb 23 2015

swtaarrs added a comment to T89912: HHVM lock-ups.

With everything waiting on a lock I'd suspect some kind of deadlock, but a lot of those thread backtraces don't make any sense. The one for Thread 4 in particular claims to be in code that only runs when you're building a repo ahead of time. I also don't know what's up with the threads that claim to be calling __ll_lock_wait from vector::emplace_back.

Feb 23 2015, 12:38 PM · SRE, HHVM

Dec 19 2014

swtaarrs added a comment to T73486: HHVM: segfault when serializing/unserializing large preprocessor cache items.

Someone's already doing option (b) internally, which will at least turn segfaults into fatal errors. I'll let you know when the fix makes it out to master (it's pretty simple). He's also going to look at (c) but that might not end up happening if it's too complex or makes things slower.

Dec 19 2014, 2:40 AM · SRE, MW-1.28-release-notes, MW-1.28-release (WMF-deploy-2016-07-26_(1.28.0-wmf.12)), Patch-For-Review, HHVM, MediaWiki-General

Nov 6 2014

swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

When I run the latest repro in an asan build, it reliably yells about a double free regardless of $n. This diff applied on top of the previous patch should fix the crash, and also another leak: https://gist.github.com/swtaarrs/2577519dbcf6e6e062a2

Nov 6 2014, 6:01 AM · MediaWiki-Core-Team

Nov 5 2014

swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

Crashes are still happening with the new patch, which I kinda expected. We poked at a core file for a while and it looks like it's crashing on a double free of an <a> element with these parents: <body><div id="mainpage"><table id="mp-tfa"><tr><td><p><a href="/wiki/প্রামাণ্যচিত্র">প্রামাণ্যচিত্র</a>. The document also contains headers for "featured article" and "did you know", strongly suggesting it has something to do with this code: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/MobileFormatter.php.

Nov 5 2014, 7:11 AM · MediaWiki-Core-Team

Nov 4 2014

swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

I rebased Tim's fix onto current master and the small repro is segfaulting now. I took a deeper look at the code and think I might have a more robust fix. I'll update as soon as I know more.

Nov 4 2014, 8:19 PM · MediaWiki-Core-Team

Oct 28 2014

swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

Here's one of those graphs, from running the repro case for a while:

. 90% of the heap is from DOMDocument::loadHTML

Oct 28 2014, 5:26 PM · MediaWiki-Core-Team
swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

I can't find any evidence of that path getting hit; it looks like all the leaked memory is still coming from the call to htmlParseDocument in dom_load_html (I've been looking at call graphs from pprof's --pdf option).

Oct 28 2014, 4:03 PM · MediaWiki-Core-Team
swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

Here's some stuff I wrote up before seeing @ori's most recent test case:

Oct 28 2014, 3:27 PM · MediaWiki-Core-Team

Oct 27 2014

swtaarrs added a comment to T820: Isolate and fix memory leaks in HHVM.

Awesome, thanks for the investigation. I can take a look at fixing this unless one of you already is.

Oct 27 2014, 2:06 PM · MediaWiki-Core-Team