EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Help about building a example under cygwin
From: "Jeff Hill" <[email protected]>
To: "'guobao shen'" <[email protected]>
Cc: <[email protected]>
Date: Fri, 14 Nov 2003 12:11:12 -0700
> I have succeeded in building EPICS 3.14.4 base under Cygwin, windows
> 2000

There was some question in the past about whether cygwin port of the EPICS
R3.14 CA client library is working correctly. I just finished running the CA
client side regression tests against a cygwin build of R3.14.4+ and they ran
to completion without incident. Perhaps this improved result may occur
because we are now using signals to unblock blocking sockets on POSIX?
However, I do see a hang when the regression test process tries to exit.
Attempts to look at this with gdb are attached, but I wasn't able to get
very far despite using a debug build because I was unable to identify any
EPICS code that was still running. I do see that the stack of one of the
threads (thread 1) is corrupted. When I run other CA client side tests this
hang at process exit with cygwin does not occur.

Note also that the throughput obtained through the cygwin subsystem over TCP
when testing against a host local server is between 14% and 46% of what is
possible using a direct mapping of EPICS to the WIN32 interface (using the
win32-x86 build). This result was obtained by running an optimized build of
the "catime" performance test on a dual athlon 1800+ windows 2000
workstation.

> but there is a problem when I built  an example. My steps are:
>  1. perl makeBaseApp.pl -t example example
>  2. perl makeBaseApp.pl -i -t example example
>  3. make

I am less knowledgeable about makeBaseApp.pl than the authors so I am hoping
that they have already contacted you about this. When I run makeBaseApp.pl
with the win32-x86 build it seems to work correctly.

Jeff

attachment 1 - debugger results:

Test Complete

Program received signal SIGINT, Interrupt.
[Switching to thread 1748.0x8cc]
---Type <return> to continue, or q <return> to quit---
0x7c5adbaa in UnregisterConsoleIME ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
(gdb) Quit
(gdb)
(gdb) bt
#0  0x7c5adbaa in UnregisterConsoleIME ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#1  0x03eb3850 in ?? ()
#2  0x03fcf814 in ?? ()
(gdb) info threads
* 5165 thread 1748.0x8cc  0x7c5adbaa in UnregisterConsoleIME ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
  5162 thread 1748.0x8a8  0x77f94091 in ?? ()
  16 thread 1748.0x8e0  0x77f94091 in ?? ()
  10 thread 1748.0x888  0x77f9323e in ?? ()
  9 thread 1748.0x7a8  0x77e580ff in USER32!GetMenuItemRect ()
   from /cygdrive/c/WINNT/system32/USER32.DLL
  8 thread 1748.0x814  0x77f8beb2 in ?? ()
  2 thread 1748.0x7f0  0x77f9323e in ?? ()
  1 thread 1748.0x158  0x610c9daf in cygwin1!_alloca ()
   from /usr/bin/cygwin1.dll
(gdb) thread 1
[Switching to thread 1 (thread 1748.0x158)]#0  0x610c9daf in cygwin1!_alloca
    () from /usr/bin/cygwin1.dll
(gdb) bt
#0  0x610c9daf in cygwin1!_alloca () from /usr/bin/cygwin1.dll
#1  0x610cb16c in reent_data ()
#2  0x00000010 in ?? ()
#3  0x0022fcd0 in ?? ()
#4  0x610887d9 in cygwin1!__getreent () from /usr/bin/cygwin1.dll
Previous frame identical to this frame (corrupt stack?)
(gdb) thread 2
[Switching to thread 2 (thread 1748.0x7f0)]#0  0x77f9323e in ?? ()
(gdb) bt
#0  0x77f9323e in ?? ()
#1  0x7c59a059 in WaitForMultipleObjectsEx ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x7c599f6c in WaitForMultipleObjects ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#3  0x0090fe84 in ?? ()
#4  0x00000001 in ?? ()
(gdb) thread 8
[Switching to thread 8 (thread 1748.0x814)]#0  0x77f8beb2 in ?? ()
(gdb) bt
#0  0x77f8beb2 in ?? ()
#1  0x74fd6363 in StartWsdpService ()
   from /cygdrive/c/WINNT/system32/msafd.dll
