Stack Overflow Outage Postmortem
stackstatus.net
Stack Overflow Outage Postmortem
1–10 of 335 posts
Re: Stack Overflow Outage Postmortem
#2Also, the "homepage" of StackOverflow does not show any 'comments' - it is just the top questions? Why was the page loading any comments in the first place?
Re: Stack Overflow Outage Postmortem
#3Re: Stack Overflow Outage Postmortem
#4Could this has been a deliberate/malicious act? Why else would someone post 20,000 consecutive characters of whitespace on a comment line? Also, the "homepage" of StackOverflow does not show any 'comments' - it is just the top questions? Why was the page loading any comments in the first place?
Re: Stack Overflow Outage Postmortem
#5Re: Stack Overflow Outage Postmortem
#6While this might have been caused by mistake - these types of bugs can be (and are) abused by hackers.
https://www.owasp.org/index.php/Regular_expression_Denial_of... https://en.wikipedia.org/wiki/ReDoS
The post also links to this video: https://vimeo.com/112065252
Re: Stack Overflow Outage Postmortem
#7Re: Stack Overflow Outage Postmortem
#8Re: Stack Overflow Outage Postmortem
#9This is very timely, because minutes ago, I made a link to Russ Cox's articles in my Kernighan awk repo:
https://github.com/andychu/bwk
https://swtch.com/~rsc/regexp/regexp1.html
If you are not familiar with this issue, basically Perl popularized bad computer science... "regexes" are not regular languages.
They say that this particular case triggered quadratic behavior, not exponential, but the point is that there is a linear time algorithm to do this.
The file b.c in the awk repo implements the linear time algorithm:
https://github.com/andychu/bwk/blob/master/b.c
(and rsc's site has some nice sample code too, as well as caveats with regard to capturing and so forth)
Re: Stack Overflow Outage Postmortem
#10199,990,000 isn't really all that many. I'm a little surprised it didn't just cause a momentary blip in performance.
edit: whoops, i guess that's per page load