Re: signal trouble

2005-08-23 Thread Pavel Tsekov
Hello, On Tue, 23 Aug 2005, znort wrote: > Could you tell/help me why the little code : [...] > Under cygwin gcc version 3.4.4 (cygming special) and Linux with gcc 3.3.5 > same "strange" results... (no segmentation fault with cygwin anyway) > > (notes : Under Solaris x86 (gcc3.4.4) it works per

RE: signal trouble

2005-08-23 Thread Dave Korn
Original Message >From: znort >Sent: 23 August 2005 10:40 > Could you tell/help me why the little code : > Under cygwin gcc version 3.4.4 (cygming special) and Linux with gcc 3.3.5 > same "strange" results... (no segmentation fault with cygwin anyway) Hm. Worked fine for me on RH8 wi

signal trouble

2005-08-23 Thread znort
Could you tell/help me why the little code : #include #include #include jmp_buf context; int yog(int n) { char *p=NULL; printf("pass %d\n", n); if (n<=2) return 1; strcpy(p, "dfldflflmflkklfklflkmfdlfldfldlfdlkfd");// must crash of course !!! return 1; } void