From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ccd94c554b83ce47,start X-Google-Attributes: gidfee84,public From: jtensin@my-dejanews.com Subject: Problem with makecontext() Date: 1999/03/26 Message-ID: <7dgr3h$d61$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 459450860 X-Http-Proxy: 1.0 cache-1:3128 (Squid/2.1.PATCH2), 1.0 x14.dejanews.com:80 (Squid/1.1.22) for client 204.249.10.4, 209.236.128.139 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Mar 26 20:36:02 1999 GMT Reply-To: jtensin@my-dejanews.com Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/3.01 (X11; I; IRIX 5.2 IP22) Greetings, all. I have trouble calling makecontext() using Alpha/OSF1. For example, the following "minimum" code just gives me a core dump on Alpha while runs fine on Sparc/SunOs. Could someone help me out here? Many thanks in advance. -Jeff /* cc min.c */ #include #include void * do_nothing (void *arg) { return NULL; } int main () { ucontext_t *t; if ( !(t=(ucontext_t *)malloc(sizeof(ucontext_t))) ) { printf("error: malloc failed!\n"); return -1; } if ( getcontext(t) != 0 ) { printf("error: getcontext failed!\n"); return -1; } makecontext(t, (void (*)())do_nothing, 2, 1); return 1; } -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own