X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Thu, 20 Dec 2007 10:28:34 -0500 From: "Mike Boone" To: cygwin AT cygwin DOT com Subject: Re: Ruby on Rails 2.0.2/Cygwin Bug In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Dec 19, 2007 11:59 PM, Igor Peshansky wrote: > Well, /dev/urandom certainly exists in Cygwin. I'm not a Ruby expert, but > considering that adding a puts() before the file open seems to fix it, I'd > look somewhere in the Ruby code. But you can try running the original > under strace to see what exactly Ruby is trying to do with /dev/urandom. I ran strace ruby /usr/bin/rails test_app > strace.txt, and it generated 54MB of text. It looks like the last 100 lines or so might be relevant, but I don't know how to decipher them. The "No such file or directory - /dev/urandom" occurs toward the bottom. http://boonedocks.net/code/rails-urandom-strace.txt I'd appreciate it if anyone is willing to have a look. I guess my next step might be to rerun the strace with the puts() statement in there and see what the difference is. Thanks, Mike. http://boonedocks.net/mike/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/