SwitchToFiber call problem with cygwin_NT-5.2 ? test case below

2004-12-02 Thread Rearick, Gabriele
Hi all

cygwin version:  CYGWIN_NT-5.2 rearick3 1.5.12(0.116/4/2) 2004-11-10
08:34 amd64 unknown unknown Cygwin.

I am uncertain if the platform above is an "officially supported"
platform, but apparently the same problem behavior is exposed on
officially supported environments, as it was indicated to me.

The testcase below from Gengbin Zheng demonstrates a program hang/crash
when envoking fibers (switchToFiber call).  Might it be related to SP2
and/or version of win32api? cygcheck.out is attached.  

Can the issue be fixed or is there a fix already?

thanks
--

name this file as fiber.c  (note make it a C file, not C++)

now compile it under VC++, it runs as expected.
when compile with gcc:   gcc -o fiber fiber.c
It crashes at SwitchToFiber call.

#include 



#include 
#include 
 


#ifndef _WIN32_WINNT
#define _WIN32_WINNT  0x0400
#endif
 


#if(_WIN32_WINNT >= 0x0400)
typedef VOID (WINAPI *PFIBER_START_ROUTINE)(
LPVOID lpFiberParameter
);
typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; #endif
 


#if(_WIN32_WINNT >= 0x0400)
WINBASEAPI
LPVOID
WINAPI
CreateFiber(
DWORD dwStackSize,
LPFIBER_START_ROUTINE lpStartAddress,
LPVOID lpParameter
);
 


WINBASEAPI
VOID
WINAPI
DeleteFiber(
LPVOID lpFiber
);
 


WINBASEAPI
LPVOID
WINAPI
ConvertThreadToFiber(
LPVOID lpParameter
);
 


WINBASEAPI
VOID
WINAPI
SwitchToFiber(
LPVOID lpFiber
);

 


#endif /* _WIN32_WINNT >= 0x0400 */
 



 /* thread entry */ 
 


VOID CALLBACK FiberSetUp(PVOID fiberData) {
  printf("HERE in fiber\n");
}
 


int main()
{
  LPVOID fiber;
 


  if (NULL==ConvertThreadToFiber(NULL)) {
printf("ConvertThreadToFiber failed.\n");
exit(1);
  }
 


  fiber = CreateFiber(0, FiberSetUp, (void *) NULL);
  if (NULL == fiber) {
printf("CreateFiber failed.\n");
exit(1);
  }
 


  printf("HERE before switch \n");
  SwitchToFiber(fiber);

}





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



RE: remote usage of cygwin via microsoft telnet services

2004-11-10 Thread Rearick, Gabriele
how else other than telnet would you suggest to login to that machine, then?


-Original Message-
From: Bobby McNulty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004 2:31 PM
To: Rearick, Gabriele; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: remote usage of cygwin via microsoft telnet services

Reading this reminded me of some. Disable telenet.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Rearick, Gabriele
Sent: Wednesday, November 10, 2004 3:05 PM
To: Rearick, Gabriele; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: remote usage of cygwin via microsoft telnet services




not sure if this is the right mailing list:

Hi,
I am appreciating you sharing your input and experience regarding the
following questions.
I am currently using Microsoft telnet server and then execute cygwin.bat to
start bash to build applications within cygwin.
so, I am telneting INTO the Windows2003 server.
Since this kind of remote access results in messy output due to
dtterm/telnet and bash settings for which I have not found a solution yet, I
am writing to you.
I am looking for a solution to un-screwup bash via Microsoft windows telnet
server or other products.

Which LF/CR and other settings enable proper output?

I have also tried to use ReflexionX to get into the Windows2003 server, with
no result.

Locally (sitting directly at the Windows2003 server) I can either start
normal bash shell or start rxvt, but that window doesn't get thru
to my other PC (at home or work). 

does anyone know if Interix telnet server (from Microsoft services for Unix)
workes better with bash?

thanks in advance

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




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



remote usage of cygwin via microsoft telnet services

2004-11-10 Thread Rearick, Gabriele


not sure if this is the right mailing list:

Hi,
I am appreciating you sharing your input and experience regarding the following 
questions. 
I am currently using Microsoft telnet server and then execute cygwin.bat to 
start bash to build applications within cygwin.
so, I am telneting INTO the Windows2003 server. 
Since this kind of remote access results in messy output due to dtterm/telnet 
and bash settings for which I have not found a solution yet, I am writing to 
you.
I am looking for a solution to un-screwup bash via Microsoft windows telnet 
server or other products. 

Which LF/CR and other settings enable proper output?

I have also tried to use ReflexionX to get into the Windows2003 server, with no 
result.

Locally (sitting directly at the Windows2003 server) I can either start normal 
bash shell or start rxvt, but that window doesn't get thru 
to my other PC (at home or work).  

does anyone know if Interix telnet server (from Microsoft services for Unix) 
workes better with bash?

thanks in advance

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