#2  0x00000598 in ?? ()
#3  0x01f0ffbc in ?? ()
#4  0x01f0ffb0 in ?? ()
#5  0x01f0ffa4 in ?? ()
#6  0x74fd6408 in StartWsdpService ()
   from /cygdrive/c/WINNT/system32/msafd.dll
(gdb) thread 9
[Switching to thread 9 (thread 1748.0x7a8)]#0  0x77e580ff in
USER32!GetMenuItemR
ect () from /cygdrive/c/WINNT/system32/USER32.DLL
(gdb) bt
#0  0x77e580ff in USER32!GetMenuItemRect ()
   from /cygdrive/c/WINNT/system32/USER32.DLL
#1  0x77e1696f in USER32!GetMessageA ()
   from /cygdrive/c/WINNT/system32/USER32.DLL
#2  0x61091f03 in wait4 () from /usr/bin/cygwin1.dll
#3  0x61002dae in forkpty () from /usr/bin/cygwin1.dll
#4  0x7c57b382 in lstrcmpiW () from /cygdrive/c/WINNT/system32/KERNEL32.DLL
(gdb) thread 10
[Switching to thread 10 (thread 1748.0x888)]#0  0x77f9323e in ?? ()
(gdb) bt
#0  0x77f9323e in ?? ()
#1  0x7c59a059 in WaitForMultipleObjectsEx ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x7c599f6c in WaitForMultipleObjects ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#3  0x0231ee74 in ?? ()
#4  0x00000001 in ?? ()
(gdb) thread 16
[Switching to thread 16 (thread 1748.0x8e0)]#0  0x77f94091 in ?? ()
(gdb) bt
#0  0x77f94091 in ?? ()
#1  0x7c599e8e in WaitForSingleObjectEx ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x7c57b3d5 in WaitForSingleObject ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#3  0x0000064c in ?? ()
#4  0xffffffff in ?? ()
(gdb) thread 5162
[Switching to thread 5162 (thread 1748.0x8a8)]#0  0x77f94091 in ?? ()
(gdb) bt
#0  0x77f94091 in ?? ()
#1  0x7c599e8e in WaitForSingleObjectEx ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#2  0x7c57b3d5 in WaitForSingleObject ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#3  0x000004b0 in ?? ()
#4  0xffffffff in ?? ()
(gdb) thread 5165
[Switching to thread 5165 (thread 1748.0x8cc)]#0  0x7c5adbaa in
UnregisterConsol
eIME () from /cygdrive/c/WINNT/system32/KERNEL32.DLL
(gdb) bt
#0  0x7c5adbaa in UnregisterConsoleIME ()
   from /cygdrive/c/WINNT/system32/KERNEL32.DLL
#1  0x03eb3850 in ?? ()
#2  0x03fcf814 in ?? ()
(gdb)

> -----Original Message-----
> From: guobao shen [mailto:[email protected]]
> Sent: Wednesday, November 12, 2003 4:00 PM
> To: [email protected]
> Subject: Help about building a example under cygwin
> 
> Hello, everyone,
> I have succeeded in building EPICS 3.14.4 base under Cygwin, windows
> 2000, but there is a problem when I
> built  an example. My steps are:
>  1. perl makeBaseApp.pl -t example example
>  2. perl makeBaseApp.pl -i -t example example
>  3. make
> 
> But it said that Can't find configure/RELEASE file at /jk/epics/base-
> 3.14.4/configure/tools/convertRelease.pl line 79.
> make[1]: *** [checkRelease] Error 2
> make[1]: Leaving directory `/home/KEK J-PARC Group/iocs/configure'
> make: *** [configure.install] Error 2
> 
> It seems like that the convertRelease.pl cant work correctly.
> 
> Can anyone give me any advice?  Any advice is welcome!
> 
> Best Regards,
> guobao shen
> 2003-11-12
> 




Replies:
Re: Help about building a example under cygwin Andrew Johnson
References:
Help about building a example under cygwin guobao shen

Navigate by Date:
Prev: EPICS periodic scan and sysClkRateSet() Steven Hartman
Next: Re: EPICS periodic scan and sysClkRateSet() Susanna Jacobson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Help about building a example under cygwin Geoff Savage
Next: Re: Help about building a example under cygwin Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·