diff --git a/lib/visitor/compiler.js b/lib/visitor/compiler.js
index <HASH>..<HASH> 100644
--- a/lib/visitor/compiler.js
+++ b/lib/visitor/compiler.js
@@ -479,7 +479,7 @@ Compiler.prototype.compileSelectors = function(arr){
 
 Compiler.prototype.debugInfo = function(node){
 
-  var path = fs.realpathSync(node.filename)
+  var path = node.filename == 'stdin' ? 'stdin' : fs.realpathSync(node.filename)
     , line = node.nodes ? node.nodes[0].lineno : node.lineno;
 
   if (this.linenos){
Fixed crash when using --line-numbers or --firebug and stdin together

This is a fix for issue #<I> which caused stylus to crash when using
--line-numbers or firebug and stein at the same time. This was caused
by trying to call fs.realpathSync with a bogus file named stdin.

<URL>