This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

net.cc Re: need help with cygwin snapshot debugging


> 2) http://cygwin.com/ml/cygwin/2006-05/msg00205.html
> I'd like to know if my debugging suggestion in 2) worked.

Your debugging suggestion appears to have worked for me.

Below is what I did in an attempt to assist as requested.  I hope this will 
be useful for others who may want to help test, and I hope someone will help 
by pointing out what could be done more efficiently.  This is the first time 
I've tried to compile or to use a cygwin snapshot.  I can assume that I have 
done some unneeded or incorrect things.

a) Browse http://cygwin.com/snapshots/.
b) Download http://cygwin.com/snapshots/cygwin-src-20060427.tar.bz2 after 
determining that it is the latest posted snapshot.
c) cd ~; mkdir ./sources; cd ./sources; tar cvfj cygwin-src-20060427.tar.bz2
d) Read 
http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin
e) cd cygwin-snapshot-20060427-1; mkdir build; mkdir install; cd build
f) (../configure --prefix=../install -v; make) >& make.out
g) View make.out to discover that --prefix requires an absolute path name. 
Try again with an absolute path. View make.out to see that things appear to 
have finished well.
h) make install > install.log 2>&1
i) Review install.log and see files exist in install directory.
j) for stop in `cygrunsrv -L`; do cygrunsrv -E $stop; done
to stop services using cygwin1.dll
k) tasklist /m cygwin*
Because I have Windows XP, use to check for processes with cygwin1.dll 
loaded. Finding only bash.exe is good, because I will exit soon.
l) cp ../install/bin/cgywin1.dll /bin/cygwin-snap.dll
m) exit bash
n) in cmd.exe shell, replace /bin/cygwin1.dll with copy command:
cd C:\cygwin\bin && copy cygwin1.dll cygwin-current.dll && del cygwin1.dll 
&& copy cygwin-snap.dll cygwin1.dll
o) Confirm versions of DLL
C:\cygwin\bin>filever cygwin1.dll
--a-- W32i   DLL ENU     1005.20.0.0 shp  1,810,345 05-10-2006 cygwin1.dll

C:\cygwin\bin>filever cygwin-current.dll
--a-- W32i   DLL ENU     1005.19.0.0 shp  1,805,448 01-20-2006 
cygwin-current.dll
p) Launch bash.  Try testcase from 
http://cygwin.com/ml/cygwin/2006-05/msg00205.html. Observe expected failure 
behavior.
(Occurs during sync of "x2p/", in case that has any relevance.
Ctrl-C causes this output:
rsync error: received SIGUSR1 or SIGINT (code 20) at 
/home/lapo/packaging/tmp/rsync-2.6.6/rsync.c(163)
rsync error: received SIGUSR1 or SIGINT (code 20) at 
/home/lapo/packaging/tmp/rsync-2.6.6/rsync.c(163)
Remove partial content in preparation for next run.
q) Browse to http://cygwin.com/snapshots/winsup-diffs-20060403-20060412, 
find net.cc
r) cd ~/sources/cygwin-snapshot-20060427-1/winsup/cygwin; cp ./net.cc 
./net.cc.orig
s) hand-edit net.cc and save (could not get a clean patch apply)
t) cd ../../build; mv ./make.out ./make.out.first; mv ./install.log 
./install.log.first; make clean
u) follow steps again to create new DLL. try testcase. Observe no failure.
sent 74402 bytes  received 15528434 bytes  215211.53 bytes/sec
total size is 58698760  speedup is 3.76 




--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]