X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <d45df6780712201753q9d48b93u3cbf2d0e5a98b093@mail.gmail.com>
Date: Thu, 20 Dec 2007 20:53:38 -0500
From: "Mike Boone" <boonedocks@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Ruby on Rails 2.0.2/Cygwin Bug
In-Reply-To: <9ae083a20712201329s46afd5cm1cd6a350df368941@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <d45df6780712191829xaab8c3kc844f16d04d247ad@mail.gmail.com> 	 <Pine.GSO.4.63.0712192355080.18738@access1.cims.nyu.edu> 	 <d45df6780712200728s19e1fbd6t4dbcc03e872f7685@mail.gmail.com> 	 <9ae083a20712201329s46afd5cm1cd6a350df368941@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

OK, I modified the Rails source code to add the puts statement just
above the statement that reads from /dev/urandom. I then ran strace
again and looked for the relevant section of the output. I trimmed out
the leading numeric stuff so I could run a diff on them.

Here is the output of the failing strace:

stat_worker: 0 = (/dev/urandom, 0x2402BD0)
sig_send: sendsig 0x6F8, pid 2152, signal -34, its_me 1
sig_send: wakeup 0x6E0
sig_send: Waiting for pack.wakeup 0x6E0
wait_sig: signalling pack.wakeup 0x6E0
sig_send: returning 0x0 from sending signal -34

Here is the output of the working strace (with the extra puts statement):

stat_worker: 0 = (/dev/urandom, 0x2402BD0)
get_file_attribute: file: C:\cygwin\home\mb\some disk file
cygpsid::debug_print: get_sids_info: owner SID =
S-1-5-21-1614895754-1935655697-1343024091-1003
cygpsid::debug_print: get_sids_info: group SID =
S-1-5-21-1614895754-1935655697-1343024091-513
get_info_from_sd: ACL 1A4, uid 1003, gid 513
fhandler_base::fstat_helper: 0 = fstat (, 0x2404810) st_atime=476B0E59
st_size=56814726, st_mode=0x81A4, st_ino=19703248369749074, sizeof=96
fstat64: 0 = fstat (1, 0x2404810)
sig_send: sendsig 0x710, pid 3160, signal -34, its_me 1
sig_send: wakeup 0x6F4
sig_send: Waiting for pack.wakeup 0x6F4
wait_sig: signalling pack.wakeup 0x6F4
sig_send: returning 0x0 from sending signal -34

There are some other diffs since the modified code continues on to
successfully complete, but this is the section that references
/dev/urandom and has diffs.

Can anyone make sense of it?

Thanks,
Mike Boone
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/

