Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!wuarchive!udel!princeton!phoenix.Princeton.EDU!pfalstad From: pfalstad@phoenix.Princeton.EDU (Paul Falstad) Newsgroups: comp.unix.programmer Subject: Re: SEMCTL Keywords: semaphores Message-ID: <7325@idunno.Princeton.EDU> Date: 19 Mar 91 19:57:36 GMT References: <7182@bgsuvax.UUCP> Sender: news@idunno.Princeton.EDU Organization: League For Fighting Chartered Accountancy Lines: 22 pthonda@bgsuvax.UUCP (Killer B) wrote: >Hi, i am having a problem with semctl.It simply says allignment error core >dumped.Immediate help would be appreciated very much. The problem, of course, is line 34, columns 6 of your source file /home/pthonda/src/work/semutils.c, in the function "initsem()". Since you didn't properly initialize the ctl_buf2 array, the 3rd element (which you are in this case referencing) is null. Dereferencing it naturally causes your SPARCServer 4/490 running SunOS 4.1.1 to coredump, since the first 8K is not mapped. ;-) ;-) ;-) It always helps to include lots of info when you ask a question like this. A code fragment would help, along with what compiler, what version of UNIX, etc. Perhaps then we can help you. -- pfalstad@phoenix.princeton.edu The Germans are disputing it! Hegel is arguing that the reality is merely an a priori adjunct of non-absolutistic ethics; Kant, by the categorical imperative, is holding it ontologically exists only in the imagination; and Marx is claiming it was off sides.