Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Expired files aren't really cleanly handled, the handler code just crashes when trying to access the non-existing file and prints a trace

https://0x0.st/-L59.txt



That's interesting, as the error calls out "at fhost.c:139".

There is no "fhost.c" in the repo, though there is an fhost.py. https://git.0x0.st/mia/0x0

Ah, I see. If I go back to an old version of fhost.py, the error you're seeing is just a big hardcoded string. So there is a deliberate handler, made to look like a crash. Strange.

  def notfound(e):
      return u"""<pre>Process {0} stopped
  * thread #1: tid = {0}, {1:#018x}, name = '{2}'
      frame #0:
  Process {0} stopped
  * thread #8: tid = {0}, {3:#018x} 
  fhost`get(path='{4}') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = inv...
https://github.com/mia-0/0x0/blob/714de58180072a5563ae1f3d96...


No need to go to an old version, it's in templates/404.html at the moment: https://github.com/mia-0/0x0/blob/c2b5e95903053d084ce9208a2e...

Quite interesting.


Ah, yep. With some "enhancements" too :)

  {% set pid = range(20,100)|random %}
  <pre>Process {{ pid }} stopped




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: