From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a52aba6bacc9e785,start X-Google-Attributes: gidfee84,public X-Google-Thread: ffc1e,a52aba6bacc9e785,start X-Google-Attributes: gidffc1e,public From: wrp@alpha0.bioch.virginia.edu (William R. Pearson) Subject: pthreads on DEC 8400 Date: 1996/03/13 Message-ID: #1/1 X-Deja-AN: 142407030 sender: wrp@alpha0.bioch.Virginia.EDU x-nntp-posting-host: alpha0.bioch.virginia.edu organization: University of Virginia newsgroups: comp.unix.osf.osf1,comp.programming.threads I have a threaded program that runs fine on a dual processor DEC Alpha 2100 4/275 under OSF/1 3.0B. Unfortunately, when I compile, link and run the program on an Alpha 8400 under DIGITAL UNIX 3.2C, I get the following message: ================ > dbx t_compfa dbx version 3.11.8 Type 'help' for help. main: 102 unsigned char *aa0=NULL, *aa1, *aa1ptr; (dbx) stop in h_init [2] stop in h_init (dbx) run mchu.aa protein_test.lib signal Segmentation fault at >*[port_allocate, 0x3ff82808f5c] stq r26, 0(sp) (dbx) ================ This happens before anything interesting (or threaded) happens in the program, so I assume that I am linking something wrong. Here is the relevant part of the Makefile: ================ CC= cc -g HFLAGS= -o THR_LIBS = -lcmalib -lpthreads $(CC) $(HFLAGS) t_compfa (lots of .o files) -lm $(THR_LIBS) ================ Could someone tell me the correct link options and libraries to use for a pthread'ed program on a DEC Alpha 8400 using V3.2C? Bill Pearson